Re: Connect via workgroup



You don't mention the editions of the operating systems
involved. With XP home, authentication is done using the
guest account as simple file sharing is always enabled on XP
Home. You could hit the issue with XP Pro if simple file
sharing is used. How you address the issue depends somewhat
on what specific operating systems are involved. Refer to
the following for more info:
SQL Server clients are authenticated as guests if Simple
File Sharing is enabled
http://support.microsoft.com/?id=831133
That's one of the issues....
For a connection string, you supply the user and password if
you are using SQL authentication. You use Integrated
Security=SSPI if you want to connect using Windows
Authentication. That's the purpose of switching those
around.
Then...if you want to use Windows Authentication, you aren't
in a domain so credentials aren't passed. You need to have
the same windows accounts with the same passwords on both
boxes.

-Sue

On Fri, 3 Nov 2006 13:16:38 -0700, ".netnew"
<vbopen@xxxxxxxxx> wrote:

I am trying to connect to an SQL Server using a vb.net program. It works if
I put it on the SQL Server computer, but will not connect over my local
network that is set up as a workgroup. I get the following message:
Login failed for user 'DELL4100\Guest'

DELL4100 is the computer name where the sql server is on.

The connection string is:
Data Source=dell4100;Database=dbname;User ID=dbn;Password=password;
I have also tried Integrated Security=SSPI; instead of the User ID &
Password.

I do not know why it is using Guest instead of the User ID that I specified.
So, I created a Login name in the SQL Server called Guest with no password.
I also activated the Guest account in XP for both machines. Still the same
message.

I created accounts for dbn on both computers and gave them the same
password. I logged in under dsn and ran the program, but I still get the
same error.

I turned off the Windows firewall on both computers. I can share files and
printers between computers, just not access the SQL Server.

Can anyone help?

Thanks

Tim







.



Relevant Pages

  • Re: Guest account
    ... >> computer belongs to a workgroup and simple file sharing is enabled. ... If the requesting PC runs Windows 2000, specify the user name "Guest" ... and the password for the Guest account. ... >shared folders from a few pc's on the network. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Authentication problem...
    ... > Simple file sharing needs to be turned off. ... I know the authentication information (adminitrator ... >>response for authentication that has the guest account already selected ... >> administrator useraname and password? ...
    (microsoft.public.windowsxp.general)
  • Re: Authentication problem...
    ... Simple file sharing needs to be turned off. ... I know the authentication information (adminitrator ... >response for authentication that has the guest account already selected ... > administrator useraname and password? ...
    (microsoft.public.windowsxp.general)
  • Re: login failed for user (null)
    ... Authentication is done using the guest account when simple ... file sharing is enabled on XP - you can change it on XP Pro ... SQL Server clients are authenticated as guests if Simple ...
    (microsoft.public.sqlserver.connect)
  • Re: Unable to browse MCE PC?
    ... The Guest Account setting there has ... With Simple File Sharing enabled, all users who request access over ... That's why the Guest account MUST be ... enabled for network access when Simple File Sharing is enabled. ...
    (microsoft.public.windowsxp.network_web)