Viewing 15 posts - 271 through 285 (of 2,644 total)
From ChatGPT:
It seems that you need a workaround for the "calendar" table that is going away. In your updated code, you tried using @mydate and a "currentdate" table without populating...
November 1, 2023 at 4:12 pm
sys.dm_exec_requests and sys.dm_os_waiting_tasks dynamic management view provide more detailed information about the wait types and wait resources, making it easier to diagnose performance issues.
October 28, 2023 at 10:31 pm
Have you got a clustered index on the table? You can do a single table scan and insert the values of the clustered index key that need to be deleted...
October 23, 2023 at 3:02 pm
You can just shrink it a bit at a time. So instead of trying to shrinking it from 2.6 TB to 500 GB in one go just try making it...
October 18, 2023 at 9:45 pm
SELECT *
FROM [Prod_ShiftSummary]
WHERE entrydate >= (
SELECT CONVERT(date, MAX(EntryDate))
FROM [Prod_ShiftSummary]
where office = 'baytown'
) ;
October 18, 2023 at 5:06 pm
SELECT ap_claim_idM,
MAX(CASE WHEN ap_claim_icd_prcdr_sequence_number = 1 THEN icd_prcdr_code END) AS Code1,
MAX(CASE WHEN ap_claim_icd_prcdr_sequence_number...
October 17, 2023 at 2:31 am
Thanks all. I can confirm that the code is not being called in a loop, or in an explicit transaction. The parent procedure sproc_ValidateUser just performs some basic validation...
October 12, 2023 at 8:33 pm
This XML snippet represents information about a database deadlock in SQL Server. Let me break down the key elements:
1. <deadlock>: This is the root element that contains information about the...
October 12, 2023 at 10:43 am
If you look at this post there is a stored procedure that will generate the inserts for any table: https://www.sqlservercentral.com/forums/topic/generate-script-for-table-contents#post-4184688
Just install it and call it:
October 8, 2023 at 12:16 pm
SELECT ID
,Name = CONCAT ('''', Name, '''')
,City = CONCAT ('''', City, '''')
FROM #tbl_Test;
Or even...
October 8, 2023 at 11:47 am
Well i think its increase both log and mdf/ndf files of tempdb .How to get size of temp table ?
One way of doing it is to right click on...
October 8, 2023 at 11:42 am
Here is a TVF:
CREATE FUNCTION myFunctioname
(
@LdryCode as varchar(100),
@InvtAcctCode as varchar(100),
@CustName as varchar(100),
...
October 6, 2023 at 9:27 pm
Why don't you take the loop out and do it all in one statement?
October 5, 2023 at 6:00 pm
It isn't the ASCII function that's causing your error:
Try these statements:
SELECT ASCII('.');
SELECT ASCII(NULL);
SELECT ASCII(42);All of them return a valid value.
But these all cause the same error you...
October 1, 2023 at 4:55 pm
If you want a load into a new table, then create the empty table AND create the Clustered Index. Then, forget SSIS... use BULK INSERT with the...
September 28, 2023 at 4:37 pm
Viewing 15 posts - 271 through 285 (of 2,644 total)