DB Connection String

  • Thread starter Thread starter Derek Martin
  • Start date Start date
D

Derek Martin

Hi there, I know this is bad, but let's say I had to do it anyways...is this
correct:
Public Shared conn As New SqlConnection("user id=domain\username;
password=thispassword; initial catalog=dbname; data source=dbserver")



Thanks,
Derek
 
Hi,

Neglecting the security issues the connection string is correct.

Ken
------------
 
Thank you all, that is what I have been doing but I keep getting this error:
Login failed for user 'username' also I am pretty sure that I have set this
up correctly inside the DB.

Username has these permission at the database level in SQL 2000:
DB Access = Permit
Roles:
public
db_owner
db_datareader
db_datawriter

What else am I missing??? Thank you!

Derek
 
BTW - When I set the user id to the sa account, it works...hmmmmmmm



Derek Martin said:
Thank you all, that is what I have been doing but I keep getting this error:
Login failed for user 'username' also I am pretty sure that I have set this
up correctly inside the DB.

Username has these permission at the database level in SQL 2000:
DB Access = Permit
Roles:
public
db_owner
db_datareader
db_datawriter

What else am I missing??? Thank you!

Derek


Herfried K. Wagner said:
In addition to the other replies:

<URL:
Web interface:
<URL:http://msdn.microsoft.com/newsgroups/?dg=microsoft.public.dotnet.framew
 
Back
Top