MVC Membership - How to save my users and roles to Sql Server 2008http://forums.asp.net/t/1785909.aspx/1?MVC+Membership+How+to+save+my+users+and+roles+to+Sql+Server+2008Wed, 28 Mar 2012 20:00:52 -040017859094902272http://forums.asp.net/p/1785909/4902272.aspx/1?MVC+Membership+How+to+save+my+users+and+roles+to+Sql+Server+2008MVC Membership - How to save my users and roles to Sql Server 2008 <p>I'm finishing up the <strong>&quot;ASP.NET Web API, Part 6: Authorization&quot;</strong> comment tutorial at http://www.asp.net/web-api/videos/getting-started/authorization, however I would <strong><em>NOT</em> </strong>like to connect to SqlExpress when saving the membership data.</p> <p>I'd like to implement Authorization at some point in a real website project, however saving all the membership data down to a Sql Server 2008 DB.</p> <p>I noticed that in Web.Config we have the following connection string by default :</p> <p>&lt;add name=&quot;<strong>DefaultConnection</strong>&quot; connectionString=&quot;Data Source=<strong>.\SQLEXPRESS</strong>;Initial Catalog=<strong>aspnet-Comments-201221782844</strong>;Integrated Security=True&quot; providerName=&quot;System.Data.SqlClient&quot; /&gt;</p> <p>So if I want to move these membership tables to Sql 2k8, I simply tried to change my data source to my local machine; however I have no luck.</p> <p>I don't understand how the MVC4 &quot;Comments&quot; project initially created the <strong> aspnet-Comments-201221782844</strong> DB in Sql Express, so I think I need to figure that out first.</p> <p>Any ideas for me ?</p> <p>Much appreciated.</p> <p>Bob</p> 2012-03-27T17:35:19-04:004902285http://forums.asp.net/p/1785909/4902285.aspx/1?Re+MVC+Membership+How+to+save+my+users+and+roles+to+Sql+Server+2008Re: MVC Membership - How to save my users and roles to Sql Server 2008 <p>This has nothing to do with MVC 4. Google &quot;SQL Server&quot; membership roles Aspnet_regsql.exe</p> <p>There are lots of blogs/tutorials/etc on using full SQL Server in lieu of SQL Express. that's the question.</p> 2012-03-27T17:43:13-04:004902325http://forums.asp.net/p/1785909/4902325.aspx/1?Re+MVC+Membership+How+to+save+my+users+and+roles+to+Sql+Server+2008Re: MVC Membership - How to save my users and roles to Sql Server 2008 <p>Yes, in lieu of Sql Express is the core of my question as you can see. It just happened to be in the context of an MVC 4 Tutorial, so I wasn't sure if there was any MVC4-specific features in regards to the Authorization.</p> <p>Perhaps I should repost in a different topic.</p> <p>Thank you for your response.</p> <p>Bob</p> 2012-03-27T18:09:14-04:004904846http://forums.asp.net/p/1785909/4904846.aspx/1?Re+MVC+Membership+How+to+save+my+users+and+roles+to+Sql+Server+2008Re: MVC Membership - How to save my users and roles to Sql Server 2008 <p>the Aspnet_regsql.exe tip was helpful, thanks.</p> <p>I just continued working on my web.config to be sure stringConnections were configured properly.</p> <p>Got it working now in the context of the new ASP.NET Web API tutorials, and was able to save the membership users/roles down to a Sql 2008 DB (vs. Sql Express).</p> <p></p> 2012-03-28T20:00:52-04:00