مهدی هادیان2
پنج شنبه 06 تیر 1392, 04:59 صبح
بسم الله الرحمن الرحیم
با سلام
لطفا کوئری زیر را اجرا کنید:
Create Table #Table1(Col1 int, Col2 Varchar(50))
و در پنجره ای دیگر کوئری زیر را اجرا کنید:
Create Table #Table1(Col1 int, Col2 Varchar(50), Col3 DateTime)
به نظرتون کوئری دوم اجرا میشود؟
جواب بله است و یک سایت در پاسخ این چنین آورده بود:
SQL Server links the local temp table to the session, so the same table name will create no problem in different sessions. Ref: http://msdn.microsoft.com/en-us/library/ms174979.aspx
با سپاس
با سلام
لطفا کوئری زیر را اجرا کنید:
Create Table #Table1(Col1 int, Col2 Varchar(50))
و در پنجره ای دیگر کوئری زیر را اجرا کنید:
Create Table #Table1(Col1 int, Col2 Varchar(50), Col3 DateTime)
به نظرتون کوئری دوم اجرا میشود؟
جواب بله است و یک سایت در پاسخ این چنین آورده بود:
SQL Server links the local temp table to the session, so the same table name will create no problem in different sessions. Ref: http://msdn.microsoft.com/en-us/library/ms174979.aspx
با سپاس