Home > Archive > MS SQL Server > March 2006 > can't conect remotely to SQL Express









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author can't conect remotely to SQL Express
Ilya

2006-03-13, 8:23 pm

I am connecting remotely to SQL Express using my VB application. Here is the
connection string that I use.

cn.ConnectionString = " Provider=SQLNCLI;Net
work Library=DBMSSOCN;Int
egrated
Security=SSPI;"Server=192.168.10. 243\SQLEXPRESS,1433;
" & _
" database=CopyRequest
"

I get "Login failed for user 'ILYA-TEST-PC\Guest'" error when I try to
connect. What is the cause of this error? I allow remote connections on SQL
Server.
John Bell

2006-03-14, 3:23 am

Hi

Have you checked the permissions for 'ILYA-TEST-PC\Guest' ?

John

"Ilya" wrote:

> I am connecting remotely to SQL Express using my VB application. Here is the
> connection string that I use.
>
> cn.ConnectionString = " Provider=SQLNCLI;Net
work Library=DBMSSOCN;Int
egrated
> Security=SSPI;"Server=192.168.10. 243\SQLEXPRESS,1433;
" & _
> " database=CopyRequest
"
>
> I get "Login failed for user 'ILYA-TEST-PC\Guest'" error when I try to
> connect. What is the cause of this error? I allow remote connections on SQL
> Server.

Roger Wolter[MSFT]

2006-03-15, 3:23 am

Guest is disabled by default. I assume you're not logged in as guest when
you try to make the connection so this error means you are connecting as a
Windows user who doesn't have permissions or can't be authenticated to the
local Windows machine. Get Windows security working and I think it will
work.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Ilya" <Ilya@discussions.microsoft.com> wrote in message
news:6CAFF2A5-3273-4E28-AFEB- 07060DFFE503@microso
ft.com...
>I am connecting remotely to SQL Express using my VB application. Here is
>the
> connection string that I use.
>
> cn.ConnectionString = " Provider=SQLNCLI;Net
work
> Library=DBMSSOCN;Int
egrated
> Security=SSPI;"Server=192.168.10. 243\SQLEXPRESS,1433;
" & _
> " database=CopyRequest
"
>
> I get "Login failed for user 'ILYA-TEST-PC\Guest'" error when I try to
> connect. What is the cause of this error? I allow remote connections on
> SQL
> Server.



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com