Specify a connection string
task brazil Updated Sep 10, 2026 1 min read specify-connection-string.md
You can specify a connection string instead of defining a DSN.
Before you begin
You must have administrator-level access for the Windows computer on which you want to specify a connection string.
About this task
This is an alternative method of connecting with different instance URLs. See also Create a new DSN.
A connection string must follow this format:
Text
Driver=ServiceNow ODBC driver 32-bit;ServiceName=ServiceNow_ODBC;UID=youruser;PWD=yourpassword;ServerDataSource=ServiceNow;CustomProperties=url=https://<instance>.service-now.comThe driver name varies depending on whether you use the 32-bit or 64-bit version of the ODBC driver. To determine your driver name, do the following.
Procedure
-
In Windows, navigate to Start > Programs > Service-now ODBC > ODBC Administrator.
-
Select the System DSN tab.
-
Note the value in the Driver column for the ServiceNow data source.
Parent Topic:Configuring the ODBC driver
47 lines · 1.8 KB
--- title: Specify a connection string description: You can specify a connection string instead of defining a DSN. locale: en-US canonical_url: https://www.servicenow.com/docs/r/api-reference/web-services/specify-connection-string.html release: brazil product: Web Services classification: web-services topic_type: task last_updated: "2026-09-10" reading_time_minutes: 1 breadcrumb: [Configuring the ODBC driver, Create data sources from other apps using ODBC driver, Additional integration resources, Web services, API implementation, API implementation and reference] --- # Specify a connection string You can specify a connection string instead of defining a DSN. ## Before you begin You must have administrator-level access for the Windows computer on which you want to specify a connection string. ## About this task This is an alternative method of connecting with different instance URLs. See also [Create a new DSN](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/web-services/t_CreatingANewDSN.md). A connection string must follow this format: ``` Driver=ServiceNow ODBC driver 32-bit;ServiceName=ServiceNow_ODBC;UID=youruser;PWD=yourpassword;ServerDataSource=ServiceNow;CustomProperties=url=https://<instance>.service-now.com ``` The driver name varies depending on whether you use the 32-bit or 64-bit version of the ODBC driver. To determine your driver name, do the following. ## Procedure 1. In Windows, navigate to **Start** > **Programs** > **Service-now ODBC** > **ODBC Administrator**. 2. Select the **System DSN** tab. 3. Note the value in the **Driver** column for the ServiceNow data source. **Parent Topic:**[Configuring the ODBC driver](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/web-services/configuring-odbc.md)
| title | Specify a connection string |
| description | You can specify a connection string instead of defining a DSN. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/api-reference/web-services/specify-connection-string.html |
| release | brazil |
| product | Web Services |
| classification | web-services |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Configuring the ODBC driverCreate data sources from other apps using ODBC driverAdditional integration resourcesWeb servicesAPI implementationAPI implementation and reference |