Viewing 15 posts - 1,081 through 1,095 (of 3,348 total)
Based on your reply to #3, my posted question is probably going to be wrong. I'll have to revise it (when I have time).
Can you help me by posting some...
January 21, 2016 at 5:36 am
salardx (1/21/2016)
We CANNOT have much indexes in the tables (neither one table for each month, nor 10,000 tables!)
because data is bulking into the tables! 1000 records on each bulk!...
January 21, 2016 at 5:33 am
bebe022476 (1/20/2016)
Here it is:
DocumentID(PK,int,not null)
DocFolderID(int,null)
PublishToWeb(bit,null)
Filename(varchar(100),null)
Filesize(int,null)
ModifiedDate(datetime,null)
TableName(varchar(40),null)
EntityCode(varchar(12),null)
I'm not sure how to attached the jpg screenshot here but the execution plan only has 100% Clustered Index Scan(Clustered) on [document],[pk_document] .
The job normally...
January 21, 2016 at 2:58 am
Here's my standard pattern for optimizing a query that needs OR. It might give you two index seeks instead of an index scan, but only if there are usable indexes....
January 20, 2016 at 3:03 pm
PSSQL (1/20/2016)
Using the code below, sometimes I get the...
January 20, 2016 at 1:49 pm
itguy2015 (1/20/2016)
Are there third party tools or existing generic scripts that would make this easier?
Not a 100% sure if it fits your issue perfectly, but I think that Red Gate's...
January 20, 2016 at 1:44 pm
It is indeed possible to do this calculation without a cursor. I tried a few approaches and stuck with the one below. I think it's relatively easy to understand, and...
January 20, 2016 at 1:41 pm
Good, I am working on this now, and I hope that I can post some ideas shortly. But first some first observations.
1. I am so happy to see a post...
January 20, 2016 at 12:39 pm
When I attempt to run the CREATE TABLE statements you posted, I get a ton of errors. Please create an empty database, run the code yourself, and fix all errors,...
January 20, 2016 at 12:06 pm
@dandrews: For future reference, what J Livingstone posted is a good repro script - CREATE TABLE and INSERT statements that people can simply copy/paste into SSMS and run to replicate...
January 20, 2016 at 11:55 am
This looks like a fine point to refer back to what I wrote before:
"Next time you ask a question, please provide CREATE TABLE statements for tables involved, INSERT statements with...
January 20, 2016 at 10:00 am
michaeleaton 36224 (1/20/2016)
I'm working on getting some other data and will create some insert statements
Good. Because I notice that after reading your descriptions I am almost tempted to slide into...
January 20, 2016 at 9:30 am
For production systems, most companies like to do daily full backups, plus transaction log backups every 15 minutes or so. If the activity is fairly low, you could change that...
January 20, 2016 at 9:19 am
Probably something like this:
INSERT INTO dbo.fecon2
(ProductCode, Warehouse, Other, Columns)
SELECT s.ProductCode,...
January 20, 2016 at 9:15 am
Igor's code gives you the number of week boundaries. Which means the number of transitions from either Set to Sun, or from Sun to Mon - I can never remember.
If...
January 20, 2016 at 9:10 am
Viewing 15 posts - 1,081 through 1,095 (of 3,348 total)