Viewing 15 posts - 3,451 through 3,465 (of 7,609 total)
For that type of table definition, I'd suggest forcing all LOB columns completely out of the main table space (since SQL doesn't allow you to customize column-by-column). That should avoid...
April 18, 2018 at 9:27 am
I'd use CROSS APPLYs to determine the lengths (this helps keeps the other code "cleaner" by pushing calcs/computations into CROSS APPLYs). For example:
SELECT PCMRetrievalCode, LenOfSchemaId,...
April 18, 2018 at 9:17 am
I still don't understand why you need the index in string format to determine that. It's actually easier to accurately compare the meta-data rather than a string definition (where noncritical...
April 17, 2018 at 9:10 am
SELECT string, LEFT(string, split_byte - 1) AS string1,
SUBSTRING(string, split_byte + 1, 8000) AS string2
FROM (
VALUES('Apple is Red and Grapes are Purple'),
April 17, 2018 at 8:57 am
I'm going to label each q so others can comment without having to repeat the full q:
A1) transaction log back up verses a full back up?
A tran...
April 16, 2018 at 1:31 pm
April 13, 2018 at 12:56 pm
Would it result in better performance is I created the table and used INSERT instead of Select Into?
For that INSERT, no. In fact, SELECT ... INTO dbo.new_table...
April 13, 2018 at 12:52 pm
April 13, 2018 at 11:18 am
DECLARE @start_date date
DECLARE @end_date date
SET @start_date = DATEADD(YEAR, -1, GETDATE())
SET @end_date = GETDATE()
SELECT
AccountNumber,
CASE WHEN MAX(CASE WHEN row_num =...
April 13, 2018 at 8:46 am
Btw, just based on the pattern of code in your OP, it looks like you're doing a BETWEEN range on a datetime.
Put simply, DON'T do that, ever.
April 13, 2018 at 8:10 am
andrew 67979 - Thursday, April 12, 2018 9:11 AMRef point 1B is this what you mean ?
Yes, that is...
April 12, 2018 at 9:17 am
Why do you need to save it in a string format? Could you just grab the meta-data instead, and leave it a table format until/unless you actually needed to convert it...
April 11, 2018 at 2:34 pm
I can't see any reason to test a COUNT(*) for "ISNUMERIC", since by definition a COUNT will be an int value.
Given that, I think this query does what...
April 11, 2018 at 2:30 pm
1) Verify that table "DonAlias" is (1A) clustered by Donor_No or (1B) a nonclus index is keyed by Donor_No and contains Alias (as key or not, with or without other...
April 11, 2018 at 2:16 pm
April 10, 2018 at 12:31 pm
Viewing 15 posts - 3,451 through 3,465 (of 7,609 total)