Viewing 15 posts - 3,601 through 3,615 (of 7,614 total)
Have you considered instead of binding them just running a:
sp_refreshview
across all the...
January 23, 2018 at 9:36 am
Have you considered instead of binding them just running a:
sp_refreshview
across all the views when a base table changes? (or across all views that could possibly be affected, if...
January 23, 2018 at 9:27 am
January 23, 2018 at 7:00 am
Not necessarily. You can use CONTEXT_INFO() to pass a "flag" to the trigger to "tell" it not to update. You might also look into replication.
Below is a sample...
January 22, 2018 at 3:05 pm
January 22, 2018 at 2:47 pm
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
Viewing 15 posts - 3,601 through 3,615 (of 7,614 total)