Viewing 15 posts - 646 through 660 (of 3,348 total)
Sergiy (3/9/2016)
I replicated the tables, enforced and checked the FK, and I still have Clustered Index Scan on Projects, Clustered Index Seek on Departments and...
March 10, 2016 at 1:32 pm
Please post a repro script (that is a script that includes CREATE TABLE statements for all tables involved, with all constraints and indexes; INSERT statements with sample data; and in...
March 10, 2016 at 1:24 pm
I didn't test it, but I guess you could try to see if this works:
GROUP BY MonthKey, CASE WHEN @Parm1 = 2 THEN CorporateName END
I do not expect this to...
March 10, 2016 at 1:19 pm
In addition to what Phil writes...
1. Double-click the job name in the Job Activity Monitor window, switch to the Steps tab, and click Edit (if there are more steps, do...
March 10, 2016 at 1:04 pm
SQL!$@w$0ME (3/10/2016)
Could you please help me to create a single trigger for both inserts and updates in this case.Many thanks!
Did you already try the approach with column-level permissions? Have you...
March 10, 2016 at 12:49 pm
crookj (3/10/2016)
djj (3/10/2016)
TomThomson (3/10/2016)
Grumpy DBA (3/10/2016)
Ed Wagner (3/9/2016)
Money(can't buy) Happiness
contentment
Zen
Harmony
Music
March 10, 2016 at 6:52 am
Thanks for all the feedback and compliments, people!
And sorry for being off the radar just when this article was published.
@gabriel: I see that John already replied to your question. Thanks,...
March 9, 2016 at 2:59 pm
Short answer to a long question:
If the salaries are paid on a weekly basis, and they are not guaranteed always the same every week, and they need to be stored,...
March 9, 2016 at 2:29 pm
If you want to do partition switching, then all indexes MUST be partitioned. There's no way around that. (Well, unless you are prepared to drop the index before the switch...
March 9, 2016 at 2:17 pm
Try this modification instead. Same idea (stopping when a loop is detected) implemented differently:
WITH cteHierarchy
AS (-- Anchor query: root level with all its children
SELECT ...
March 9, 2016 at 2:08 pm
SQL!$@w$0ME (3/9/2016)
Thanks Hugo.Can I add deny update on the audit create columns in the existing UPDATE trigger.
Yes, you can. But that will also prevent updating those columns from the insert...
March 9, 2016 at 2:00 pm
Siberian Khatru (3/8/2016)
spaghettidba (3/8/2016)
If you want to do...
March 9, 2016 at 1:01 pm
I could write a lengthy reply, but I'll save some time and simply post a link to a very excellent and very detailed writeup on various ways of passing long...
March 9, 2016 at 12:55 pm
Ncage (3/9/2016)
March 9, 2016 at 12:53 pm
The T-SQL declaration of the function includes a column FilePath that is missing in the code of the assembly.
March 9, 2016 at 12:38 pm
Viewing 15 posts - 646 through 660 (of 3,348 total)