|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
sql connection problem with ip address
This works:
connStr = "Driver={SQL Server};" &_ "Server=MachineName\InstanceName;Database=MyDatabas e;" &_ "Uid=MyId;Pwd=MyPwd;" This doesn't: connStr = "Driver={SQL Server};" & _ "Server=192.168.0.102\InstanceName,1433;" & _ "Database=MyDatabase;" & _ "Uid=MyId;" & _ "Pwd=MyPwd" Why? |
|
#2
|
|||
|
|||
|
Perhaps because your server isn't using TCP/IP connections and using Named Pipes alone. Also make sure it is listening on port 1433. You can check these with the Server Config utility.
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. |
|
#3
|
|||
|
|||
|
The server uses both TCP/IP (port 1433) and Named Pipes. I also oppened up the firewall for port 1433 but it didn't help
![]() |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > sql connection problem with ip address |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|