Write SQL results to s file
-
- Posts: 155
- Joined: Mon Nov 12, 2007 11:59 am
Write SQL results to s file
Is there a way to write the results of an SQL query run in installaware to a file?
bcp is a bulk copying utility. I believe what you want is to run a sql scipt and log the out put. The way I accomplish is to use "Run Program" but I call sqlcmd or osql. I create the script file on disk and run sqlcmd or osql against it. You can package the cript file in your support files section or in the IDE they are called "Creatives".
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
-
- Posts: 155
- Joined: Mon Nov 12, 2007 11:59 am
We are currently using a batch file to run our SQL commands but we have to restart after SQL server is installed or the batch file will not run. We do not have to force out users to restart if we use the build in SQL runner in Installaware. The only problem with this is that we would like to have an output log of the script process so we can use it to debug any issues that they might have.
We create a named instance of SQL server rather then using the default.
We create a named instance of SQL server rather then using the default.
-
- Posts: 155
- Joined: Mon Nov 12, 2007 11:59 am
Who is online
Users browsing this forum: No registered users and 58 guests