|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
sql server db connection
If my asp files and sql server database are on different server, how can I code the connection statement?
can I do like this: strConn = "Provider=sqloledb;User ID='id'; pw='pwd'; Data Source=sql server name; Initial Catalog=db name" |
|
#2
|
|||
|
|||
|
Try using the IP address for the server name
|
|
#3
|
||||
|
||||
|
Code:
Application("ConnectionString") = "Driver={SQL Server};Server=serverName;Database=dbName;Uid=user Name;Pwd=password;"
|
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > sql server db connection |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|