Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Can't connect to sql server from an XP machine, but I can from win7 Expand / Collapse
Author
Message
Posted Wednesday, August 8, 2012 11:13 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, September 4, 2012 6:47 AM
Points: 7, Visits: 19
Hi there,

I've been given access to a SQL Server and I wrote a VBA script (in excel) to query the DB and do some calculations/graph with the retrieved data.

Everything works fine on my computer (windows 7). When I gave my excel document to co-worker (on XP), it won't connect and timeout. I tried it on a virtual machine I have (windows xp) and I have the same problem, it won't connect.

I created a file called test.udl in which I configured the connection parameter as follow:

Provider: Microsoft OLE DB provider for SQL Server
Server name: 10.62.250.77\sqlserveraccept (which is a local IP)
I used the user/pass I was given
I selected the right database

and when I click "Test Connection", it is successful on windows 7. I then copy the exact same file over to my XP VM, and it timeouts.

Any idea what it could be? I disabled the firewall on the XP machine.

Regards,
Martin
Post #1342049
Posted Wednesday, August 8, 2012 12:07 PM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 3:20 PM
Points: 18,064, Visits: 16,099
Can you connect to the SQL instance via SSMS from the xp machines?



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Post #1342102
Posted Thursday, August 9, 2012 7:18 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, September 4, 2012 6:47 AM
Points: 7, Visits: 19
That's interesting... after spending hours to upgrade my xp box to install SSMS, I just found out I actually can connect to SQL Server using SSMS, but still can't using the .udl or my excel macro.

Hope that helps!
Post #1342628
Posted Thursday, August 9, 2012 6:37 PM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 3:20 PM
Points: 18,064, Visits: 16,099
From there, I would look at the drivers used (e.g. ACE drivers for Excel) to make that connection. Compare between the XP machine and the ones that work.



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Post #1343084
Posted Thursday, August 9, 2012 8:03 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, September 4, 2012 6:47 AM
Points: 7, Visits: 19
Humm.. but my test.udl still doesn't successfully test the connection. So it's really more than Excel only.

How can I see the driver you are referring to? I mean it's the same excel file on both my computers.

Thanks
Post #1343102
Posted Monday, August 13, 2012 1:54 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, September 4, 2012 6:47 AM
Points: 7, Visits: 19
Any idea?
Post #1344398
Posted Monday, August 13, 2012 1:57 PM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 3:20 PM
Points: 18,064, Visits: 16,099
You can download from here.

http://www.microsoft.com/en-us/download/details.aspx?id=23734




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Post #1344400
Posted Tuesday, August 14, 2012 11:22 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, September 4, 2012 6:47 AM
Points: 7, Visits: 19
Hi,

I downloaded and installed it on to my XP vm and it didn't make it work.

Do you think it could be some driver that gets installed with office 2010?

Because the XP machine either don't have office at all or they have 2007.

Post #1344905
Posted Tuesday, August 14, 2012 2:47 PM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 3:20 PM
Points: 18,064, Visits: 16,099
The driver downloaded should be fine.

I would start checking the connection strings and manipulating the string to see if there is something that the xp machines don't like.




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Post #1345036
Posted Tuesday, August 14, 2012 8:59 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, September 4, 2012 6:47 AM
Points: 7, Visits: 19
Here is the connection string.

Provider=SQLOLEDB.1;Password=mypassword;Persist Security Info=True;User ID=myuser;Initial Catalog=RINER.Cellulaire;Data Source=10.62.250.77\sqlserveraccept

The IP is local to both computers (win7 & XP)
Post #1345112
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse