Solved

SQL - Need to create a temporay table

Posted on 2007-12-05
2
159 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
Comment Utility
#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
Comment Utility
Thanks
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now