Viewing 15 posts - 3,601 through 3,615 (of 7,609 total)
January 22, 2018 at 2:26 pm
January 22, 2018 at 1:50 pm
January 22, 2018 at 1:05 pm
January 22, 2018 at 12:14 pm
January 22, 2018 at 11:05 am
All you have to set / pass in is the "@number_of_months", although you could pass in a different ending month if you wanted to.
DECLARE @number_of_months...
January 19, 2018 at 1:12 pm
OPENQUERY accepts only a literal string query (review the syntax for OPENQUERY() to confirm this).
You have to use dynamic SQL if you want to build a dynamic OPENQUERY...
January 18, 2018 at 8:12 am
Yes, the trigger will fire again.
The easiest way around that is to use CONTEXT_INFO to set a "flag byte" to "tell" the trigger not to update on the...
January 16, 2018 at 3:28 pm
This looks like it might just be some type of bug. Do you have the latest svc pack for that SQL applied?
January 15, 2018 at 2:12 pm
What you need/want is a CROSS JOIN. That will match every ID with every year:
SELECT n.ID, y.year
FROM dbo.Name n
CROSS JOIN (
SELECT...
January 15, 2018 at 11:13 am
The hard task, that's not trivial, is changing to use a sophisticated, automated scripting mechanism to push the same script out to hundreds of databases, or a selected sub-set of...
January 11, 2018 at 2:09 pm
But the OP doesn't have all that in place, and, as I said before, it's NOT trivial to do.
Ssometimes the most practical solution is the best. By way...
January 11, 2018 at 12:46 pm
January 11, 2018 at 10:53 am
Viewing 15 posts - 3,601 through 3,615 (of 7,609 total)