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. Export ms sql server 2005 to .sql

Export ms sql server 2005 to .sql

Scheduled Pinned Locked Moved Database
databasesql-serversharepointsysadminhelp
7 Posts 3 Posters 1 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.
  • D Offline
    D Offline
    djkno3
    wrote on last edited by
    #1

    Does anyone know how to transfer an entire database out of mssql server 2005 (express) into a .sql file so I can recreate it? I have looked though the TSQL commands on msdn and tried bcp (unless I'm missing somthing that will only do tables and I need the stored procedures as well) The reason for this is I want to export the data and put it into a ms sql 2000 database but dts won't work because the database is so different (neither will the sp_attach_db stored procedure (gives an error about indexes)

    C 1 Reply Last reply
    0
    • D djkno3

      Does anyone know how to transfer an entire database out of mssql server 2005 (express) into a .sql file so I can recreate it? I have looked though the TSQL commands on msdn and tried bcp (unless I'm missing somthing that will only do tables and I need the stored procedures as well) The reason for this is I want to export the data and put it into a ms sql 2000 database but dts won't work because the database is so different (neither will the sp_attach_db stored procedure (gives an error about indexes)

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

      I've not had a chance to play around with SQL Server 2005, but in SQL Server 2000 the Enterprise Manager has a feature where you can script database objects (tables, views, stored procedures, user defined functions, etc.) by right clicking on them and selecting the Script item. You can also click on the database to script the whole DB. I'm guessing that SQL Server 2005 will have something similar.


      My: Blog | Photos | Next SQL Presentation WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

      D 1 Reply Last reply
      0
      • C Colin Angus Mackay

        I've not had a chance to play around with SQL Server 2005, but in SQL Server 2000 the Enterprise Manager has a feature where you can script database objects (tables, views, stored procedures, user defined functions, etc.) by right clicking on them and selecting the Script item. You can also click on the database to script the whole DB. I'm guessing that SQL Server 2005 will have something similar.


        My: Blog | Photos | Next SQL Presentation WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

        D Offline
        D Offline
        djkno3
        wrote on last edited by
        #3

        that's the problem ;) the express version of 2005 doesn't have enterprise manager, it has a community built one that doesn't have much funtionality right now. The higher versions of 2005 are suppose to have this but not express (express is the msde of 2005)

        C 1 Reply Last reply
        0
        • D djkno3

          that's the problem ;) the express version of 2005 doesn't have enterprise manager, it has a community built one that doesn't have much funtionality right now. The higher versions of 2005 are suppose to have this but not express (express is the msde of 2005)

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

          djkno3 wrote: the express version of 2005 doesn't have enterprise manager Curious - I was at a Microsoft conference earlier this week and MS were saying that the only difference between the versions was the scaleability. IIRC, Express was supposed to have everything but is limited to operating on single processor with a maximum DB size of 4GB.


          My: Blog | Photos | Next SQL Presentation WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

          D 1 Reply Last reply
          0
          • C Colin Angus Mackay

            djkno3 wrote: the express version of 2005 doesn't have enterprise manager Curious - I was at a Microsoft conference earlier this week and MS were saying that the only difference between the versions was the scaleability. IIRC, Express was supposed to have everything but is limited to operating on single processor with a maximum DB size of 4GB.


            My: Blog | Photos | Next SQL Presentation WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

            D Offline
            D Offline
            djkno3
            wrote on last edited by
            #5

            it has all the *funtionality* but not the tools ;) (oh and 1 gig ram usage is the other limitation)

            M 1 Reply Last reply
            0
            • D djkno3

              it has all the *funtionality* but not the tools ;) (oh and 1 gig ram usage is the other limitation)

              M Offline
              M Offline
              Mike Dimmick
              wrote on last edited by
              #6

              SQL Express Manager is supposed to have this capability. Download from here[^]. Note that the version of Express Manager needs to match the version of SQL Server Express, so you'll need to upgrade your database server to the April CTP to match the currently-available Express Manager CTP. Stability. What an interesting concept. -- Chris Maunder

              D 1 Reply Last reply
              0
              • M Mike Dimmick

                SQL Express Manager is supposed to have this capability. Download from here[^]. Note that the version of Express Manager needs to match the version of SQL Server Express, so you'll need to upgrade your database server to the April CTP to match the currently-available Express Manager CTP. Stability. What an interesting concept. -- Chris Maunder

                D Offline
                D Offline
                djkno3
                wrote on last edited by
                #7

                I have that but the problem is it's not in it yet... or if it is I haven't found it...

                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