Viewing 15 posts - 1,051 through 1,065 (of 5,843 total)
1) Simple question: what changed?!?
2) use dbcc sqlperf(logspace) to see how big and how much space is used by the tlog for this database
3) File IO stalls on the...
May 23, 2016 at 8:15 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...
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...
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...
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...
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...
May 20, 2016 at 8:37 am
Luis Cazares (5/20/2016)
WITH cte AS (
SELECT o.*,
...
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...
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...
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 >=...
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...
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....
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...
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...
May 19, 2016 at 8:21 pm
Viewing 15 posts - 1,051 through 1,065 (of 5,843 total)