Viewing 15 posts - 24,241 through 24,255 (of 59,099 total)
homebrew01 (3/2/2014)
MAXDOP is 0, and Cost Threshold for Parallelism is 5. There was no blocking, but I know there was a...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 7:51 pm
I guess my first recommendation would be to make the PK a nonclustered index. It's currently way too wide to be of any practical use as a clustered index...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 6:30 pm
born2achieve (3/1/2014)
Thanks for your time. My Regular Table and Audit Table has the same schema other than the identity
TableName: Users
IdUser bigint identity(1,1) primary...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 6:09 pm
SQL_Surfer (3/2/2014)
Can I do this when db is online?
Yes.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 5:38 pm
KoldCoffee (3/2/2014)
I don't know why they did that in Books Online except, maybe, that it's easier to remember than 2147483647, which is the maximum postive number that an INT can...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 2:29 pm
eligiable (3/2/2014)
1st alteration will allow to store the Counter values in CounterDesc as an INT or BigINT depends on the records (I got 1 Million and increasing), so...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 2:13 pm
KoldCoffee (3/1/2014)
Is the temp table of random numbers between min(ID) and max(ID) etc....really the superior one?
For performance, absolutely. For accuracy in returning the proper number of rows,...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 12:04 pm
eligiable (3/2/2014)
SELECT DISTINCT TerminalNo, MerchantNo
INTO #tblGen_TermCounter
FROM tblRPT_TXNDetails;
ALTER TABLE #tblGen_TermCounter ADD CounterDesc BIGINT;
WITH Updater AS (
SELECT CounterDesc, CounterNo = ROW_NUMBER() OVER(PARTITION...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 11:50 am
MyDoggieJessie (3/2/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 11:47 am
Shifting gears, I find the formula in Books Online to be inaccurate. The number of rows that it returns varies quite a bit. The following will always return...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 11:33 am
KoldCoffee (3/1/2014)
Hi RBarryYoung,Can you please explain use of 0x7fffffff ?
I don't know why they did that in Books Online except, maybe, that it's easier to remember than 2147483647,...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 11:14 am
Tergum Rufus (3/1/2014)
Please can someone tell me how to trigger an sp at a fixed time of day without using SQL server agent?
Why? What's the problem with using SQL...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 11:04 am
You've marked your own answer as the "worked for you" answer but it's not the correct answer. You don't need a cursor for this at all. The following...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 11:02 am
adhamihab (3/2/2014)
USE northwind
SELECT max(OrderID) as OrderID
FROM Orders join Employees
on Orders.EmployeeID = Employees.EmployeeID
...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 10:51 am
Jake Shelton (3/2/2014)
BTW - we are...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 2, 2014 at 9:35 am
Viewing 15 posts - 24,241 through 24,255 (of 59,099 total)