Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update one SP in many databases
Message
From
16/03/2007 04:04:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
16/03/2007 03:59:39
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01204396
Message ID:
01204403
Views:
26
>Thanks for your fast reply
>I place several new sp in one file named update.sqlor update.txt
>
>how can I can Call this sql programically
>Thanks
>such as
>Use branch1
>do update.sqll...... etc

First it's common to use .sql as extension. Second check osql,wsql.

If you're putting it inot a file then you could simply open that in query analyzer and execute:

use db1
go
sp
go
use db2
go
sp
go
use db3
go
sp
go
...

Agnes you have VFP, no? You could simply do it via SQLExec().
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform