|
-
Aug 7th, 2007, 03:47 PM
#1
Thread Starter
Member
[2005] SQL Commands to export tables to text file
I am trying to write my first app here. It is a form that asks the user for their SQL server name, database admin username and password, amongst other things. I was hoping to use the variables in the text boxes to populate the parameters of a command line (using process.start) such as this example:
Code:
isql.exe -S%SERVER% -U%USERNAME% -P%PASSSWORD% -d%DBNAME% -i%INPUTFILENAME%.sql -s| -n -w500 -o%CUSTOMERNAME%_01.txt
I felt after seeing the post here:
http://www.vbforums.com/showthread.php?t=458555
that my decision to use process.start may be a little inelegant.
Please tell me I'm on the right track here. I want to take the input from the form, run SQL queries that will export the tables to text files (then send the text files to an ftp server - but that's another issue)
Thanks
-
Aug 8th, 2007, 03:21 AM
#2
Re: [2005] SQL Commands to export tables to text file
If you don't need to manipulate any data within your application then using the command line is the right solution.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|