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)
 Row producing procedures in dynamic sql

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-06-04 : 14:26:17
sambit writes "how to implement a procedure in dynamic sql which would return more than one row???"

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-06-04 : 14:29:46
DECLARE @SQL VARCHAR(7000)

SET @SQL = 'SELECT * FROM master.dbo.sysdatabases'

EXEC (@SQL)

That returns more than one row. But what's the real question?

Tara
Go to Top of Page
   

- Advertisement -