Solved

to create temple table

Posted on 2006-11-03
4
608 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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
Via a live example, show how to shrink a transaction log file down to a reasonable size.

630 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