Viewing 15 posts - 76 through 90 (of 149 total)
Is there a way export Data Classification recommendations as a pdf or text file? Thanks you.
Yes, you can export the data to Excel or PDF.
April 25, 2023 at 10:07 pm
I want tp create a scenario when I perform failover from Node1 to Node2, I want the database to get stuck in Reverting/In Recovery state on Node1 for longer...
April 25, 2023 at 9:54 pm
Try this:
SELECT
A.custnbr,
AvgLag = CASE WHEN COUNT(*)-1 <> 0 THEN CONVERT(decimal(7,2),
...
April 24, 2023 at 12:33 am
@dennis Jensen: I do not understand what is your problem?
Have you read the OP's original post? OP wants to remove Min(ShipDate). I answered to him as I understood...
April 23, 2023 at 10:33 pm
For more accuracy, you can use Record_Add_Dt = DateTime.UTCNow;
April 23, 2023 at 6:15 am
Replace Min(ShipDate) with the following LAG function to get the Previous Ship Date.
Lag(ShipDate, 1, '1/1/1900') OVER(Partition by Custnbr ORDER BY ShipDate ASC)
Your final query will be along the following lines:
April 23, 2023 at 12:54 am
I would like output to show:
Custnbr ---- (Lastest-Order date) ----(Previous Order Date) ---- Lag
Any Help?
SELECT
custnbr,
AvgLag = CASE WHEN COUNT(*) >...
April 21, 2023 at 4:35 am
Hi Emperor100, Can you plz explain this SP as to how it works....Do I need the pass the @TableName as value or DB name?
Before creating the SP in a...
April 11, 2023 at 9:07 pm
April 11, 2023 at 8:39 pm
Try enabling named pipes and shared memory protocols and give it a try.
April 3, 2023 at 9:30 pm
40 databases, how many physical CPU's or VCPUs on this server? Looks like querying a huge Contacts table...
If it is SP, as Jeff pointed out, it is a case of...
April 1, 2023 at 2:58 pm
(1) You could use dynamic SQL and change the table name literally in the code before executing it.
Sorry, Scott I don't agree with the above. If you check out...
April 1, 2023 at 2:33 pm
Try this, just as a beginning step, I do not know your requirement. The SP picks the table using a Dynamic SQL statement if you store the newtable name in...
April 1, 2023 at 2:23 pm
Add a supporting non-clustered index for your DELETE operations. Similarly do it for UPDATE as well. These indexes will be huge in size based on the data and will help...
March 27, 2023 at 5:31 am
Try sp_whoisactive, you can search for it. It provides all the current running tasks/sql/jobs etc. It will also provide time in days, hours and mins since a task started.
March 27, 2023 at 5:06 am
Viewing 15 posts - 76 through 90 (of 149 total)