473,383 Members | 1,735 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

create database with asp.net

Hello. I want to create a sql server database with my asp.net program. It
will have a textbox for server , other for username and other for password,
after it the program must execute a .sql file. Is that possible?
Nov 19 '05 #1
4 821
Odds are, it won't be able to execute everything in your script. For
example, it won't handle GO statements too well.

You should use SQLDMO to run the script instead, this will be like using
query analyzer.

"Luis Esteban Valencia" <le********@avansoft.com> wrote in message
news:eg****************@TK2MSFTNGP15.phx.gbl...
Hello. I want to create a sql server database with my asp.net program. It
will have a textbox for server , other for username and other for
password,
after it the program must execute a .sql file. Is that possible?

Nov 19 '05 #2
but how! It must be done from the asp.net page as DOTNETNUKE installation
does.
"Marina" <so*****@nospam.com> escribió en el mensaje
news:#$**************@TK2MSFTNGP12.phx.gbl...
Odds are, it won't be able to execute everything in your script. For
example, it won't handle GO statements too well.

You should use SQLDMO to run the script instead, this will be like using
query analyzer.

"Luis Esteban Valencia" <le********@avansoft.com> wrote in message
news:eg****************@TK2MSFTNGP15.phx.gbl...
Hello. I want to create a sql server database with my asp.net program. It will have a textbox for server , other for username and other for
password,
after it the program must execute a .sql file. Is that possible?


Nov 19 '05 #3
Nothing stopping you from treating that .sql file as a "GO" delimited
list of SQL statements that you can run in series.

And for what it's worth, DNN does not actually call CREATE DATABASE.
It needs you to create a database and tell it the name. It just builds
the tables the first time you run it.

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #4
I've had trouble doing that. There are still things ADO.NET chokes on, even
if you break things apart by GO statements.

"jasonkester" <ja*********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Nothing stopping you from treating that .sql file as a "GO" delimited
list of SQL statements that you can run in series.

And for what it's worth, DNN does not actually call CREATE DATABASE.
It needs you to create a database and tell it the name. It just builds
the tables the first time you run it.

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: lkrubner | last post by:
I have a webserver through Rackspace. I create a domain. I create an FTP user. I upload some files. I create a database called testOfSetupScript and then I create a database user named setup. I...
1
by: intl04 | last post by:
I am getting strange print-related error messages when trying to create (not print!) reports. For example, when I click 'new' to create a report then choose 'design view', I get an error message...
9
by: Peter | last post by:
Hello£¬everyone, My program will collect a testing machine's data ,save the data and deal with the data everyday. I want to use vb.net to create database, add and delete tables or modify the...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.