Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

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

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

In (Som, Ni, Yak)

17689 Posts

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

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


Go to Top of Page
  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000