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
 create table
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sergio.muque
Starting Member

Angola
1 Posts

Posted - 06/08/2012 :  06:39:42  Show Profile  Reply with Quote
hi i´m new in sql server database and i would like to know how can i create a temporary tambles?
help please


sergiomuque

nigelrivett
Flowing Fount of Yak Knowledge

United Kingdom
3328 Posts

Posted - 06/08/2012 :  06:43:50  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
By temporary do yoou mean those that are only available to the batch/spid and get dropped automatically?

create table #a (i int)

can also create from a query
select * into #a from mytbl where x = 'a'

global temp table is
create table ##a (i int)

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
47023 Posts

Posted - 06/08/2012 :  12:02:23  Show Profile  Reply with Quote
quote:
Originally posted by sergio.muque

hi i´m new in sql server database and i would like to know how can i create a temporary tambles?
help please


sergiomuque


see

http://databases.aspfaq.com/database/should-i-use-a-temp-table-or-a-table-variable.html

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

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.05 seconds. Powered By: Snitz Forums 2000