Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 DTS!

Author  Topic 

sachinsamuel
Constraint Violating Yak Guru

383 Posts

Posted - 2004-07-05 : 02:55:12
Hi All,

Is the queries which we write in the SQL Task are precompiled or do we need to write storeprocedures for them.

Thanks in advance
Sachin Samuel

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-07-05 : 11:55:38
It's better to write a stored procedure for them and call the stored procedure from the SQL Task. There's a small possibility that the execution plan having the code directly in the SQL Task; however, it's small especially if there is very much time between uses.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page
   

- Advertisement -