|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Inserting Records from Table type to Temp tableHi,
I want to insert records from table type to temp table without using cursors in SQL Server 2000 stored procedure. Regards, Shanmugam 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 quoteTibor Karaszi, SQL Server MVP http://www.karaszi.com/sqlserver/default.asp http://www.solidqualitylearning.com/ Blog: http://solidqualitylearning.com/blogs/tibor/ "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 > > > |
|||||||||||||||||||||||