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. Executing Scripts In SQL Server 2000

Executing Scripts In SQL Server 2000

Scheduled Pinned Locked Moved Database
databasequestionsql-serversysadmintools
5 Posts 2 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.
  • A Offline
    A Offline
    azam316
    wrote on last edited by
    #1

    hi, is there any other way of executing a sql script in sql server 2000 besides using the sql query analyzer or the enterprise manager itself? for example my database server (sql server 2000) is up and running. what i want do is to change one of the stored procedures. i have made the changes and generated the script. now is there any way that i could upload this script to the deployed sql server and automatically execute it at some fix time? please do answer this question, even if the answer is "no" or nobody knows!! thanx in advance ☺«««DTA»»»☺

    S 1 Reply Last reply
    0
    • A azam316

      hi, is there any other way of executing a sql script in sql server 2000 besides using the sql query analyzer or the enterprise manager itself? for example my database server (sql server 2000) is up and running. what i want do is to change one of the stored procedures. i have made the changes and generated the script. now is there any way that i could upload this script to the deployed sql server and automatically execute it at some fix time? please do answer this question, even if the answer is "no" or nobody knows!! thanx in advance ☺«««DTA»»»☺

      S Offline
      S Offline
      Steven Campbell
      wrote on last edited by
      #2

      In C:\Program Files\Microsoft SQL Server\80\Tools\Binn you should fine a program called osql.exe. This is a command-line query running tool. Alternatively, many installation tools (Installshield, wise, windows installer) support some method of executing SQL on a server.


      my blog

      A 1 Reply Last reply
      0
      • S Steven Campbell

        In C:\Program Files\Microsoft SQL Server\80\Tools\Binn you should fine a program called osql.exe. This is a command-line query running tool. Alternatively, many installation tools (Installshield, wise, windows installer) support some method of executing SQL on a server.


        my blog

        A Offline
        A Offline
        azam316
        wrote on last edited by
        #3

        thanx a lot Steven. osql.exe was just the utility i needed! works great for me! One thing that comes into my mind now is that, if sql server 2000 provides such a utility, does this mean that there might be a tool or program for the versioning of all the Stored Procedures, or any objects in the database? if you could refer such a tool/program, it would be Heaven on Earth for me! ;) thanx a lot! ☺«««DTA»»»☺

        S 1 Reply Last reply
        0
        • A azam316

          thanx a lot Steven. osql.exe was just the utility i needed! works great for me! One thing that comes into my mind now is that, if sql server 2000 provides such a utility, does this mean that there might be a tool or program for the versioning of all the Stored Procedures, or any objects in the database? if you could refer such a tool/program, it would be Heaven on Earth for me! ;) thanx a lot! ☺«««DTA»»»☺

          S Offline
          S Offline
          Steven Campbell
          wrote on last edited by
          #4

          Sorry to disappoint, but there is no built in versioning support in SQL Server, at any level. The best you can do is manually include comments at the start of your stored procedures, to indicate change history. There are some 3rd party tools that do database comparisons, and will be able to tell you when database structures are different. I cannot recommend anything specific though.


          my blog

          A 1 Reply Last reply
          0
          • S Steven Campbell

            Sorry to disappoint, but there is no built in versioning support in SQL Server, at any level. The best you can do is manually include comments at the start of your stored procedures, to indicate change history. There are some 3rd party tools that do database comparisons, and will be able to tell you when database structures are different. I cannot recommend anything specific though.


            my blog

            A Offline
            A Offline
            azam316
            wrote on last edited by
            #5

            no disappoint at all!! not after "oslq.exe". i think i will go for the manual approach, because third party tools usually involve some sort of licensing problems, and versioning in my case has the lowest priority. so i dont think that i'll be spending any money for this purpose! thanx anyways! ☺«««DTA»»»☺

            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