0

I have one stored procedure. I don't know the data type of the result set. I want to avoid prior declaration of table schema.

Now, I want to store the result set of procedure in a temporary table. In pseudo SQL it would look like this:

select * into #table1 exec proc_name

What would be the real SQL to do it?

4

1 回答 1

0

第 1 步:创建临时表。说#temp步骤2:

INSERT INTO #temp
exec proc_name
于 2013-09-17T14:23:05.007 回答