Posts Tagged "SQL Server"

How to connect different database in ASP.Net

How to connect database in ADO Database Connection Create a DSN-less Database Connection The easiest way to connect to a database is to use a DSN-less connection. A DSN-less connection can be used against any Microsoft Access database on your web site. If you have a database called “northwind.mdb” located in a web directory like “c:/inetpub/wwwroot”, you can connect to the database with the following ASP code: <%set conn=Server.CreateObject("ADODB.Connection")conn.Provider="Microsoft.Jet.OLEDB.4.0"conn.Open "c:/inetpub/wwwroot/northwind.mdb"%> Note, from the example above, that you have to…

Read More

How to connect different database in ASP

How to connect database in ASP (Active Server Page)? SQL Server 2005 This is a compiled connection strings reference list on how to connect to SQL Server 2005. SQL Native Client ODBC Driver Standard security Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase; Uid=myUsername;Pwd=myPassword; 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 2005 Express installation resides. Trusted Connection Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase; Trusted_Connection=yes; Equivalent key-value…

Read More