Paresh Suthar's Radio Weblog
And that's all I have to say about that - Forrest Gump






Subscribe to "Paresh Suthar's Radio Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
 

 

Monday, June 09, 2003
 

Configuring MSDE (SQL Server 7) to be accessed from ASP.NET

I have begun to do some ASP.NET development, and to get my feet wet I decided to try to use MSDE that was installed when I installed VS.NET Enterprise Edition.  I used to do a lot of database programming in my early years, so I naturally looked for the "pubs" database for prepopulated tables/content.  

After 30 minutes of searching locally and in news groups, I finally gave up and downloaded an application that would install it.  What a pain!  Almost all of the samples that I was looking at in Essential ASP.NET used the "pubs" database, but neither VS.NET documentation nor the book gave instructions on how to install/use it.

I then wrote a small ASP.NET application that tried to use the SystemData.IDbConnection to create a connection and then open it with "uid=sa" and password = "" - only to meet with the error: "Not associated with a trusted SQL Server connection".  I spent the next 3  hours trying to figure out why I was getting this error and how to fix it - apparently many people have run into the same error.

It turns out that I had to install the SQL Server Enterprise Manager utility so that I could change the security authentication model from "Windows only" to "SQL Server and Windows" (aka mixed mode).  Luckily I have access to SQL Server 2000 Developer edition which installs this utility, so I was able to fix the problem.  I just wonder how someone would make a change to the security authentication model without this utility, considering that SQL Server 2000 Developer edition isn't free.


3:40:15 PM    comment []


Click here to visit the Radio UserLand website. © Copyright 2005 Paresh Suthar.
Last update: 8/19/2005; 3:23:46 PM.
This theme is based on the SoundWaves (blue) Manila theme.
June 2003
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
May   Jul