- Home
- Show all categories
- Domain Name

- Dedicated Server

- LINUX PLESK Hosting

- Windows HELM Hosting

- Windows PLESK Hosting

- Domains4Bulk

- Developers Zone
- Connection Strings
- Database Servers
- SQL Server 2008
- SQL Server 2005
- SQL Server 2000, 7.0
- SQL Server Compact Edition
- Oracle
- IBM DB2
- MySQL
- Sybase Advantage Database Server
- Sybase Adaptive Server Enterprise
- Informix
- Postgre SQL
- IBM UniVerse
- IBM UniData
- AS/400 (IBM iSeries)
- Progress
- Firebird
- InterBase
- Paradox
- Ingres
- Mimer SQL
- Lightbase
- Pervasive
- SQLBase
- Caché
- Teradata
- VistaDB
- DBMaker
- Netezza DBMS
- Valentina
- Data Files

- Miscellaneous

- Database Servers
- PHP & MySQL
- Linux Server Tips
- Search Engine Optimization SEO
- DZ.edu

- Dreamweaver HTML Editor
- Adobe Photoshop Trix
- osCommerce Guides
- Joomla Tutorials
- Wordpress Tutorials
- Email Tutorial and Setup
- Connection Strings
- LINUX cPanel Hosting

- Instant Response
- Sitemap
Developers Zone » Connection Strings » Database Servers » SQL Server 2000, 7.0
ID #1759
.NET Framework Data Provider for SQL Server
| Standard Security |
| Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword; |
| Standard Security alternative syntax |
| This connection string produces the same result as the previous one. The reason to include it is to point out that some connection string keywords have many equivalents. |
| Server=myServerAddress;Database=myDataBase;User ID=myUsername;Password=myPassword;Trusted_Connection=False; |
| Trusted Connection |
| Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI; |
| Trusted Connection alternative syntax |
| This connection string produce the same result as the previous one. The reason to include it is to point out that some connection string keywords have many equivalents. |
| Server=myServerAddress;Database=myDataBase;Trusted_Connection=True; |
| Use serverName\instanceName as Data Source to use a specific SQL Server instance. Please note that the multiple SQL Server instances feature is available only from SQL Server version 2000 and not in any previous versions. |
| Connecting to an SQL Server instance |
| The syntax of specifying the server instance in the value of the server key is the same for all connection strings for SQL Server. |
| Server=myServerName\theInstanceName;Database=myDataBase; Trusted_Connection=True; |
| Use serverName\instanceName as Data Source to use a specific SQL Server instance. Please note that the multiple SQL Server instances feature is available only from SQL Server version 2000 and not in any previous versions. |
| Trusted Connection from a CE device |
| Often a Windows CE device is not authenticated and logged in to a domain. To use SSPI or trusted connection / authentication from a CE device, use this connection string. |
| Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;User ID=myDomain\myUsername;Password=myPassword; |
|
Connect via an IP address
|
| Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=myDataBase; User ID=myUsername;Password=myPassword; |
|
DBMSSOCN=TCP/IP. This is how to use TCP/IP instead of Named Pipes. At the end of the Data Source is the port to use. 1433 is the default port for SQL Server.
|
| Specifying packet size |
| Server=myServerAddress;Database=myDataBase;User ID=myUsername;Password=myPassword;Trusted_Connection=False;Packet Size=4096; |
| By default, the Microsoft .NET Framework Data Provider for SQL Server sets the network packet size to 8192 bytes. This might however not be optimal, try to set this value to 4096 instead. |
|
|
Tags: -
Related entries:
- Can I upload files through the control panel?
- How to create MRA ?
- How do I set up an Access database connection in Macromedia Dreamweaver MX 2004 for ASP.NET pages?
- How do I set up an Access database connection in Macromedia Dreamweaver MX 2004 for classic ASP pages?
- How do I connect to my site with Macromedia Dreamweaver MX?
Last update: 2010-04-08 11:15
Author: Vimal
Revision: 1.19
You cannot comment on this entry