Conexiones sql 2005

Páginas: 4 (758 palabras) Publicado: 3 de diciembre de 2009
Standard Security
Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
Use serverName\instanceName as Data Source to connect to a specific SQL Serverinstance.

Are you using SQL Server 2005 Express? Don't miss the server name syntax Servername\SQLEXPRESS where you substitute Servername with the name of the computer where the SQL Server 2005Express installation resides.
 
Standard Security alternative syntax
This connection string produce the same result as the previous one. The reason to include it is to point out that someconnection string keywords have many equivalents.
Server=myServerAddress;Database=myDataBase;User ID=myUsername;Password=myPassword;Trusted_Connection=False;
 
 
Trusted Connection
DataSource=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 includeit is to point out that some connection string keywords have many equivalents.
Server=myServerAddress;Database=myDataBase;Trusted_Connection=True;
 
 
Connecting to an SQL Server instance
Thesyntax 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;
 
 
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 CEdevice, use this connection string.
Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;User ID=myDomain\myUsername;Password=myPassword;
Note that this will only work on aCE device.
Read more about connecting to SQL Server from CE devices here
 
Connect via an IP address
Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=myDataBase;User...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Guia conexion sql server 2005
  • Configurar SQL Server 2005 Para Conexiones Remotas
  • Sql 2005
  • Ediciones de microsoft sql 2005
  • manual sql server 2005
  • instalar SQl Server 2005
  • Netbean+sql server 2005
  • Sql server 2005

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS