Testing the SQL Connection from Application to SQL Server
book
Article ID: 286727
calendar_today
Updated On:
Products
Carbon Black App Control (formerly Cb Protection)
Issue/Introduction
Test the SQL Connection from the App Control Server to the SQL Server
Environment
- App Control Server: All Supported Versions
- Microsoft SQL Server: All Supported Versions
Resolution
Via UDL file
- Create the Data Link file:
- Open Notepad.exe (or any text editor)
- Leave the file blank, and click File > Save As
- Name the file AppControlDBTest.udl (any name is fine, but it needs to end with .udl)
- Double click to open the UDL file that was created
- Test the connection
- Under the Provider select Microsoft OLE DB Driver for SQL Server and click Next
- For "Select or enter a server name" enter the server name and database instance. Ex:
appcserver\sqlexpress
- Select the authentication type (Windows Authentication or SQL Server Authentication)
- For Windows Authentication - Server SPN enter the FQDN of the Database server. Ex:
appcontrol.lab.local
- For SQL Server Authentication - Enter the Username and Password of the SQL Account
- For Select the Database, confirm DAS is available in the dropdown
- Click Test Connection
Via ODBC Data Sources
- On the App Control server, login as the Carbon Black Service Account
- Go to Start > Windows Administrative Tools > ODBC Data Sources
- Go to System DSN > Add > SQL Server > Finish
- Provide a Name for the connection and the SQL Server Name (and SQL Instance, if any: myserver\myinstance)
- Verify the option, "Windows NT authentication" (which will use your Carbon Black Service Account) is checked
- Verify the option, "Connect to SQL Server to obtain default settings" is checked
- Accept all the defaults and click Next 'til you get to click Finish
- Click Test Data Source
Feedback
thumb_up
Yes
thumb_down
No