SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Testing Temp Tables
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jrobin747
Starting Member

USA
48 Posts

Posted - 08/15/2013 :  15:12:51  Show Profile  Reply with Quote
I working with temp tables for the first time.
I've created the table #TempDashboard
defined the columns and created queries to fill the records using

INSERT & UPDATE

I've been pointed to an example in a stored procedure. I sorta understand what I read in the stored procedure.

Mimicing what I see, I have no idea if I am doing it correctly.

I'm using SQL Server Management Studio 2008. How do I test/see if I am filling the temp table correctly?

James K
Flowing Fount of Yak Knowledge

3661 Posts

Posted - 08/15/2013 :  16:09:36  Show Profile  Reply with Quote
After you fill the temp table, do a SELECT * FROM #TempDashboard
That should show you what you put into the table.

If you create a temp table, it goes out of scope when you exit the stored procedure.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000