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
 Transact-SQL (2000)
 CURSOR equivalent

Author  Topic 

rgombina
Constraint Violating Yak Guru

319 Posts

Posted - 2008-12-04 : 07:42:23
Sorry for too many questions but obviously I'm not a SQL guy...

I've seen it before and it's probably obvious to many but I would like to fetch/pass a value to WHERE clause just like a cursor. This is most likely a DUH question but I'll take a stab.

I've use EXEC(SQL string) contruct passed in values but not sure if there's different ways.

Thanks!

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-12-04 : 07:50:18
sp_executesql



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -