CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2007
    Posts
    4

    Question Please help with DB upload?

    Hi,
    I have made a website which depends heavily on it's Database.
    The site is online but I can't get my DB into the Host's DB.
    My host has given me a DB. But there is nothing in this DB and I want to import my DB.mdf into it somehow.
    I have MS SQL server management studio and have got onto my host and found the db he has given me. I right click on it but there is no option for import...?
    I can't figure this out. Is there a program for uploading the Tables and Record and sub procedures into the Host's DB?

    PLease help I have only have a day to get this right,
    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Please help with DB upload?

    I'd ask your ISP. I suspect that you'd just ftp the db up, and have them import it for you?
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210

    Re: Please help with DB upload?

    You should use SSIS (SQL Server Integration Services)
    What edition of SQL Server do you use? Is it Express? It does not have SSIS AFAIK.
    Hesham A. Amin
    My blog , Articles


    <a rel=https://twitter.com/HeshamAmin" border="0" /> @HeshamAmin

  4. #4
    Join Date
    Nov 2004
    Location
    Poland
    Posts
    1,355

    Re: Please help with DB upload?

    I have MS SQL server management studio and have got onto my host and found the db he has given me.
    So U have online access to SQL Server database (in webside system) - wright?

    I can't figure this out. Is there a program for uploading the Tables and Record and sub procedures into the Host's DB?
    Since there is no way, for remote SQL Server, to access your file system (wright?) so there is no way that U could attach/detach or backup/restore without your ISP assistance.

    But U could do it another ways.

    1) Create SQL scripts (generate it) to script all objects of your local db and run them in remote db. Add remote server to your local linked server list. And write INSERT INTO ... SELECT scripts.

    2) As in 1 but don't create linked server but create INSERT INTO ... VALUES ... (generate it from for example TOAD tool) and add this script to "crete objects" script, Than run it remotely

    3) Use DTS to transfer data and objects

    4) and maybe many more ....


    HTH,
    Krzemo

  5. #5
    Join Date
    Dec 2003
    Location
    Middletown, DE
    Posts
    67

    Re: Please help with DB upload?

    You didn't mention what database version you're using.

    If using SQL Server 2000, you can use the Data import/export wizard to copy all objects and data.

    If using SQL Server 2005 (which it sounds like), you can also use the Management Studio to script the entire database contents into a file, which can be executed on the target database to create all objects and data.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured