Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET Database and Reporting > Connect to MSDE


Reply
 
Thread Tools Display Modes
  #1  
Old 01-07-2004, 08:35 PM
Quercus's Avatar
Quercus Quercus is offline
Regular
 
Join Date: Oct 2002
Location: Maryland
Posts: 59
Default Connect to MSDE


I'm having trouble getting Access 2000 to connect to my MSDE server - I think it may be an issue with usernames and passwords within MSDE. Its a bit off topic but I hope someone here can help me.

I'm developing a database that will eventually be used within a C# application later on. I've installed MSDE 2000 SP3a from Microsoft with the SAPWD=mypassword switch which should have set the sa password. The installation seemed to finish successfully.

I have also updated my Office Professional to the latest SP's.

However, when within Access I try to create a new Access Project (New Database), i.e. create a new MSDE database and connect it to my Access project, it asks me for the server ("ComputerName"), username with CREATEDATABASE privileges ("sa"), the password ("mypassword") and database name ("NewDataSQL"). The new project comes up, but I cannot add tables etc.

As an experiment, I deliberatly entered a false password, and the database creation process continued just as above. In otherwords, it did not give me an error because my password was incorrect.

I try to reconnect it to the database by changing the connection from the File menu. This process is almost identical to the connection properties from the Visual Studio suite. I give the server name ("ComputerName"), the username and password as above, and then when I click on a drop down list to choose a database, I get the error: "Login failed for user 'sa.' Reason: Not associated with a trusted SQL server connection"

Does anyone have any thoughts?
- What is wrong?
- How can I verify a username and password for MSDE?
- Can I add other users for MSDE?

Thanks for the help.
Reply With Quote
  #2  
Old 01-07-2004, 09:06 PM
Quercus's Avatar
Quercus Quercus is offline
Regular
 
Join Date: Oct 2002
Location: Maryland
Posts: 59
Default

Found the problem, but thanks anyway.

The Authentication mode was set to Windows Authentication. I changed it to Mixed Mode and everything worked just fine.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Win9x WNetAddConnection/2/3 Nylyst API 3 12-19-2003 12:30 PM
Connect Problem N00bVb Communications 4 07-08-2003 12:34 AM
Connect to MSDE is the same as SQL-Server? VBBrazil Database and Reporting 1 06-28-2003 04:38 PM
Can't connect to MSDE using MSDE Admin Tool stecino Database and Reporting 1 08-23-2002 07:06 PM
MSDE Administration Tool - Example of SQL-DMO loquin Code Library 0 05-05-2002 03:08 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->