Viewing 15 posts - 2,716 through 2,730 (of 4,820 total)
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
March 10, 2017 at 12:14 pm
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. ...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
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. ...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
March 10, 2017 at 9:07 am
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
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...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
March 9, 2017 at 3:34 pm
Just curious as to why a DATEDIFF(year, FirstDate, SecondDate) doesn't work for you?
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
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...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
March 8, 2017 at 8:09 am
This appears to be a duplicate posting.
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
March 8, 2017 at 7: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...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
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...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
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...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
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...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
March 7, 2017 at 2:56 pm
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
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...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
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...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
March 7, 2017 at 1:42 pm
Viewing 15 posts - 2,716 through 2,730 (of 4,820 total)