C# .NET - to convert the query into batch file

Asked By sathish kannan.p on 23-Jan-10 05:35 PM

sir/ mam

                  i am p. sathish kannan, i need the coding to convert the query into batch file..

                                        thank you.....

                          

What kind of query and what kind of batch file? - Robbe Morris replied to sathish kannan.p on 23-Jan-10 06:31 PM

Your post needs more clarification.

convert query into batch file - mv ark replied to sathish kannan.p on 23-Jan-10 11:47 PM

If by query you mean a SQL query that you want to save for frequent use, you can consider writing the query in a stored procedure. Stored procedures are supported by many RDBMSs

If you need a more elaborate answer, provide us more details & context.
Jonathan VH replied to sathish kannan.p on 24-Jan-10 08:22 AM
If you mean a SQL Server query, you can use the sqlcmd command-line utility.