Why do LocalTemp table showing with lengthy underscore under Temporary Tables of tempdb in SSMS 2017 Express Edition?
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
1
down vote
favorite
In my Microsoft SQL Server 2017 Express Edition, I have created a local temp table using below create statement,
create table #localtemptable
(tempid int,tempname varchar(20) )
After creating #table
, I checked the tempdb -> Temporary Table , it is showing the table name along with a lengthy underscore and 0000000004 number. What is it meaning and why it is showing like this?
ssms sql-server-2017 tempdb temp-tables
add a comment |Â
up vote
1
down vote
favorite
In my Microsoft SQL Server 2017 Express Edition, I have created a local temp table using below create statement,
create table #localtemptable
(tempid int,tempname varchar(20) )
After creating #table
, I checked the tempdb -> Temporary Table , it is showing the table name along with a lengthy underscore and 0000000004 number. What is it meaning and why it is showing like this?
ssms sql-server-2017 tempdb temp-tables
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
In my Microsoft SQL Server 2017 Express Edition, I have created a local temp table using below create statement,
create table #localtemptable
(tempid int,tempname varchar(20) )
After creating #table
, I checked the tempdb -> Temporary Table , it is showing the table name along with a lengthy underscore and 0000000004 number. What is it meaning and why it is showing like this?
ssms sql-server-2017 tempdb temp-tables
In my Microsoft SQL Server 2017 Express Edition, I have created a local temp table using below create statement,
create table #localtemptable
(tempid int,tempname varchar(20) )
After creating #table
, I checked the tempdb -> Temporary Table , it is showing the table name along with a lengthy underscore and 0000000004 number. What is it meaning and why it is showing like this?
ssms sql-server-2017 tempdb temp-tables
ssms sql-server-2017 tempdb temp-tables
asked 48 mins ago
Sathiya Kumar
150111
150111
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
The lengthy underscore followed by the number were added by the engine to your requested table name in order to make the table name globally unique in the tempdb database. You can query your local table in the session that created it using the #localtemptable
name that you gave it. What you are seeing is perfectly normal behavior and there's nothing to be alarmed about.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
The lengthy underscore followed by the number were added by the engine to your requested table name in order to make the table name globally unique in the tempdb database. You can query your local table in the session that created it using the #localtemptable
name that you gave it. What you are seeing is perfectly normal behavior and there's nothing to be alarmed about.
add a comment |Â
up vote
2
down vote
The lengthy underscore followed by the number were added by the engine to your requested table name in order to make the table name globally unique in the tempdb database. You can query your local table in the session that created it using the #localtemptable
name that you gave it. What you are seeing is perfectly normal behavior and there's nothing to be alarmed about.
add a comment |Â
up vote
2
down vote
up vote
2
down vote
The lengthy underscore followed by the number were added by the engine to your requested table name in order to make the table name globally unique in the tempdb database. You can query your local table in the session that created it using the #localtemptable
name that you gave it. What you are seeing is perfectly normal behavior and there's nothing to be alarmed about.
The lengthy underscore followed by the number were added by the engine to your requested table name in order to make the table name globally unique in the tempdb database. You can query your local table in the session that created it using the #localtemptable
name that you gave it. What you are seeing is perfectly normal behavior and there's nothing to be alarmed about.
answered 36 mins ago
Joe Obbish
18.9k32477
18.9k32477
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f219136%2fwhy-do-localtemp-table-showing-with-lengthy-underscore-under-temporary-tables-of%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password