SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


temporary table


temporary table

Author
Message
thaya2002
thaya2002
SSC-Enthusiastic
SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)

Group: General Forum Members
Points: 143 Visits: 44
hi,
i write stored procs to create reports in crystal report

Stored procedure was very lengthy.i created a temporary table and loaded that using the select clause which consists of numerous fields.
if i dont create temporary table,it appears to be working fine.but if i populate temporary table using select clause,error message pops up.(sql query engine error:010000 something like this)

i have used number of joins as well.

does anyone know why?

i have no idea of that error message.
Is there any size limitation of a temporary table inside the stored proc?

regards,
thaya
preetha.sathyamoorthy
preetha.sathyamoorthy
Mr or Mrs. 500
Mr or Mrs. 500 (542 reputation)Mr or Mrs. 500 (542 reputation)Mr or Mrs. 500 (542 reputation)Mr or Mrs. 500 (542 reputation)Mr or Mrs. 500 (542 reputation)Mr or Mrs. 500 (542 reputation)Mr or Mrs. 500 (542 reputation)Mr or Mrs. 500 (542 reputation)

Group: General Forum Members
Points: 542 Visits: 242
Hi,

First, check your select query with temp table whether it's giving your expected output or not. Then you try with Stored Procedure. Otherwise, send us the clear definition of your problem.

For more information, check the following link.

[url=http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=701264&SiteID=1][/url]

I think, it will be helpful for you.

Regards,

Preetha SG
Grant Fritchey
Grant Fritchey
SSC Guru
SSC Guru (146K reputation)SSC Guru (146K reputation)SSC Guru (146K reputation)SSC Guru (146K reputation)SSC Guru (146K reputation)SSC Guru (146K reputation)SSC Guru (146K reputation)SSC Guru (146K reputation)

Group: General Forum Members
Points: 146051 Visits: 33199
Do everything the previous poster said. If you're still getting the error, post the full error, not "something like this" because that's really hard to narrow down.

----------------------------------------------------
The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood...
Theodore Roosevelt

The Scary DBA
Author of: SQL Server Query Performance Tuning and SQL Server Execution Plans
Product Evangelist for Red Gate Software
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search