Viewing 15 posts - 6,466 through 6,480 (of 22,211 total)
Sounds like a great place to put a wrapper proc. Have it have the same name and parameters as your current procedure. Then, inside it, it figures out which of...
April 3, 2015 at 11:14 am
Sean Lange (4/3/2015)
Grant Fritchey (4/3/2015)
Koen Verbeeck (4/3/2015)
It's Friday and I'm grumpy...http://www.sqlservercentral.com/Forums/Topic1674050-3412-1.aspx
OK. Funny, very funny, but a little uncool.
I found it a rather fitting response to somebody who clearly seemed they...
April 3, 2015 at 7:33 am
Koen Verbeeck (4/3/2015)
It's Friday and I'm grumpy...http://www.sqlservercentral.com/Forums/Topic1674050-3412-1.aspx
OK. Funny, very funny, but a little uncool.
April 3, 2015 at 6:37 am
Instead of killing all the processes directly, you could run your query, capture the ones you're going to kill, then simply set the database to restricted user and use rollback...
April 3, 2015 at 6:30 am
You're doing an INSERT and then want to use the values inserted later within the same query? How about using the OUTPUT clause to capture the values into either variables...
April 3, 2015 at 6:24 am
Try rewriting it to:
SELECT @KUR = RATES1 FROM dbo.L_DAILYEXCHANGES WHERE EDATE= @T1 AND CRTYPE =1;
But, it's only going to work if that only returns a single value. If it returns...
April 3, 2015 at 6:21 am
Rather than just killing the processes, understand what those processes are doing and why you're getting "massive" locks from them. And locking is a normal part of inserts, so it's...
April 3, 2015 at 6:18 am
Stanley Pagenel (4/2/2015)
Thanks to both of you. I've used tuning advisor and apply the recommendations and I've gain more speed now.
That's good. What did it advise you to do?
For what...
April 2, 2015 at 7:05 am
I work for Red Gate
You can use Red Gate SQL Compare[/url] and SQL Data Compare[/url] to look at the backup and retrieve just a table and it's data.
April 2, 2015 at 5:04 am
I don't have specific scripts that I can supply you. However, the documentation is very clear. You can use the HyperV cmdlets to query the hypervisor. You can then use...
April 1, 2015 at 7:38 pm
You have to use NEWID() to generate new values for a UNIQUEIDENTIFIER column. You might also want to look at NEWSEQUENTIALID() (in the same documentation).
April 1, 2015 at 4:16 pm
Eirikur Eiriksson (4/1/2015)
April 1, 2015 at 4:13 pm
It's only 238 lines. That's what, two printed pages, maybe three. We don't start talking about how evil a query is until it breaks at least 10 printed pages.
So, we...
April 1, 2015 at 4:12 pm
I don't know of any way to query the hypervisor from within T-SQL. Not directly. Assuming the login your SQL Server instance operates under has permission to the hypervisor, it's...
April 1, 2015 at 3:55 pm
Still ought to see some sort of error. Maybe you're just getting a timeout while it waits for a lock to clear? What's calling the truncate statement?
April 1, 2015 at 3:53 pm
Viewing 15 posts - 6,466 through 6,480 (of 22,211 total)