Solved

to create temple table

Posted on 2006-11-03
4
605 Views
Last Modified: 2008-01-09
Hi I want to create a temp table and i am doing it as follow

Create Table #t_i_ifh
(
code char(2),
description varchar(30),
short_description varchar(15),
parent_code varchar(6),
level_number int)

then i am inserting values in that table

which is Insert in tablename(fieldnames)
select '''''''''''''''''''''
union all select''''''''''''''''''



is this the right way as from this table i have to update the other table

can you please help




Regards,


Ammar Tahir
0
Comment
Question by:ammartahir1978
  • 3
4 Comments
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 500 total points
ID: 17868553
Insert into tablename(fieldnames)
select '''''''''''''''''''''
union all select''''''''''''''''''

0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 17868561
still not clear what you are trying to do ?

You can do it in the same way u mentioned
0
 

Author Comment

by:ammartahir1978
ID: 17868587
but when i run it it gives an error


INTERNAL QUERY PROCESSOR ERROR: THE QUERY PROCESSOR RAN OUT OF STACK SPACE DURING QUERY OPTIMIZATION
0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 17878519
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question