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 Development (2000)
 dynamic sql

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-03-18 : 07:54:42
shyam writes "execute sp_executesql
N'select * from pubs.dbo.employee where job_lvl = @level',
N'@level tinyint',
@level = 35


if i want to add another parameter how i can add.


execute sp_executesql
N'select * from pubs.dbo.employee where job_lvl = @level' and fname =@name,
N'@level tinyint',
@level = 35

here how i can do the coding??

Thanks
Shyam Koti"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-03-18 : 07:55:35
Books Online has an example of how to do it.
Go to Top of Page
   

- Advertisement -