Viewing 15 posts - 1,321 through 1,335 (of 13,849 total)
Or is there any other better way to perform this task?
Thanks
Presumably BACKUP/RESTORE is not an option.
For the volumes of data you are talking about, I'd probably use a pipe-delimited...
June 28, 2022 at 8:03 am
My goal was to help present dates in form "YYMM". Existing functions such as Convert and Format apparently are tricky to use to achieve requested format.
FORMAT is not 'tricky',...
June 26, 2022 at 6:24 pm
It seems that you're not trying the suggestions here with any great application.
Instead, you appear to be waiting for someone here to write the solution for you. Unless you can...
June 24, 2022 at 3:39 pm
Use something like this to generate the statements for changing DB ownership to sa
USE master;
GO
SELECT name
,SQL = CONCAT('ALTER AUTHORIZATION ON DATABASE::',...
June 24, 2022 at 10:52 am
Yikes, a WHILE loop. No wonder it's slow.
The following query should do the UPDATE in a single hit. But please test it thoroughly before running it anywhere important.
June 24, 2022 at 9:01 am
To answer your other question, CROSS APPLY is one way:
DROP TABLE IF EXISTS #SomeXML;
CREATE TABLE #SomeXML
(
Col1 VARCHAR(50) NOT NULL
,Col2 VARCHAR(50)...
June 24, 2022 at 8:00 am
Hi Phil ,
First thank you for your reply and yes it works thankyou..... you are a champion!!
Phil what is the best way to apply this logic to a sql...
June 24, 2022 at 7:53 am
Updating the column by matching on UniqueId should not take such a long time. Can you show us your UPDATE query? Approximately how many rows of data need to be...
June 24, 2022 at 7:50 am
OK, too many columns called vacation hours.
WITH mx
AS (SELECT TOP (1)
VacHours = 'Max_Hours'
...
June 23, 2022 at 3:39 pm
WITH mx
AS (SELECT TOP (1)
VacationHours = 'Max_Hours'
...
June 23, 2022 at 2:50 pm
You are using terminology which is confusing me.
There are no variables in my code. Zero.
Nor is there a 'header' called Max_VacationHours.
The second you put, "Min_VacationHours", but doesn't bring it.
No I...
June 23, 2022 at 2:05 pm
Does this help?
SELECT ItemParam = T.c.value('Item[1]/@param', 'nvarchar(50)')
,ItemValue = T.c.value('Item[1]/@value', 'nchar(10)')
,DefaultRpx = T.c.value('DefaultRpx[1]/@value', 'nvarchar(40)')
FROM @XML.nodes('/SelectionCriteria') T(c); June 23, 2022 at 8:00 am
I've tried everything I can think of and I can't figure it out, either!
June 22, 2022 at 8:44 pm
Phil Parkin wrote:Can you confirm the exact format of JObject? It looks like
{"View"true,"Edit"true,"Admin"true}
Is that right?
It's real fuzzy, but the colons are there. Another reason images of data are bad, Jeffs.
Blimey....
June 22, 2022 at 3:15 pm
Can you confirm the exact format of JObject? It looks like
{"View"true,"Edit"true,"Admin"true}
Is that right?
June 22, 2022 at 3:11 pm
Viewing 15 posts - 1,321 through 1,335 (of 13,849 total)