Solved

SQL - Need to create a temporay table

Posted on 2007-12-05
2
162 Views
Last Modified: 2010-04-21
I'm working in ColdFuison and i need to create a temporary MS SQL 2000 table.
<cfquery name="createTempTable" datasource="#dbname#" username="#dbuser#"passsword="#dbpw#">
CREATE TABLE #tmp_report_table
(name      VARCHAR(30),
id            int(4),
level      int(4)
)
</cfquery>

What i'm i doing wrong?
0
Comment
Question by:Wirt
2 Comments
 
LVL 23

Accepted Solution

by:
Ashish Patel earned 500 total points
ID: 20412620
#temp tables are will just exists untill your current connection state or execution and they get dropped as soon as your execution scope is over. So, its good if you create a table without # prefix in tempdb database for your use.
0
 

Author Closing Comment

by:Wirt
ID: 31412880
Thanks
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

785 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