Home All Groups Group Topic Archive Search About

Inserting Records from Table type to Temp table

Author
21 Jan 2006 3:07 PM
Uma
Hi,

I want to insert records from table type to temp table without using cursors
in SQL Server 2000 stored procedure.

Regards,
Shanmugam

Author
21 Jan 2006 3:19 PM
Tibor Karaszi
You mean like below?

DECLARE @t TABLE (c1 int)

INSERT INTO @t (c1) VALUES(1)

CREATE TABLE #t (c1 int)

INSERT INTO #t
SELECT c1 FROM @t

SELECT * FROM @t


Show quote
"Uma" <u**@cspl.com> wrote in message news:OZAWvwpHGHA.3936@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> I want to insert records from table type to temp table without using cursors
> in SQL Server 2000 stored procedure.
>
> Regards,
> Shanmugam
>
>
>

AddThis Social Bookmark Button