Archives by Tag 'SQL Server'

How to connect database in ASP

By admin - Last updated: Monday, February 23, 2009

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 [...]

How to connect database in ASP.Net

By admin - Last updated: Monday, February 23, 2009

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 [...]