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. Web Development
  3. ASP.NET
  4. How To Create DataBase On The Fly?

How To Create DataBase On The Fly?

Scheduled Pinned Locked Moved ASP.NET
databasesysadminhostinghelptutorial
4 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.
  • D Offline
    D Offline
    dream_liner_7e7
    wrote on last edited by
    #1

    Basically i m creating a web based installer where users will create database and execute sqlscript on there hosting server, that y i need hosting server ip, uid, pwd from user. The create database dbname will run for the first time to create the database then executing sqlscript will create structure in that database. thats y i m confused how to create DB on the fly. Any help will be appreciated. Thanks in advance.

    A J 2 Replies Last reply
    0
    • D dream_liner_7e7

      Basically i m creating a web based installer where users will create database and execute sqlscript on there hosting server, that y i need hosting server ip, uid, pwd from user. The create database dbname will run for the first time to create the database then executing sqlscript will create structure in that database. thats y i m confused how to create DB on the fly. Any help will be appreciated. Thanks in advance.

      A Offline
      A Offline
      AhsanS
      wrote on last edited by
      #2

      You can take the IP of the server from the user (hosting server must give rights for installing) along with user name and password. And run your scripts to generate database by calling a web service resident on your server.

      Ahsan Ullah Senior Software Engineer

      1 Reply Last reply
      0
      • D dream_liner_7e7

        Basically i m creating a web based installer where users will create database and execute sqlscript on there hosting server, that y i need hosting server ip, uid, pwd from user. The create database dbname will run for the first time to create the database then executing sqlscript will create structure in that database. thats y i m confused how to create DB on the fly. Any help will be appreciated. Thanks in advance.

        J Offline
        J Offline
        John Gathogo
        wrote on last edited by
        #3

        It sounds to me like what you need is a custom action dll that can be called by the installer to create the database. Custom actions DLLs are added to the WebSetup Project using Custom Actions Editor. You will also need to use the User Interface Editor to add some dialog that allow the user to enter some of the parameters like uid, pwd. The installer will then use the parameters to access/run the database scripts

        J 1 Reply Last reply
        0
        • J John Gathogo

          It sounds to me like what you need is a custom action dll that can be called by the installer to create the database. Custom actions DLLs are added to the WebSetup Project using Custom Actions Editor. You will also need to use the User Interface Editor to add some dialog that allow the user to enter some of the parameters like uid, pwd. The installer will then use the parameters to access/run the database scripts

          J Offline
          J Offline
          John Gathogo
          wrote on last edited by
          #4

          You can look up how to use custom actions from here http://www.simple-talk.com/dotnet/visual-studio/visual-studio-setup---projects-and-custom-actions/[^]

          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