Viewing 15 posts - 3,226 through 3,240 (of 7,615 total)
You're likely going to need dynamic SQL to fully implement essentially free-form conditions, but to do what you've specified so far, you can do it with just standard LIKEs:
August 14, 2018 at 10:11 am
August 13, 2018 at 2:02 pm
August 13, 2018 at 1:39 pm
I believe session_ids can be re-used, so getting a session_id wouldn't necessarily tell you anything.
As noted, if you need to get that info, add a trigger to capture...
August 13, 2018 at 12:27 pm
August 10, 2018 at 11:53 am
Yes, for testing purposes, adding an identity to guarantee uniqueness should work just fine.
August 8, 2018 at 2:41 pm
August 7, 2018 at 12:04 pm
After shrinks, I've had good luck very often with just a REORGANIZE overall ~80-85%, rebuild required ~15-20% of the time. Start with the smaller tables first, moving up in size...
August 6, 2018 at 11:10 am
August 6, 2018 at 10:12 am
For storing of SSN, you might consider adding a check digit to the value, so that it does become 10 digits (or 11 or whatever). That way they are trying...
August 6, 2018 at 7:43 am
August 3, 2018 at 2:01 pm
You could use a SEQUENCE, or if that is not available, insert the SSN into table with an identity and use the identity value as a link back to the...
August 3, 2018 at 1:01 pm
Select Code, new_string
FROM #Temp
CROSS APPLY (
SELECT STUFF(Code, 1, 1, '') AS base_string
) AS ca1
CROSS APPLY (
SELECT LEFT(base_string,...
August 3, 2018 at 9:32 am
August 2, 2018 at 1:42 pm
Viewing 15 posts - 3,226 through 3,240 (of 7,615 total)