Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How can i deploy a database with Membership Tables?

Reply
Thread Tools

How can i deploy a database with Membership Tables?

 
 
Mahernoz
Guest
Posts: n/a
 
      05-18-2007
Hi Everyone!

I have a problem here.
I have used the latest asp.net membership & profiles functionality in
my site.

I have 2 roles admin and user.
I also have a user named admin.

Now, my website is running perfectly, but i want to deploy it.
My database has those tables developed by me and also membership
tables (which were
created by using aspnet_regsql wizard).

Do i need to run aspnet_regsql on hosted database? Is it possible to
do that?


Although i have programming experience. I have no deployment
experience.

How can i sucessfully deploy my website? So that i don't loose any of
my data and it works
fine with all the nice membership features?

2nd Question is just for my curiosity: is it necessary that i need sql
2005 only. Is Membership table supported in sql 2000?

Hope to receive a reply asap.

Regards,
Mahernoz

 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      05-18-2007
It depends on your set up on the other side. Possibilities:

1. Have a production server that allows database attach. If so, deploy with
the SQL database and change the connection string to use the attach syntax.
You wil then be up and running. This is common in scenarios with SQL Server
Express.

2. Have a database on the production server (or another machine). If this is
your network, you can copy the file and attach it. If an ISP, you can use
the SQL import/export to the address supplied for your database and migrate
all of the tables/data. You then adjust the connection string to fit the
connection string needed for this database.

Do you see a trend? It is always attach data or migrate data and then change
the connection string.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************
"Mahernoz" <> wrote in message
news: oups.com...
> Hi Everyone!
>
> I have a problem here.
> I have used the latest asp.net membership & profiles functionality in
> my site.
>
> I have 2 roles admin and user.
> I also have a user named admin.
>
> Now, my website is running perfectly, but i want to deploy it.
> My database has those tables developed by me and also membership
> tables (which were
> created by using aspnet_regsql wizard).
>
> Do i need to run aspnet_regsql on hosted database? Is it possible to
> do that?
>
>
> Although i have programming experience. I have no deployment
> experience.
>
> How can i sucessfully deploy my website? So that i don't loose any of
> my data and it works
> fine with all the nice membership features?
>
> 2nd Question is just for my curiosity: is it necessary that i need sql
> 2005 only. Is Membership table supported in sql 2000?
>
> Hope to receive a reply asap.
>
> Regards,
> Mahernoz
>



 
Reply With Quote
 
 
 
 
clintonG
Guest
Posts: n/a
 
      05-18-2007
If the server is yours then yes, you can run aspnet_regsql. If you're being
hosted you won't have access to aspnet_regsql but once you use the host
providers control panel to create a new database you can run scripts that
will do the same thing as running aspnet_regsql from the command line.

Yes, Membership can be used with SQL2000

Cowboy's comments noted, when deploying your data and database to the remote
server you'll have to learn what is called Replication [1].

You'll also want to determine if your hosting service supports the SQL
Server Hosting Toolkit [2].

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/

[1]
http://www.simple-talk.com/sql/datab...on-crib-sheet/
[2] http://www.codeplex.com/sqlhost


"Mahernoz" <> wrote in message
news: oups.com...
> Hi Everyone!
>
> I have a problem here.
> I have used the latest asp.net membership & profiles functionality in
> my site.
>
> I have 2 roles admin and user.
> I also have a user named admin.
>
> Now, my website is running perfectly, but i want to deploy it.
> My database has those tables developed by me and also membership
> tables (which were
> created by using aspnet_regsql wizard).
>
> Do i need to run aspnet_regsql on hosted database? Is it possible to
> do that?
>
>
> Although i have programming experience. I have no deployment
> experience.
>
> How can i sucessfully deploy my website? So that i don't loose any of
> my data and it works
> fine with all the nice membership features?
>
> 2nd Question is just for my curiosity: is it necessary that i need sql
> 2005 only. Is Membership table supported in sql 2000?
>
> Hope to receive a reply asap.
>
> Regards,
> Mahernoz
>



 
Reply With Quote
 
