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. Installing Database

Installing Database

Scheduled Pinned Locked Moved Database
databasequestioncsharpsql-server
3 Posts 3 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
    abo el ror
    wrote on last edited by
    #1

    How can I install a Database on the SQL SERVER 2000 programatically using VB.Net code? With Regards Rawad Eid

    C J 2 Replies Last reply
    0
    • A abo el ror

      How can I install a Database on the SQL SERVER 2000 programatically using VB.Net code? With Regards Rawad Eid

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

      abo el ror wrote: How can I install a Database on the SQL SERVER 2000 programatically using VB.Net code? Do you mean how to add a database to the server, or actually install the server itself? If you want to attach a database to the server using VB.NET then you can just create SqlCommand objects and use ExecuteNonQuery to run the appropriate SQL commands at the SQL Server. sp_attach_db[^] is probably the Stored Procedure you need. Remember that your SqlConnection to the database must use a user that is the sysadmin or dbcreator role. Does this help?


      Do you want to know more? WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums

      1 Reply Last reply
      0
      • A abo el ror

        How can I install a Database on the SQL SERVER 2000 programatically using VB.Net code? With Regards Rawad Eid

        J Offline
        J Offline
        Javier Lozano
        wrote on last edited by
        #3

        One thing you could do is use the SQLDMO library to encapsulate the objects in the server as types in your application. ~javier lozano (blog)

        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