January 5, 2002 at 12:06 pm
Hi is there any way by which i can run the queeires ina text file programmatically
January 7, 2002 at 7:13 am
Not sure about your specifics on using a text file, but one option, you could create your statements and call them through the ISQL utility. There are a few more options, but I would need to know what exactly you are trying to do. -JG
-JG
January 7, 2002 at 7:20 am
You can use the OSQL command with the -i (case sensitive) command. If you want to do it in T-SQL, then use xp_cmdshell followed by the osql command.
Brian Knight
http://www.sqlservercentral.com/columnists/bknight
Brian Knight
Free SQL Server Training Webinars
January 7, 2002 at 9:09 am
Hi thanks for your help
i do not want to use isql
i want to do his using a programming language
can this be done
is there some sql command like
run filename.sql
thanks
Sanket
January 7, 2002 at 10:23 am
None that I'm aware of. You'd have to use the SP_OA* stored procedures if you want to do this programatically.
Brian Knight
http://www.sqlservercentral.com/columnists/bknight
Brian Knight
Free SQL Server Training Webinars
January 7, 2002 at 10:39 am
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy