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)
 Passing table variables to dynamic sql

Author  Topic 

Rangi
Starting Member

18 Posts

Posted - 2002-12-06 : 12:05:33
I am right in thinking it's not possible to pass a table variable as a parameter in a sp_executesql statement in the way an int can be passed as a parameter?

Rangi

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-12-06 : 12:17:32
No, you can't pass a table variable. But you can create a temp table in one procedure, populate it with data, and call a second procedure that can reference that temp table and do more work on it.

Go to Top of Page

Rangi
Starting Member

18 Posts

Posted - 2002-12-06 : 13:00:35
Ok thanks, I'll do that.

Rangi

Go to Top of Page
   

- Advertisement -