Viewing 15 posts - 481 through 495 (of 8,731 total)
June 14, 2018 at 8:58 am
Are you aware that you'll get 2 result sets when @opMode is NULL?
June 13, 2018 at 10:42 am
June 13, 2018 at 10:29 am
Can you post DDL and sample data for FunctionPermission table? The problem might be related to it and the FOR XML.
June 13, 2018 at 7:39 am
I wonder if the OP was able to use a version still under mainstream support and used the sequence to solve his problem. Or maybe the previous option was kept...
June 13, 2018 at 7:06 am
Additional to what Steve just mentioned. You should also take into account that there's additional time when you run the SSIS from your machine as the data needs to travel...
June 13, 2018 at 6:46 am
After the creating the function, I ran...
June 12, 2018 at 2:21 pm
He thinks we should use less foreign keys...
June 12, 2018 at 12:11 pm
June 12, 2018 at 11:36 am
For UPDATE vs MERGE, I would choose UPDATE hands down. For an upsert, I would have to test again but I have encountered problems.
https://www.sqlservercentral.com/Forums/1615384/Long-running-MERGE
June 12, 2018 at 11:20 am
Not really a suggestion because the solution posted by DesNorton should be better but I just wanted to have some fun.
SELECT * ,
STUFF((...
June 11, 2018 at 1:58 pm
This would add the nulls row only if there's not a row in the table.
SELECT id,
name,
createdDate
FROM @sample
RIGHT JOIN (SELECT...
June 11, 2018 at 11:41 am
June 11, 2018 at 9:54 am
Here are some pages where you can read about Sequences:
https://docs.microsoft.com/en-us/sql/relational-databases/sequence-numbers/sequence-numbers?view=sql-server-2017
https://www.red-gate.com/simple-talk/sql/learn-sql-server/sql-server-sequence-basics/
http://www.tech-recipes.com/rx/60072/beginners-guide-sequence-objects-sql-server/
June 7, 2018 at 1:29 pm
Viewing 15 posts - 481 through 495 (of 8,731 total)