How do I create all the ASP.Net tables, sprocs etc in a database that already has data (non conflicting) in it.
3 Answers
From an article on 4GuysFromRolla, go to the %WINDOWS%\Microsoft.NET\Framework\v2.0.50727\ directory and run
-- To use Windows Authentication (i.e., a "trusted connection"), use:
aspnet_regsql.exe -S <server> -E -d <database> -A all
-- To use SQL Server credentials (a UserID and Password), use:
aspnet_regsql.exe -S <server> -U <login id> -P <password> -d <database> -A all
There is also a wizard to help you through the steps.
1 Comment
Edwardo
Thanks for this. I've been banging my head against the wall with the wizard, which appears to add the functionality but the permissions weren't correct. Command line is the way forward.
This should help you:
1 Comment
Tomas Aschan
This does answer the question, but considering how easy it is it is better (for availability reasons) to actually write the answer than just posting the link. Won't vote you down though, as you did answer the question =)