sloan
Guest
Posts: n/a
 
      05-18-2007


Check here:

http://weblogs.asp.net/scottgu/archi...25/423703.aspx

and

http://www.aspcode.net/articles/l_en...ticle_279.aspx




One way I solved the " here and now there " was to write a little app that
added my

Users
Roles
User (to) Roles.

I have 3 startup text files.


Or you can backup your db, and restore. Or other typical "here and now
there" db scenarios.


I like my little app though, because it makes quick work of deployment.











"Mahernoz" <> wrote in message
news: oups.com...
> Hi Everyone!
>
> I have a problem here.
> I have used the latest asp.net membership & profiles functionality in
> my site.
>
> I have 2 roles admin and user.
> I also have a user named admin.
>
> Now, my website is running perfectly, but i want to deploy it.
> My database has those tables developed by me and also membership
> tables (which were
> created by using aspnet_regsql wizard).
>
> Do i need to run aspnet_regsql on hosted database? Is it possible to
> do that?
>
>
> Although i have programming experience. I have no deployment
> experience.
>
> How can i sucessfully deploy my website? So that i don't loose any of
> my data and it works
> fine with all the nice membership features?
>
> 2nd Question is just for my curiosity: is it necessary that i need sql
> 2005 only. Is Membership table supported in sql 2000?
>
> Hope to receive a reply asap.
>
> Regards,
> Mahernoz
>



 
Reply With Quote
 
sloan
Guest
Posts: n/a
 
      05-18-2007

PS

You can write a winforms or console app that hits the membership database.

Just reference System.Web.





"Mahernoz" <> wrote in message
news: oups.com...
> Hi Everyone!
>
> I have a problem here.
> I have used the latest asp.net membership & profiles functionality in
> my site.
>
> I have 2 roles admin and user.
> I also have a user named admin.
>
> Now, my website is running perfectly, but i want to deploy it.
> My database has those tables developed by me and also membership
> tables (which were
> created by using aspnet_regsql wizard).
>
> Do i need to run aspnet_regsql on hosted database? Is it possible to
> do that?
>
>
> Although i have programming experience. I have no deployment
> experience.
>
> How can i sucessfully deploy my website? So that i don't loose any of
> my data and it works
> fine with all the nice membership features?
>
> 2nd Question is just for my curiosity: is it necessary that i need sql
> 2005 only. Is Membership table supported in sql 2000?
>
> Hope to receive a reply asap.
>
> Regards,
> Mahernoz
>



 
Reply With Quote
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      05-18-2007
why not use the free Database Publishing Wizard to create a script of
everything - schema and data -- and run it on the target database?
don't reinvent the wheel.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net




"Mahernoz" wrote:

> Hi Everyone!
>
> I have a problem here.
> I have used the latest asp.net membership & profiles functionality in
> my site.
>
> I have 2 roles admin and user.
> I also have a user named admin.
>
> Now, my website is running perfectly, but i want to deploy it.
> My database has those tables developed by me and also membership
> tables (which were
> created by using aspnet_regsql wizard).
>
> Do i need to run aspnet_regsql on hosted database? Is it possible to
> do that?
>
>
> Although i have programming experience. I have no deployment
> experience.
>
> How can i sucessfully deploy my website? So that i don't loose any of
> my data and it works
> fine with all the nice membership features?
>
> 2nd Question is just for my curiosity: is it necessary that i need sql
> 2005 only. Is Membership table supported in sql 2000?
>
> Hope to receive a reply asap.
>
> Regards,
> Mahernoz
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Database Database Database Database scott93727@gmail.com Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase scott93727@gmail.com Computer Information 0 09-26-2012 09:40 AM
Deploy won't deploy Masterpage.master GaryDean ASP .Net 1 04-14-2009 01:50 AM
Membership Provider: how to create initial user acct. after deploy hfdev ASP .Net 6 11-20-2007 10:38 PM



Advertisments
 



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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57