SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Can't connect to sql server from an XP machine, but I can from win7


Can't connect to sql server from an XP machine, but I can from win7

Author
Message
mart_bl
mart_bl
Valued Member
Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)

Group: General Forum Members
Points: 51 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
SQLRNNR
SQLRNNR
SSC Guru
SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)

Group: General Forum Members
Points: 67155 Visits: 18570
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

mart_bl
mart_bl
Valued Member
Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)

Group: General Forum Members
Points: 51 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!
SQLRNNR
SQLRNNR
SSC Guru
SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)

Group: General Forum Members
Points: 67155 Visits: 18570
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

mart_bl
mart_bl
Valued Member
Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)

Group: General Forum Members
Points: 51 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
mart_bl
mart_bl
Valued Member
Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)

Group: General Forum Members
Points: 51 Visits: 19
Any idea?
SQLRNNR
SQLRNNR
SSC Guru
SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)

Group: General Forum Members
Points: 67155 Visits: 18570
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

mart_bl
mart_bl
Valued Member
Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)

Group: General Forum Members
Points: 51 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.
SQLRNNR
SQLRNNR
SSC Guru
SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)

Group: General Forum Members
Points: 67155 Visits: 18570
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

mart_bl
mart_bl
Valued Member
Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)Valued Member (51 reputation)

Group: General Forum Members
Points: 51 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)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search