Viewing 15 posts - 256 through 270 (of 321 total)
The caller not being able to see a #temp created by a callee would seem reasonable, like a local variable scoping rule (but not connection related.) I'm not sure that...
January 11, 2008 at 4:48 am
Exactly, Gail. Thanks!
And since it sorta of matched what I was trying to do (calling a stored procedure to define the #temp table, and then referencing that #table name farther...
January 10, 2008 at 1:36 pm
Sergiy -
I'll try to post my example that (I thought) failed tomorrow. Thanks for your interest and comment.
January 10, 2008 at 1:23 pm
Jeff, once I thought there was at least one more exception to the rule:
"Each new query window creates it's own connection or "session" to the database."
From a multiple statements...
January 10, 2008 at 11:11 am
Thanks for the good link, Adam.
I take from it that the bottom line, as in so much in life, is simply:
"It just doesn't matter."
(But another takeaway, which does matter,...
January 10, 2008 at 8:13 am
Thanks Kent. Based on Adam's advice, I yanked the "Distinct" from my original query and let the "EXCEPT" take care of that. (With no ill effects.) I would probably have...
January 10, 2008 at 7:53 am
About "spooky"...
Within SSMS I would use New Query, select my db, and execute:
create table #test1 (PK int)
Then I wold create another query, select my db, and execute:
truncate table #test1
Msg 4701,...
January 10, 2008 at 5:21 am
Wonderful Adam, thanks very much!
1. I went back to BOL, and sure enough the word "distinct" occurs in each of the first three lines of text. It is not that...
January 10, 2008 at 4:50 am
Thanks Matt. And do come back if you get any inspiration about where elsewhere might be.
January 9, 2008 at 2:15 pm
I think I have discovered one reason why temp tables act spooky for me: In the Temp db, the #table name is made unique with a numeric suffix. I think...
January 9, 2008 at 5:52 am
Excel provides some wonderful options to get data from SQL Server (or any ODBC compliant source) -- external data source, external query, pivot from external source, etc. Because you can...
January 3, 2008 at 5:50 am
What is recommended in the case where multiple independent dbs owned by unrelated individuals/groups/organizations are sharing the same server, and providing local DBA functions themselves, and wish their dbs to...
January 3, 2008 at 4:40 am
Viewing 15 posts - 256 through 270 (of 321 total)