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. Execute SQL file in Enterprise Manager?

Execute SQL file in Enterprise Manager?

Scheduled Pinned Locked Moved Database
databasesql-serversysadminquestion
2 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.
  • C Offline
    C Offline
    c121hains
    wrote on last edited by
    #1

    Firstly, i'm very new to Sql Server 2000. I'm just wondering why there isn't an option in the Enterprise Manager for selecting a database and executing SQL from a file on it. I've been using the osql command in the command prompt to perform my sql functions (create table, drop, alter, etc..) but i need to modify each one by specifying the (USE myDB) and then GO. Do i need to go through DTS and all that package stuff or is there an easier way? I havn't touched the Query Analyzer yet.

    D 1 Reply Last reply
    0
    • C c121hains

      Firstly, i'm very new to Sql Server 2000. I'm just wondering why there isn't an option in the Enterprise Manager for selecting a database and executing SQL from a file on it. I've been using the osql command in the command prompt to perform my sql functions (create table, drop, alter, etc..) but i need to modify each one by specifying the (USE myDB) and then GO. Do i need to go through DTS and all that package stuff or is there an easier way? I havn't touched the Query Analyzer yet.

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

      I open up query analyzer and click the drop down up top to choose my db and then copy and paste the sql file into it and click the run button...

      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