dbTalk Databases Forums  

running script

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss running script in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
srdjan
 
Posts: n/a

Default running script - 08-04-2003 , 04:55 AM






Is it possible to run SQL certain script from the client application ?

thanx




Reply With Quote
  #2  
Old   
Simon Hayes
 
Posts: n/a

Default Re: running script - 08-04-2003 , 07:45 AM






"srdjan" <priki_ns (AT) yahoo (DOT) com> wrote

Quote:
Is it possible to run SQL certain script from the client application ?

thanx
I'm not sure what you mean by a SQL "script". If you mean a .sql file,
then you can call osql.exe to execute it, or perhaps read the file
into a string variable and execute it from your client library as an
ad hoc query (using ODBC/ADO etc.).

Simon


Reply With Quote
  #3  
Old   
CJ
 
Posts: n/a

Default Re: running script - 08-04-2003 , 04:53 PM



If you encapsulate what you are calling a script into a stored procedure,
yes you can run it from a client app.
CJ
"srdjan" <priki_ns (AT) yahoo (DOT) com> wrote

Quote:
Is it possible to run SQL certain script from the client application ?

thanx






Reply With Quote
  #4  
Old   
Srdan
 
Posts: n/a

Default Re: running script - 08-05-2003 , 12:48 AM



yes, it's a .sql file

thank you


"Simon Hayes" <sql (AT) hayes (DOT) ch> wrote

Quote:
"srdjan" <priki_ns (AT) yahoo (DOT) com> wrote

Is it possible to run SQL certain script from the client application ?

thanx

I'm not sure what you mean by a SQL "script". If you mean a .sql file,
then you can call osql.exe to execute it, or perhaps read the file
into a string variable and execute it from your client library as an
ad hoc query (using ODBC/ADO etc.).

Simon



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.