| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
connectionstring to SQL SERVER
Hi,
Plz tell me how to create a connectionstring to SQL server for asp. Thanks a lot, Chamal. |
|
#2
|
||||
|
||||
|
For ODBC
Code:
"Driver={SQL Server};Server=ServerName;Database=DatabaseName;Ui d=Username;Pwd=Password;"
Used like this
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "Driver={SQL Server};Server=ServerName;Database=DatabaseName;Ui d=Username;Pwd=Password;"
For OLEDB Code:
"Provider=sqloledb;Data Source=ServerName;Initial Catalog=DatabaseName;User Id=Username;Password=Password;" It's usage is the same as above. |
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > connectionstring to SQL SERVER |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|