Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SQL Server 2008 remote connection fails

133 views
Skip to first unread message

jpBless

unread,
Apr 11, 2009, 12:04:09 PM4/11/09
to
I have an application (VB6) that connects to SQL server 2008 Express using
ADO....

sPath =
"Provider=SQLNCLI10;Server=serverx\SQLEXPRESS;Database=dbInfo;Uid=sa;
Pwd=passx"

The application works great when it runs on the (XP/SP3) machine as the SQL
2008 Express host. The XP machine is named serverx. Remote connection over
TCIP is enabled on the instance of SQL 2008 express ( in mix server/NT
authentication mode)
But when I install the application on other machines (1 XP and another
Vista) and try to connect to serverx with above connection string "sPath as
above)... I get error. Login Failed for user SAVERX\Guest. Both machines are
on the same LAN.


When I go to ODBC on the remote machine and manually create DSN entry
indicating "Connect to server to obtain default settings etc" and then
specify sa; as admin and the password (passx) the ODBC datasource test
indicates "Success." If I modify the ODBC setting and change to "with
windows NT authentication using the network login ID" test fails and give
error
Connection Failed
SQL State: 28000
SQL Server Error:18456
Microsoft[ODBC SQL Server Driver][SQL Server]Login Failed for user
SAVERX\Guest

I have enabled guest account on serverx still can't connect.

How do I resolve this problem? Do I need to install any thing on a client pc
that needs to connect (DSN less) remotely to SQL server 2008 express?
Thanks for your help


Sylvain Lafontaine

unread,
Apr 11, 2009, 12:28:38 PM4/11/09
to
Even if both machines are on the same LAN, Windows authentication under
SQL-Server will usually work only if both machines are part of the same
domain or are part of different domains but the client's domain is a trusted
domain with the server's domain. When you're not using domain, beeing part
of the same workgroup instead is not sufficient.

It's still possible to authenticate with Windows authentification using the
named pipe protocol ; however, it's more complicated and prone to error.
See:

http://sqljunkies.com/WebLog/roman/archive/2004/11/28/5296.aspx

http://www.jasonfollas.com/wiki/(X(1)S(a3b5czblmu0uhm45xce4wmbk))/Default.aspx?Page=SQL%20Management%20Studio%20on%20Vista&AspxAutoDetectCookieSupport=1

--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam please)
Independent consultant and remote programming for Access and SQL-Server
(French)


"jpBless" <jp3bles...@hotmail.com> wrote in message
news:%23OhAn8r...@TK2MSFTNGP03.phx.gbl...

jpBless

unread,
Apr 11, 2009, 2:11:24 PM4/11/09
to
Thanks for responding... interesting info. I am looking into the info.
Meanwhile; I tweaked my application and now have the error

Error 3706 Provider can not be found; It may not be properly installed

Anyone know which files needs to be installed on client machine for the
machine to connect to remote SQL 2008 Express?

Again thanks in for your help


"Sylvain Lafontaine" <sylvainlaf...@yahoo.ca> wrote in message
news:uwlSWKsu...@TK2MSFTNGP05.phx.gbl...

Sylvain Lafontaine

unread,
Apr 11, 2009, 7:17:14 PM4/11/09
to
Most likely it's an error in your connection string. However, without
seeing it, it's hard to say where the error is.

--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam please)
Independent consultant and remote programming for Access and SQL-Server
(French)


"jpBless" <jp3bles...@hotmail.com> wrote in message

news:OK20tDtu...@TK2MSFTNGP04.phx.gbl...

Sylvain Lafontaine

unread,
Apr 11, 2009, 9:47:43 PM4/11/09
to
Obviously, I should have added in my previous statement that I don't think
you have an installation problem because you can connect using the sa
account and password.

--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam please)
Independent consultant and remote programming for Access and SQL-Server
(French)

"Sylvain Lafontaine" <sylvainlaf...@yahoo.ca> wrote in message

news:OveWquvu...@TK2MSFTNGP06.phx.gbl...

jpBless

unread,
Apr 11, 2009, 10:56:54 PM4/11/09
to
This connection string using Native Client connects ok on the XP machine
where SQL Express 2008 is...
cnstr ="Driver={SQL Server Native Client
10.0};Server=serverx\SQLEXPRESS;Database=frtDb;Uid=sa;Pwd=pwd11"

this connects too
cnstr
="Provider=SQLNCLI10;Server=serverx\SQLEXPRESS;Database=frtDb;Uid=sa;Pwd=pwd11;

but neither would work on a remote computer... I get the error
-2147467259[Microsoft][ODBC Data Source Name not found and no driver
specified... etc
I still can't figure the problem


"Sylvain Lafontaine" <sylvainlaf...@yahoo.ca> wrote in message

news:uAicxCxu...@TK2MSFTNGP05.phx.gbl...

Sylvain Lafontaine

unread,
Apr 11, 2009, 11:15:16 PM4/11/09
to
Ah, if you can't connect from the remote machine using the sa account &
password, then that's another story. The SQL-Server Native Provider version
10 come with SQL-Server 2008 (Express or Not) and can also be downloaded
separately from:

http://www.microsoft.com/downloads/details.aspx?FamilyId=C6C3E9EF-BA29-4A43-8D69-A2BED18FE73C&displaylang=en

--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam please)
Independent consultant and remote programming for Access and SQL-Server
(French)


"jpBless" <jp3bles...@hotmail.com> wrote in message

news:er$5WpxuJ...@TK2MSFTNGP04.phx.gbl...

jpBless

unread,
Apr 12, 2009, 12:13:19 AM4/12/09
to
From the link you gave... I browsed and downloaded X86 Package
(sqlncli.msi) - 4549 KB... installed and [my app] connected immediately.
First of... thank you very much for your help. I wonder why these things are
not documented... that a client needed some runtime client-side patch for
SQL 2008 Express to work properly.

Again thanks.


"Sylvain Lafontaine" <sylvainlaf...@yahoo.ca> wrote in message

news:%23LZUszx...@TK2MSFTNGP04.phx.gbl...

Sylvain Lafontaine

unread,
Apr 12, 2009, 1:40:33 AM4/12/09
to
SQL-2008 Express need this client-side patch to work properly only if you
are using a the latest Native Client Provider but it would have work OK if
you would have try the old and faithful ODBC provider for SQL-Server.

--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam please)
Independent consultant and remote programming for Access and SQL-Server
(French)


"jpBless" <jp3bles...@hotmail.com> wrote in message

news:u3s3DUyu...@TK2MSFTNGP02.phx.gbl...

0 new messages