Viewing 15 posts - 1,306 through 1,320 (of 13,838 total)
This question is strikingly similar to this one.
Perhaps the responses you received there were not to your liking? You did not even have the courtesy to respond to the...
June 30, 2022 at 11:29 am
I need to create one table to accommodate this scenario to record the courses each worker did in each job every year.
Whoever asked you to do this needs to...
June 29, 2022 at 6:27 pm
This possibly means that there is a 32-bit version of the driver installed on the server but not a 64-bit version.
June 28, 2022 at 3:51 pm
I suggest you get out of the habit of writing = NULL. Instead, write IS NULL. NOT is very useful, do not discard it!
June 28, 2022 at 11:46 am
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
Viewing 15 posts - 1,306 through 1,320 (of 13,838 total)