Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > "Login failed for user 'sa'" datagrid control - SqlDataAdapter

Reply
Thread Tools

"Login failed for user 'sa'" datagrid control - SqlDataAdapter

 
 
Jerry Higgins
Guest
Posts: n/a
 
      04-20-2004
I added a SqlDataAdapter to a web form, created a data
connection, and generated a dataset. I then connected it
to a DataGrid control. When I do this using the
SqlServer database on my machine everything works fine.
When I do it using a SqlServer database on another
machine I get the "Login failed for user sa" error.
However, when I right click on the SqlDataAdapter and
click "Preview Data" it brings back the data OK. Why
would it bring back the data on this but not work in the
DataGrid control?

Thanks,

Jerry Higgins

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot open user default database. Login failed. Login failed for user 'HEMPC\ASPNET' Tony Johansson ASP .Net 3 01-02-2010 04:09 PM
Can not add SQLDataAdapter control to toolbox in Visual Web Developer tom c ASP .Net 1 09-07-2006 12:58 AM
SqlDataAdapter, BC30519: Overload resolution failed because no acc =?Utf-8?B?Q2FpbGlu?= ASP .Net 0 09-09-2005 01:57 PM
Login failed for user 'sa'" datagrid control - SqlDataAdapter Jerry Higgins ASP .Net 1 04-21-2004 08:20 PM
"Login failed for user 'sa'" datagrid control - SqlDataAdapter Jerry Higgins ASP .Net 6 04-21-2004 03:51 PM



Advertisments