Viewing 15 posts - 4,651 through 4,665 (of 59,089 total)
Just as a sidebar in personal frustration, XML never ceases to amaze me in its inefficiencies. The original XML in the original post occupies 244 characters. Even if you convert...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 16, 2021 at 10:24 pm
I'll also state that RegEx is serious overkill for the type of validations you've described. You certainly don't need CLR, either. The example the ratback provided above will work quite...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 16, 2021 at 9:47 pm
Thanks for the feedback, Mike. You're the second person I've heard of (I'm sure there are more that I haven't) that had the backups encrypted by ransomware. I think I...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 16, 2021 at 5:20 am
Thanks for the info, Solomon.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 16, 2021 at 5:13 am
I don't know how to to what you ask but we backup all files when they're created and then again if they change. For us, there would be no problem...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2021 at 9:03 pm
I'm checking the latest file created in a folder, and if it's GT than 1K ... I'm going to do further processing..
Is this a correct way to check that?
Thanks.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2021 at 8:58 pm
Hi Jeff,
Does the "modify_date" column gets modified when DML changes also occur, or only DDL changes?
You should do a search on sys.tables instead of taking my word for it. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2021 at 5:32 pm
Sorry for the confusion, Jeff...that's partly why I wanted to include the graph of the plan performance but I didn't explain well. The "bad" plan I uploaded was the...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2021 at 5:27 pm
Good Morning How to find if there was any recent changes done to the table structure?
A quick way to check is to query against sys.tables in a database. Every...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2021 at 1:34 pm
Seems crazy but it's gotten to the point for a whole lot of folks where they need a "conductor" for the "symphony of automation" they've constructed to make sure that...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2021 at 1:18 pm
p.s. If there's a DISTINCT or a GROUP BY that you're using like a DISTINCT, you really need to fix that. Really. And identifying the "core" data and using "Divide'n'Conquer"...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2021 at 2:38 am
You say "On some occasions, again all under the same execution plan, poor performance occurs " but the execution plans you posted aren't even close to being the same.
The culprit...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2021 at 2:36 am
AND, looking a bit closer, my code doesn't work correctly using the following data but the mod to pietlinden's code does, so use his code with the mod.
Here's the code...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2021 at 1:28 am
Looking a bit closer at the code, there' may be a fly in the ointment of pietlinden's code. Give the following a run and see.
[EDIT] I DISCOVERED THE CODE...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2021 at 1:04 am
Hi Phil,
Thanks for the reply.
The create/ insert would be as follows:
CREATE TABLE CustomerPolicies
(
[Mobile] NVARCHAR(20),
[WorkTelephone] NVARCHAR(20),
[HomeTelephone] NVARCHAR(20),
[FirstName] NVARCHAR(30),
[LastName] NVARCHAR(30),
[PolicyNumber] INT
)
INSERT INTO CustomerPolicies VALUES ('07972234564', 'N/A', 'N/A', 'Jon',...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2021 at 12:40 am
Viewing 15 posts - 4,651 through 4,665 (of 59,089 total)