Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to install database using SQL script from .net deployment project in VS

Reply
Thread Tools

How to install database using SQL script from .net deployment project in VS

 
 
Nitin Singh
Guest
Posts: n/a
 
      06-01-2005
We are using a VS Deployment Project to distribute an ASP.NET app.
Presently we take script files to client and run them in Query Analyser of
SQL Server. But we want to automate running of SQL scripts along with the
application installer.

We tried using a project which reads script files and run them by passing it
to SQL Client's Command object, but this accepts only ONE entity's script at
a time.

So in order to create about 100 tables and 500 sp, we require writing 600
calls to the function which sends the script to command object.

If we create the script for all objects in a single file, the "GO" keyword
throws and error.

Please help me.


Nitin Singh
ASP.NET Developer

India


 
Reply With Quote
 
 
 
 
Jamie Bissett
Guest
Posts: n/a
 
      06-02-2005

"Nitin Singh" <> wrote in message
news:...
> We are using a VS Deployment Project to distribute an ASP.NET app.
> Presently we take script files to client and run them in Query Analyser of
> SQL Server. But we want to automate running of SQL scripts along with the
> application installer.
>
> We tried using a project which reads script files and run them by passing
> it
> to SQL Client's Command object, but this accepts only ONE entity's script
> at
> a time.
>
> So in order to create about 100 tables and 500 sp, we require writing 600
> calls to the function which sends the script to command object.
>
> If we create the script for all objects in a single file, the "GO" keyword
> throws and error.
>
> Please help me.
>
>
> Nitin Singh
> ASP.NET Developer
>
> India
>
>

Check out this URL
http://www.codeguru.com/Csharp/.NET/...cle.php/c9601/


 
Reply With Quote
 
 
 
 
Nitin Singh
Guest
Posts: n/a
 
      06-03-2005
Thanks

the problem has been solved, by using the "regex " in the ExecuteSQL
function.

Nitin Singh


 
Reply With Quote
 
prakashb prakashb is offline
Junior Member
Join Date: Mar 2007
Posts: 1
 
      03-21-2007
Can you send me the code so that i can create for my project
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Database Database Database scott93727@gmail.com Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase scott93727@gmail.com Computer Information 0 09-26-2012 09:40 AM
How to configure .Net Installer/Deployment project to install in different location to the default website thatsMaBoy ASP .Net 0 03-08-2006 04:28 PM
How to configure .Net Installer/Deployment project to install in different location to the default website thatsMaBoy ASP .Net 0 03-08-2006 04:28 PM
Enterprise Library deployment problem. Why needs to InstallUtil DLLs to the deployment server? If not, Registry Error whould shown. Benny Ng ASP .Net 0 10-03-2005 05:40 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57