Welcome to Sign in | Join | Help
in
Home Forums Photos Downloads

Very New to Publishing SQL Databases, Need step by step

Last post 02-11-2008, 11:09 PM by itechcs. 11 replies.
Sort Posts: Previous Next
  •  03-28-2007, 10:54 865

    Very New to Publishing SQL Databases, Need step by step

    Hi Everyone,

     First of all, let me start off by saying i'm very new to web developing and deploying.

    I am having trouble understanding what I'm supposed to do to configure a SQL database to run on the server. I have created a small site with a Membership using VWD. I used that to create a ASPNETDB.mdf holding the membership infromation in the App_Data directory. I uploaded my entire site using FTP including the database in the App_Data directory.

    I then created a database in my DotNetPanel called KW_Membership and a username and password. Now i know i need to publish my database files into this, how do i go about doing this? I tried using the Database Publishing Wizard to send it to the IP provided "69.16.210.14", but it returned an error. I dont know if the this was the right thing to do..plz help.

     Thanks in advance

    Brian

  •  03-29-2007, 7:56 PM 869 in reply to 865

    Re: Very New to Publishing SQL Databases, Need step by step

    Hi Brian,

    You will need to create a bak. file from your current databases and then restore these to the hosted SQL server via DNP:

     

    https://www.ultimasupport.net/Customer/KBArticle.aspx?articleid=23

     

    Cheers,

    Mark 


    System Administrator
  •  02-07-2008, 2:04 PM 1337 in reply to 869

    Re: Very New to Publishing SQL Databases, Need step by step

    Hello, I need a Little help with this issue but the link is not working.

  •  02-07-2008, 3:45 PM 1340 in reply to 1337

    Re: Very New to Publishing SQL Databases, Need step by step

    Try this one instead:  https://support.ultimahosts.net/Customer/KBArticle.aspx?articleid=23
    William Eaton, MCSE
    iTech Computer Solutions, LLC
    www.itechcs.com
  •  02-07-2008, 5:50 PM 1341 in reply to 1340

    Re: Very New to Publishing SQL Databases, Need step by step

    I follow the instructions, but the site is still not working I'm using the CSK 3.1 and I'm not sure if the connection string is right, see this is my problem the database  from my local is the ClubDB.mdf and the backup still is ClubDB.mdf.bak, but when I look in the DNP SQL Database properties from the empty database I created, in the tab I can see this
    Size, KB:5312
    Logical Name:tempname
    Size, KB:504
    Logical Name:clubsite_log

    the size of the files is right but I don't see the name of the database I restore unless it was change to tempname, in any case this is a copy of my connection string can someone please tell me what I missing?

     <connectionStrings>
    <remove name="LocalSqlServer"/>
        <add name="LocalSqlServer"
             connectionString="Data Source=72.52.xxx.xx;Database=Areyou;User Id=Dannyxxx;Password=xxxxxxx; User Instance=True"
             providerName="System.Data.SqlClient"/>
    </connectionStrings>

    Also when I tried to log in the littleadmin SQL it would say something about not finding the shared memory dll and won't let me see the DB. Any help would be greatly appreciated, I'm new to ASP.NET and having hard time making this site works. Thanks

     

  •  02-07-2008, 9:42 PM 1345 in reply to 1341

    Re: Very New to Publishing SQL Databases, Need step by step

    In DNP SQL Databases, you should create a database that is the same name as the one you are restoring (e.g. ClubDB).  Then your connection string must use that same name (Database=ClubDB;).
    William Eaton, MCSE
    iTech Computer Solutions, LLC
    www.itechcs.com
  •  02-08-2008, 10:01 PM 1358 in reply to 1345

    Re: Very New to Publishing SQL Databases, Need step by step

    Thanks for the answer, but I still have one more question regarding this, do I add the extension from the kit also? ie ClubDB.mdf? That's how the bak is named ClubDB.mdf.bak
  •  02-08-2008, 10:12 PM 1359 in reply to 1358

    Re: Very New to Publishing SQL Databases, Need step by step

    It doesn't really matter what you name the file, but when you create the database in DNP, do not include any file extensions (mdf, bak, etc).  For the database name just type ClubDB.

    Then, when you restore your copy to the ClubDB database in DNP, DNP will automatically rename your backup file appropriately (which is technically ClubDB.mdf).  Your connection string should not include the filename/extension...just the name of the database (ClubDB).


    William Eaton, MCSE
    iTech Computer Solutions, LLC
    www.itechcs.com
  •  02-08-2008, 11:16 PM 1360 in reply to 1359

    Re: Very New to Publishing SQL Databases, Need step by step

    I did everything that I needed to do but I have a little problem I'm receiving this when I tried to make the hosted DB. I deleted the old one and trying to do the corrected name but this is the error:

     

    SQL Database Properties
    Specified database already exists on the target service
    Database name:


    Users
    DannyOne
    Database Files
    Data File Log File
    Size, KB:0
    Logical Name:
    Size, KB:0
    Logical Name:
    Maintenance Tools
    Housekeeping Tools
  •  02-09-2008, 2:45 PM 1363 in reply to 1360

    Re: Very New to Publishing SQL Databases, Need step by step

    Your database name needs to be unique.  Most of us share the same SQL Server, so if I create a database named "myDB", then nobody else could, even though they are on a separate hosting plan.

    If you'd like to PM me I could work with you offline on how to get your database loaded.


    William Eaton, MCSE
    iTech Computer Solutions, LLC
    www.itechcs.com
  •  02-11-2008, 9:51 PM 1365 in reply to 1363

    Re: Very New to Publishing SQL Databases, Need step by step

    I finaly got it, I named the database ClubDB1 and it accepted the name but when I click in the database name "ClubDB1" the size is right, but the name says "tempname", and the log says clubsite_log. However I think that is not just the database that is stopping the website from running I keep receiving this web.config error and doesn't matter what I do or someone else do,  it come back with the same error. And of course I would appreciate any help to make the site run, and perdon my ignorance but what's PM? Thank you.
  •  02-11-2008, 11:09 PM 1366 in reply to 1365

    Re: Very New to Publishing SQL Databases, Need step by step

    PM is Private Message.  Click on "Contact" in this message and then click "Send itechcs an email" or "Send itechcs a private message".
    William Eaton, MCSE
    iTech Computer Solutions, LLC
    www.itechcs.com
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems