Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 16th, 2004, 03:09 PM
Singh Singh is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 2 Singh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Connection To Ms Sql (login Failure!!!)

Im current working on this example in my ASP.NET Book. Creating a ADO.NET Shopping Cart for a Bookstore. A Database to store all books. Stored procedures (MS SQL 2000) parameterized queries (MS Access 2003) for all add, update, delete, and retrieve. Web Services that will handle all database interactions. Web Services Description Language (WSDL) Web References to the Web Services.Server-side classes that will connect the Web Services with the UI.

Im on the Web Services part and test the web service called sellerAdmin.asmx ive compiled and ran and the results of invoking the additem Web service i get an error mesg:
---------------------------------------
<?xml version="1.0" encoding="utf-8" ?>
<string xmlns="http://tempuri.org/">System.Data.OleDb.OleDbException: Login failed for user 'sa'. at System.Data.OleDb.OleDbConnection.ProcessResults(I nt32 hr) at System.Data.OleDb.OleDbConnection.InitializeProvid er() at System.Data.OleDb.OleDbConnection.Open() at bookSource.sellerAdmin.ExecuteQuery(OleDbCommand QueryObject) in c:\inetpub\wwwroot\booksource\selleradmin.asmx.cs: line 53 at bookSource.sellerAdmin.addCat(String CAT_Name) in c:\inetpub\wwwroot\booksource\selleradmin.asmx.cs: line 196</string>
-----------------------------------------
The connection string in my c# code is this
this.sellerAdminConn.ConnectionString = @"Provider=SQLOLEDB.1;
Persist Security Info=False;
User ID=sa;
password= blank;
Initial Catalog=shopDb;
Data Source=singh";

Ive sorted the trusted SQL server connection problem in SQL Server enterprise manager(Properties->Tab to Security->Change SQL Server and Windows).

But it doesnt seem to recongised the user id and password, i think its using the windows local account. where do i go to sort this out?? plz help??

Reply With Quote
  #2  
Old February 23rd, 2004, 10:16 AM
Kris_Vanherck's Avatar
Kris_Vanherck Kris_Vanherck is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Belgium, Antwerp
Posts: 177 Kris_Vanherck User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 sec
Reputation Power: 5
- did you add the ASPNET user to your db ?
- change the sa password to something other than blank (it's a security hole the size of Mt. Everest anyway ) and try again
- try using a different user then sa, you can still accomplish the same thing in an other user account if you give it enough permissions

if these don't work, just yell

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > Connection To Ms Sql (login Failure!!!)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT