Viewing 15 posts - 1,051 through 1,065 (of 5,841 total)
Did anyone adjust the checkpoint interval?
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
May 23, 2016 at 8:13 am
WHY is it inefficient? Did you look at the query plan? How many records? What metrics are you using to determine inefficient?
If you are doing only a few rows...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
May 22, 2016 at 8:22 pm
No. The MAX will get the highest existing one and then the ROW_NUMBER will add a sequence from 1-N to that as an increment.
I asked my question because this...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
May 20, 2016 at 8:47 pm
1) Spread out your schedule to minimize overlap. I can't tell you how many times I see umpteen jobs starting at 00:00 (or on the hour) at clients!!! NEXT-NEXT-NEXT and...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
May 20, 2016 at 4:01 pm
No time to deal with all of your questions, but:
1) get the query plan that is running and see what it looks like. Compiled vs actual parameters? estimated vs actual...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
May 20, 2016 at 3:58 pm
I don't think they are off by that much, especially given the DISTINCT. How many total rows in the table? Did you check dbcc showstatistics to see how the numbers...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
May 20, 2016 at 8:37 am
Luis Cazares (5/20/2016)
WITH cte AS (
SELECT o.*,
...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
May 20, 2016 at 8:34 am
sql-lover (5/20/2016)
TheSQLGuru (5/19/2016)
I have no idea about your Nimble stuff, but the backup start and end times should be set by the actual backup process in SQL Server.
Thanks for reply
I...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
May 20, 2016 at 8:31 am
I don't have your tables, so those queries are not useful to me to create the data. Like I said, you need to provide create table statements and inserts for...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
May 20, 2016 at 6:03 am
David Burrows (5/20/2016)
DECLARE @InvoiceNo int = ISNULL((SELECT MAX(o.InvoiceNo) FROM Orders o),0);
WITH cte (ID,InvoiceNo)
AS (
SELECTo.ID,@InvoiceNo+ROW_NUMBER() OVER (ORDER BY o.ID ASC)
FROMOrders o
JOIN SetupAccountTypes a
ON a.ID = o.AccountTypeID
AND a.AccountType = 'COD'
AND o.DeliveryDate >=...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
May 20, 2016 at 6:02 am
IO is not getting into RAM fast enough.
1) How much memory on the server? If it isn't the max allowed for your version of SQL Server that is the...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
May 20, 2016 at 5:52 am
I read your post and I have absolutely no idea what you are looking for. Please provide some create tables, inserts for some data and expected outputs from said data....
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
May 20, 2016 at 5:46 am
Variables in ad hoc sql statements don't behave as you would think. Put this in a sproc and try it to see what happens. Then try both sproc and ad...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
May 20, 2016 at 5:44 am
I strongly recommend you start with an actual value and not NULL, and make the column NOT NULL by definition. Otherwise you have the NULL bit dereference and MUCH worse...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
May 19, 2016 at 8:21 pm
I have no idea about your Nimble stuff, but the backup start and end times should be set by the actual backup process in SQL Server.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
May 19, 2016 at 2:28 pm
Viewing 15 posts - 1,051 through 1,065 (of 5,841 total)