Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. newbie SQL question

newbie SQL question

Scheduled Pinned Locked Moved Database
databasequestionsql-serversysadminxml
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mundo Cani
    wrote on last edited by
    #1

    Hello, I'm developing a simple website with a SQL server 2005 back-end. I've designed my database schema and I'm ready to create the database and add tables. So, here's my question: When building a database backend for a web application, do you generally build the database on a local development machine and then somehow move it to the server? Or do you build it in place on the server somehow (by running server-side sql queries or something)? I just need a little high-level help here. Thanks! -Ian Ian

    A C 2 Replies Last reply
    0
    • M Mundo Cani

      Hello, I'm developing a simple website with a SQL server 2005 back-end. I've designed my database schema and I'm ready to create the database and add tables. So, here's my question: When building a database backend for a web application, do you generally build the database on a local development machine and then somehow move it to the server? Or do you build it in place on the server somehow (by running server-side sql queries or something)? I just need a little high-level help here. Thanks! -Ian Ian

      A Offline
      A Offline
      Al Ortega
      wrote on last edited by
      #2

      You can generate scripts while creating your schema objects on your local dev machine, modify as needed and then run the scripts against your production machine later. As you make changes you keep this same practice and then you can rebuild the schema whenever you want when you get new development or testing boxes... hth Al

      1 Reply Last reply
      0
      • M Mundo Cani

        Hello, I'm developing a simple website with a SQL server 2005 back-end. I've designed my database schema and I'm ready to create the database and add tables. So, here's my question: When building a database backend for a web application, do you generally build the database on a local development machine and then somehow move it to the server? Or do you build it in place on the server somehow (by running server-side sql queries or something)? I just need a little high-level help here. Thanks! -Ian Ian

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        I create scripts. When I'm ready to deploy I run the scripts on the live server. Once the system is in production and there is an upgrade to do I take a backup of the live (production) system and restore it on the development platform and test the migration scripts. Once they work, I run them on the live server when deploying the changes. ColinMackay.net Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

        P 1 Reply Last reply
        0
        • C Colin Angus Mackay

          I create scripts. When I'm ready to deploy I run the scripts on the live server. Once the system is in production and there is an upgrade to do I take a backup of the live (production) system and restore it on the development platform and test the migration scripts. Once they work, I run them on the live server when deploying the changes. ColinMackay.net Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          Colin Angus Mackay wrote:

          I create scripts. When I'm ready to deploy I run the scripts on the live server.

          Yeah, no sense in risking live production data if something isn't right in the script.

          Colin Angus Mackay wrote:

          Once the system is in production and there is an upgrade to do I take a backup of the live (production) system and restore it on the development platform and test the migration scripts. Once they work, I run them on the live server when deploying the changes.

          Good to have your bases covered :) PJC

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups