
06-28-2012, 10:28 AM
|
|
Contributor
|
|
Join Date: Apr 2001
Location: Montreal, Canada
Posts: 428
|
|
Cannot connect remotely to SQL Server 2005/2008
|
Hi folks,
I don't understand what's going on here. I use the following connection code:
Code:
Dim conMasterDB as ADODB.Connection
Set conMasterDB = New ADODB.Connection
With conMasterDB
.Provider = "SQLOLEDB"
.Properties("Data Source").Value = MyServer\SQLExpress08 .Properties("User ID").Value = "MyUserID"
.Properties("Password").Value = "MyPwd"
.Properties("Initial Catalog").Value = "Master"
.Open
End With
And this works fine if I try to connect to my local SQL Server 2008. But if I try to connect from another station on my local area network, with all firewalls down, I cannot connect. Typically, I know that firewalls may block ports 1433 and 1434 to impede a connection, but it can't be the case here because there's no firewall on either side. Can anyone provide any guidance?
Thanks!
Mike
|
|