TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
anuimago
NA
6
0
SqlConnection - Error
Oct 12 2006 4:17 AM
Hi,
I am new to ADO.net. My SQL Query Analyser uses the
Windows Authentication
, not SQL Server Authentication. In this case, How should my SQLConnection statement be in ADO.Net? Pls tell me.
Because,
When I tried to open the connection by using the following
SqlConnection cn =
new
SqlConnection("Server=(local); Initial Catalog=pubs; uid=sa; pwd= ");
the error occurs as
Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server Connection.
Pls let me know what will be solution for this.
Thanx in advance.
Reply
Answers (
2
)
Generate DataTables Dynamically
Database connection