Connecting web app to SQL database

Hi Experts,

I am configuring my first membership site in Visual Studio 2005 (c#).

I have separately created a database in MS SQL 2005 and then ran the config wizard (aspnet_regsql.exe)  to set up all of the tables and processes etc.

I then successfully connected my new site to this database and the web.config file looks good.

However, when I launch the configuration wizard from within Visual Studio to create users, roles, etc. it still wants to create the aspnetdb.mdb file.

Am I missing something here? How do I make the config wizard see the real SQL database (I am not interested in using Express since I have the full edition)?

I have examined many articles and tried the advanced link. But I am oviously missing something.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
aspnet_regsql.exe -S <server> -U <login id> -P <password> -d <database> -A all ..

after you do this, can you confirm whether you have this in web.config

<membership defaultProvider="CustomizedMembershipProvider">
         <add name="CustomizedMembershipProvider"
              connectionStringName="ConnectionStringNameToYourDatabase" /> -- the datbase and server you used in aspnet_regsql ...
jklinger1975Author Commented:
Thanks! That explained it to me.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.