Viewing 15 posts - 2,056 through 2,070 (of 7,614 total)
You have some values that have leading zeros. Must the leading zeros be preserved? If so, then not all of the columns are actually INTs as you said. Let...
December 14, 2020 at 10:50 pm
ScottPletcher wrote:This has less overhead...
Just curious, Scott... how are you measuring "overhead" for this?
Actually, for this one, I just looked at the query plans. The other code is doing...
December 14, 2020 at 4:59 pm
This has less overhead, which may or not be a concern to you for this task, but I thought I'd post it just in case.
;WITH cte_find_last_2_dashes AS...
December 14, 2020 at 3:57 pm
CREATE TABLE #3NF_ATCCOLLECTION
(
ATC_KEY varchar(7) NOT NULL
);
INSERT INTO #3NF_ATCCOLLECTION VALUES
('A10'), ('A10Q'),...
December 13, 2020 at 11:27 pm
To answer the question, you could instead change the criteria you cited to...
AND log_reuse_wait_desc <> Nothing'
Like I said in the comment in the code I posted,...
December 13, 2020 at 1:06 am
we are currently doing a 1 hour tran log backup for a system, I'd like to push that up to 1 minute. Is there a performance hit to...
December 12, 2020 at 3:55 pm
The big disadvantage I see for dynamic-only code is that you can't analyze them at all, whereas with views you can.
For example, "How many Configs use 'Integer3'?" or "Do we...
December 12, 2020 at 3:43 pm
Has to be calculated in runtime so i cant just place them into a table and use identity column
Not following you there. Why can't you look up the "meta-key" from...
December 12, 2020 at 3:35 pm
The ORDER BY is useless (rather than "absolutely essential"). ORDER BY doesn't control the order of physical INSERTs into a table, only the assignment of identity values. I've...
December 12, 2020 at 3:27 pm
Actually I intended by code to be run anytime the Config for a given AttributeType was modified. After the initial build for every AttributeType in Config, I expected it typically...
December 12, 2020 at 6:09 am
@pamkagel ,Do your insert in the following form...
INSERT INTO dbo.yourtablename WITH (TABLOCK)
(full column list here)
SELECT full...
December 12, 2020 at 5:37 am
Btw, how then do you exec the code the function created? Wouldn't you some type of loop / cursor to do that anyway?
December 11, 2020 at 11:59 pm
I admit that I prefer using a cursor here to make it easier to adjust and customize the code. As the OP stated, there will be special requirements for some...
December 11, 2020 at 11:25 pm
The standard pattern uses 0 as the base, not 1 or -1 or some other "cute" trick.
No sir... There are a couple of "standards". The "standard"...
December 11, 2020 at 10:59 pm
Are you terminating the preceding statement with a semicolon?
You can start statements that begin with "WITH" with a semicolon:
;WITH ret AS(
Now, there's an interview question...
December 11, 2020 at 10:56 pm
Viewing 15 posts - 2,056 through 2,070 (of 7,614 total)