Viewing 15 posts - 916 through 930 (of 1,219 total)
You have given us the table definition and sample data, and that is great.
However, there is not really any good description of the business rules and what is the expected...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
August 7, 2013 at 4:09 pm
Run this in tempdb:
SELECT o.name AS objname, c.name as colname
INTO tempo
FROM sys.objects o
JOIN sys.columns c ON o.object_id = c.object_id
go
CREATE STATISTICS stringstat ON tempo(colname) WITH...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
August 7, 2013 at 3:58 pm
Yes, you could use these values, but you would need to sample and aggregate them. There may be a session with high CPU values, but which has been idle for...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
August 7, 2013 at 3:50 pm
Could you post the example you are talking about?
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
August 7, 2013 at 3:47 pm
So when you say that the performance depends on the order of the conditions, you are really talking about queries in two different databases.
Since the optimizer determines the query plan...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
August 7, 2013 at 3:44 pm
SQLSteve (8/7/2013)Its getting stuck at the first step. When I run the steps outside of a job it all works. Step1 is failing in the job saying @subdir is not...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
August 7, 2013 at 3:37 pm
When you use a CTE, SQL Server treats it like a macro, and replaces all references to the CTE with the query text, and the optimizer works with the expanded...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
August 7, 2013 at 3:27 pm
TheSQLGuru (8/7/2013)
Normally this would be important (and is still good to point out), but here with the LIKE '%' + text + '%', performance is gonna suck anyway!
Although depending on...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
August 7, 2013 at 2:28 pm
Note that it is a little tricky. See this section on my web site:
http://www.sommarskog.se/grantperm.html#context_info. Note that you only need to read down to the next header.
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
August 7, 2013 at 2:21 pm
Yes, but SQL Server may internally implement that UPDATE as INSERT+DELETE.
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
August 7, 2013 at 2:14 pm
Review this search result from Google for samples on how to write a CLR procedure.
You are not going to call the procedure from your trigger, I hope?
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
August 7, 2013 at 2:13 pm
andymay-496937 (8/6/2013)
Thanks for that, I'm not sure that Books on Line advice about putting the values in a table are that helpful for SSRS, but it's good stuff in general.
So...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
August 7, 2013 at 3:11 am
I would assume that this happens when an UPDATE is not implemented as an in-place update, but as INSERT + DELETE.
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
August 7, 2013 at 3:01 am
Sorry, but you will have to colour me as completely clueless. You are copying data from one database table to another. Where does the spreadsheet come into the picture?
I am...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
August 7, 2013 at 2:51 am
1) Don't name your stored procedures sp_something. The sp_ prefix is reserved for system procedures.
2) As far as I can see there is a 'k' in both "Alexandra Park" and...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
August 7, 2013 at 2:36 am
Viewing 15 posts - 916 through 930 (of 1,219 total)