Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating temporary table
Message
De
04/02/2014 13:59:29
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Creating temporary table
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01593184
Message ID:
01593184
Vues:
43
Here is an example of a command to create a temporary table:
SELECT Numero INTO #Temp FROM Country WHERE Country.Numero<10
That will create #Temp with 9 records.

If I try to do this again, I have:

"There is already an object named '#Temp' in the database."

However, this does not exist in the database. This is memory only.

So, for as long as I remain in the same window, I cannot do it. But, if I open another query window, I can do this command again.

What kind of cleanup is necessary so I can execute the same command?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform