December 9, 2022 at 12:00 am
Comments posted to this topic are about the item The Temp Alias
Follow me on Twitter: http://www.twitter.com/way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
December 9, 2022 at 5:23 am
And you should see what happens when you drop the table! 😀
--Jeff Moden
Dear Lord... I'm a production DBA. Please grant me patience because, if you grant me strength, I'm gonna need bail money to go with it.
December 9, 2022 at 7:44 am
This was removed by the editor as SPAM
December 9, 2022 at 12:13 pm
I wasn't familiar with aliasing a temp table. How is this useful? I'm struggling to think of a use case.
December 13, 2022 at 5:01 pm
I struggle with a use case as well. I was honestly surprised this was available as a possibility.
Follow me on Twitter: http://www.twitter.com/way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
January 18, 2023 at 2:10 am
You could create a separate stored procedure that accepts a spid as an input parameter.
The stored proc would be a simple WAITFOR command that waits for a period of time and then kills the spid if that spids connection time is longer than the waitfor time.
Then all you’d have to do is call that proc in your main procedure, using @@SPID.
January 18, 2023 at 2:17 am
You could create a separate stored procedure that accepts a spid as an input parameter. The stored proc would be a simple WAITFOR command that waits for a period of time and then kills the spid if that spids connection time is longer than the waitfor time. Then all you’d have to do is call that proc in your main procedure, using @@SPID.
Calling a different stored procedure from a main stored procedure isn't an asynchronous event. How would you make it so it was?
--Jeff Moden
Dear Lord... I'm a production DBA. Please grant me patience because, if you grant me strength, I'm gonna need bail money to go with it.
January 18, 2023 at 4:22 am
You are 100% correct Jeff. Complete brain fart on my part. Please disregard my previous comment.
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply