Viewing 15 posts - 1 through 15 (of 108 total)
To expand upon this, and maybe provide some ideas that can ease your pain, here are some thoughts. I had this same situation a while back. The difference was...
November 2, 2021 at 9:07 pm
The example is for a query called by the Customer List page of the web application. It will execute 1000's of times a day.
November 2, 2021 at 3:17 pm
Execution plans are the same: clustered Index Scan (Clustered) ; Cost: 100%
Yep - same query, same result. Just slower.
Tomorrow p.m., we have a 2 hour maintenance window. I will try...
November 5, 2020 at 8:34 pm
Sorry - but what is AG or WFC?
October 8, 2019 at 9:50 pm
Does the hash code compress the data? Can you reverse out the sqlstatement from the hash result?
September 16, 2019 at 3:00 am
Here are the Update, Insert and Delete triggers for one of the smaller tables in the database.
------------------------------------------------------------------------------------------
----- INSERT -----------------------------------------------------------------------------
------------------------------------------------------------------------------------------
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TRIGGER [dbo].[o_choice_Audit_Insert] ON...
September 8, 2019 at 7:53 pm
Hi.
Here is an update. I have ran the code above. Here are the #'s (mdf/ldf):
Original size: 566,086,656 // 50,003,456
After tableoption : same
After Update: 935,619,456 // 584,126,656 (6 hours later)
After Alter...
September 7, 2019 at 6:01 pm
Jeff,
Wow. Thank you for all of the above. You are correct with the backup being huge because of the audit data. I have a lot to think about.
Thanks!
September 6, 2019 at 1:55 am
Jeff,
Would it help to split the table into 2. One with all data except the varchar(max) and one with the same ID and the varchar(max) only?
Mike
September 5, 2019 at 5:18 am
Sorry about that -- I thought I had posted that #. It is 6,957,805 records between 4000 & 8000.
Mike
September 4, 2019 at 3:09 pm
This is the reason why I'm asking how many values in the SQLStatement table there are that fall in between the two numbers I provided. It'll let us know for...
September 4, 2019 at 2:45 am
Here is the code from when I tell SQL server to script the creation of it:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Audit](
[AuditID] [bigint] IDENTITY(1,1) NOT NULL,
[AuditDate] [datetime]...
September 3, 2019 at 6:08 pm
How would I check for network discrepancy/latency? Also, why would the following happen:
Use master -- note: No table named product
select * from xxx.dbo.product - 8 seconds
August 30, 2017 at 2:53 pm
Yes, my local machine is the server. So the 4 seconds is getting the data on the same notebook where the data is stored and SQL is running.
However, I...
August 29, 2017 at 12:00 pm
I am trying to figure out queues. Doing a batch of items doesn't solve the issue. If my queue was a list of incoming orders and I have limited stock,...
July 16, 2017 at 10:51 am
Viewing 15 posts - 1 through 15 (of 108 total)