Viewing 15 posts - 2,716 through 2,730 (of 4,820 total)
At least have a read of this link:
Not sure if that will help, but it may at least point you in the right direction. ...
March 10, 2017 at 9:22 am
Then chances are, your new value still violates the FK constraint. Check the table referenced by the FK for the value you're looking to insert and see if it's there. ...
March 10, 2017 at 9:07 am
March 10, 2017 at 6:31 am
Just curious if another approach might work. If these dates are confined to a relatively short overall range, say 20 years, ... this ITVF might work well:CREATE FUNCTION dbo.YEARDIFF...
March 9, 2017 at 3:34 pm
Just curious as to why a DATEDIFF(year, FirstDate, SecondDate) doesn't work for you?
March 9, 2017 at 9:21 am
Here's a query that will do what you need. Recursion isn't really going to help you for this, as you're not dealing with a hierarchy or similar structure:-- ORIGINAL...
March 8, 2017 at 8:09 am
Well, cursors are loops... if not written correctly, they can go into an infinite loop, but as you say it only occurs on Monday mornings, it seems more likely that...
March 8, 2017 at 7:09 am
Eric M Russell - Wednesday, March 8, 2017 6:55 AM
Sadly, this is T-SQL legal too.
And how much fun would...
March 8, 2017 at 7:00 am
As you posted in the SQL 2016 portion of the forum, I had presumed you were using that version of SQL Server. As to my case, my system will simply...
March 8, 2017 at 6:47 am
jorge_vicente,
How much slower will depend heavily on the nature of the calculation. How much that ends up costing overall will then further depend on the number of records...
March 7, 2017 at 2:56 pm
March 7, 2017 at 2:37 pm
Are you current on service packs for SQL 2016? I don't have a 2016 instance to check anything out with, but I do have a 2012 instance that I tried...
March 7, 2017 at 2:30 pm
I'm not sure the ACE drivers are going to support executing a sproc. Given that it's a simple select, using a sproc seems totally unnecessary. If it were a more...
March 7, 2017 at 1:42 pm
Viewing 15 posts - 2,716 through 2,730 (of 4,820 total)