How to Create database in SQL Server using Javascript & HTML?

  • Hello All,

    I want to create datbase on SQL Server 2005 for that i am using user interface of HTML with Javascript.

    User will input following data.

    Server Name, Database Name, File sizes.

    I want to use only client side programming from which i can create database from my machine to SQL Server.

    Quick response will be appreciated.

    Thanks,

    Rahul

  • you can't, at least not directly. Javascript and HTML cannot run code on a server.

    you can use asp/asp.net/php to receive information from the submit of a form, and the server side code could say, execute a stored procedure that takes values as parameters and creates your database.

    the form could get it's values from a submission page that features your html and javascript.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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

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