ASP pages & Database creation.

  • Hi all,

    just a quick question, is it possible to create a database from input on an asp page.

    I.E I have a web page with a single text field on it, this would contain the name of the database to be created, on submit I want to be able to create a new database from this input, by running an SP or something similar.

    Is it possible, and if so could you point me in the correct direction please.

    I have already tried running a stored procedure, but I need to be able to change the code to incorporate the new database name in all the correct places.

    Cheers

  • You could do this by calling a sp that dynamically builds CREATE DATABASE @DBName and then is EXEC via sp_executesql.

     



    Good Hunting!

    AJ Ahrens


    webmaster@kritter.net

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply