Viewing 15 posts - 2,041 through 2,055 (of 7,608 total)
And what if one or more of the column values change?
Like I said in the comments in the code...
-- You...
December 18, 2020 at 5:09 am
And what if one or more of the column values change?
December 17, 2020 at 7:16 pm
Only someone with full sysadmin authority can change a job's owner.
Typically after the job is fully debugged and running normally, sysadmin changes the job owner to a standard job-running account.
If...
December 17, 2020 at 5:24 am
I added an RTRIM to get rid of any trailing space(s). Naturally if you don't want to do that, delete the RTRIM from the code.
SELECT
...
December 17, 2020 at 5:16 am
SELECT
string_to_parse,
CASE WHEN first_dash = 0 THEN ''
WHEN first_dash = last_dash...
December 15, 2020 at 10:46 pm
This looks to me like a Gaps and Islands query. Itzik Ben-Gan has posted numerous articles and written in books how best to solve those types of queries.
December 15, 2020 at 7:38 pm
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...
December 15, 2020 at 3:48 pm
nvm, OP obviously not interested at all in this approach.
December 14, 2020 at 11:52 pm
I was too enthousiastic. What I did was I only took the 7 character long records (WHERE LEN(column1)=7) and then applied the LEFT functions as indicatde above. But,...
December 14, 2020 at 10:51 pm
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
Viewing 15 posts - 2,041 through 2,055 (of 7,608 total)