How to transfer from local to remote host a .mdf file and membership ASP DB?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lamass
    New Member
    • May 2012
    • 2

    #1

    How to transfer from local to remote host a .mdf file and membership ASP DB?

    I am having so much problems with the deployment of my site from local to remote host. My asp site (c#) has (in the APP_DATA folder) an .mdf db file and membership file as well, and both need to be deployed. Is there any simple strait forward solution to this? Are there any tutorials? I spent 2 days in vain. The available info is disjointed, confusing and make me feel like an... Please guys, any honest answers?

    pss: why can not Microsoft make it as "they say" 1 button solution?
    My host accepts only mssql and mysql. I created the mssql db with same name- but know what? How to use reg.sql.exe, how to use remote IIS from my local pc, or visual studio- how do they all come together? I'm lost. help, please!
    Last edited by jhardman; May 14 '12, 08:44 PM. Reason: accidentally posted in classic asp forum - moved to ASP.net
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    a MSSQL db should have two files - .mdf and .ldf I believe. did you get both?

    My host says they support MSSQL, but I can't just send my db over to them, I have to set up the db through their interface.

    Jared

    Comment

    • lamass
      New Member
      • May 2012
      • 2

      #3
      yes, I have both files- but do not know how to get them to my remote host. Basically after I create the db at my host how do I transfer my local db to the remote host? It has been such a struggle for such an almost menial task (that should be automatic).

      Comment

      • jhardman
        Recognized Expert Specialist
        • Jan 2007
        • 3405

        #4
        yeah, there is no easy way to do this. MySQL has a handy "export" feature that converts the entire contents of the table into a plain text sql insert statement(s). For MSSQL the only solution I have ever found is to take a backup, then create a blank db in the second location with the same name, then restore the backup (with replace) then re-assign all the users.

        Jared

        Comment

        Working...