How to install database using SQL script from .net deployment project in VS
- From: "Nitin Singh" <ns@xxxxxx>
- Date: Wed, 1 Jun 2005 17:09:27 +0530
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
.
- Follow-Ups:
- Re: How to install database using SQL script from .net deployment project in VS
- From: Jamie Bissett
- Re: How to install database using SQL script from .net deployment project in VS
- Prev by Date: Re: View DataSet content in De-Bug Mode
- Next by Date: debugging related
- Previous by thread: View DataSet content in De-Bug Mode
- Next by thread: Re: How to install database using SQL script from .net deployment project in VS
- Index(es):
Relevant Pages
|