|
-
June 13th, 2005, 01:01 PM
#1
XP in Workgroup- ADO won't connect to MSDE
With 2 XP-pro machines in a common workgroup, the following code fails:
pDBConnection.CreateInstance( __uuidof( ADODB::Connection );
CString sConnect;
sConnect.Format(_T("Provider=sqloledb;Data Source=%s;Initial Catalog='%s';uid='%s';pwd='%s';"), m_server, m_project, m_user, m_password);
_bstr_t connectString = sConnect;
m_pDBConnection->Open(connectString, "", "", 0);
I'm simply trying to connect to an MSDE Server on 1 machine from another.
-
June 13th, 2005, 01:14 PM
#2
Re: XP in Workgroup- ADO won't connect to MSDE
Does the same code works if you run it on the same machine as the MSDE?
Har Har
-
June 13th, 2005, 02:59 PM
#3
Re: XP in Workgroup- ADO won't connect to MSDE
No, and I'm glad you asked. After further scrutiny, it looks like the problem was my single quotes around the user, pwd, etc.
Now it works on both the local and 'remote' machine. Thanks for the reply.
-
June 13th, 2005, 03:11 PM
#4
Re: XP in Workgroup- ADO won't connect to MSDE
Glad I could help. I've learned the hard way the lesson of starting with the simple things first.
Last edited by PadexArt; June 13th, 2005 at 03:13 PM.
Har Har
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|