Good morning, the question arose in uploading data from the database, but how much my knowledge level tells me that # cannot be used in the name, and when executing the query in MS SQL SM Stodio does not create errors, but does not create a new table either
This script was previous DBA
if OBJECT_ID('tempdb..#tmp_houses') IS NOT NULL DROP TABLE #tmp_houses; if OBJECT_ID('tempdb..#tmp_plats') IS NOT NULL DROP TABLE #tmp_plats; CREATE TABLE #tmp_houses ( fh_id int, fias VARCHAR(500), mo_caption VARCHAR(255), city_name VARCHAR(255), ul_name VARCHAR(255), d_name VARCHAR(255), d numeric(13, 0), opl numeric(18, 2), plat numeric(18, 2), area_total numeric(18, 2), area_live numeric(18, 2), area_non_live numeric(18, 2), ss_type VARCHAR(255), ss_date date )
#used to name temporary tables. If you work in SSMS, then when creating such a table in the list of database tables, it will not be visible. However, the table will be created and its lifetime will be limited to your connection session, its scope will also be limited to your session. - teran