| | |
How to Create database in SQL Server using Javascript & HTML?
Please support our MS SQL advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Oct 2009
Posts: 2
Reputation:
Solved Threads: 0
Hello,
I want to create database on SQL Server using Javascript and HTML. User will input following data. Server Name, Database name, File Sizes. When I will click "Submit" button database should be created on Selected server with entered name. I am using Client side HTML and Javascript.
we need to create database according to some standards thus we are preparing graphical user interface.
Quick response will be appreciated.
Thanks, Rahul
I want to create database on SQL Server using Javascript and HTML. User will input following data. Server Name, Database name, File Sizes. When I will click "Submit" button database should be created on Selected server with entered name. I am using Client side HTML and Javascript.
we need to create database according to some standards thus we are preparing graphical user interface.
Quick response will be appreciated.
Thanks, Rahul
0
#3 29 Days Ago
@Thirusha correction, you can do DB connectivity with AJAX which is essentially JavaScript
Last edited by peter_budo; 29 Days Ago at 4:22 pm.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
•
•
Join Date: Sep 2009
Posts: 42
Reputation:
Solved Threads: 5
-1
#4 29 Days Ago
•
•
•
•
Hello,
I want to create database on SQL Server using Javascript and HTML. User will input following data. Server Name, Database name, File Sizes. When I will click "Submit" button database should be created on Selected server with entered name. I am using Client side HTML and Javascript.
we need to create database according to some standards thus we are preparing graphical user interface.
Quick response will be appreciated.
Thanks, Rahul
-1
#6 25 Days Ago
We may never know as Rahul002 was so rude as to never reply what he/she is up to...
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
•
•
Join Date: Sep 2009
Posts: 42
Reputation:
Solved Threads: 5
0
#7 24 Days Ago
Sorry, I forgot about AJAX. It isn't just JavaScript. It is a combination of JavaScript and XMLA. One of the key phrases in the AJAX tutorial is "AJAX uses the XMLHttpRequest object". This is, in effect your cgi link I was talking about. The intent in the tutorial was to connect to a server that had your DB interface already built.
I assumed that the request was to create a database on the client since JavaScript is and remains client-side code only. I can't think of any valid reason for creating a database on the server-side. If he is dead-set on creating a DB on the client side, I suppose it is possible using AJAX, I still say it is impossible using JavaScript. You would need an unnamed SQL Server object running on the client, the person running the web page would need admin rights on SQL, you would connect using the local IP address, verify the DB doesn't exist on the client server and create it.
I sincerely hope and pray that using AJAX to create a DB on my server is impossible as well. I hate to think what a set of malware could do to me being able to connect to me, as me, just by setting up a web page. I hate what they can do now that requires a constant update of sentry software.
I assumed that the request was to create a database on the client since JavaScript is and remains client-side code only. I can't think of any valid reason for creating a database on the server-side. If he is dead-set on creating a DB on the client side, I suppose it is possible using AJAX, I still say it is impossible using JavaScript. You would need an unnamed SQL Server object running on the client, the person running the web page would need admin rights on SQL, you would connect using the local IP address, verify the DB doesn't exist on the client server and create it.
I sincerely hope and pray that using AJAX to create a DB on my server is impossible as well. I hate to think what a set of malware could do to me being able to connect to me, as me, just by setting up a web page. I hate what they can do now that requires a constant update of sentry software.
Last edited by kplcjl; 24 Days Ago at 4:47 pm. Reason: clarify statement
•
•
Join Date: Oct 2009
Posts: 2
Reputation:
Solved Threads: 0
Hello,
Thanks for your response. My requirement was to create database on SQL 2005 Server with my local machine using any language. But we cant use any application server for this, Hence i wanted to do this using client side scripting. I will find is AJAX suitable for this sceneario or not. I really appreciate your efforts.
Thanks,
Rahul
•
•
Join Date: Sep 2009
Posts: 42
Reputation:
Solved Threads: 5
0
#9 22 Days Ago
Again, I sincerely hope you find it is IMPOSSIBLE to put a DB on my SQL server if I happen to link to your web site. There are enough security holes to drive a mack truck through without adding this one to it.
I'm kind of conflicted because I usually don't want someone to fail in their endevours, but I definitely hope you fail.
I'm kind of conflicted because I usually don't want someone to fail in their endevours, but I definitely hope you fail.
![]() |
Similar Threads
- convert MS Access to MS SQL Server (VB.NET)
- ms access database to sql server (MS Access and FileMaker Pro)
- Senior Web Solutions Developer (ColdFusion, Javascript, mySQL, HTML, CSS & XML Tools) (Web Development Job Offers)
- Copy a table from one database to another database in another ms sql server using .. (MS SQL)
- How do I make my Access database work with MS SQL Server? (MS Access and FileMaker Pro)
- SQL Server DBA - " Hot " (Software Development Job Offers)
- SQL Server DBA (Software Development Job Offers)
- Connecting to a SQL Server Database using VB (VB.NET)
Other Threads in the MS SQL Forum
- Previous Thread: Cute: I need to remove the db_backupoperator permissions from the db_owner role.
- Next Thread: Get records from current year
| Thread Tools | Search this Thread |







