create database with asp.net

  • Thread starter Thread starter Marina
  • Start date Start date
M

Marina

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.
 
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?
 
but how! It must be done from the asp.net page as DOTNETNUKE installation
does.
 
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/
 
I've had trouble doing that. There are still things ADO.NET chokes on, even
if you break things apart by GO statements.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top