SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Trying to connect SQL Server database through...
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

RichardBone
Starting Member

29 Posts

Posted - 10/17/2006 :  22:16:30  Show Profile  Reply with Quote
VB.NET. I'm getting this error:
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

I don't have a username and a password setup for my server connection.
I tried changing the Security properties to Windows & SQL and Windows
authenciation and I'm still getting this error. Am I suppose to set up a username and password for my server? If so how? Thanks

Also a quick side question, how do I make the primary key auto increment through Enterprise Manager?

Edited by - RichardBone on 10/17/2006 22:19:19

khtan
In (Som, Ni, Yak)

Singapore
17431 Posts

Posted - 10/17/2006 :  22:31:43  Show Profile  Reply with Quote
Take a look here http://www.connectionstrings.com/
Did you set Integrated Security=SSPI ?

"how do I make the primary key auto increment through Enterprise Manager?"
set identity = Yes


KH

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000