Viewing 15 posts - 1,051 through 1,065 (of 2,647 total)
Ok, I just added those to the group by clause. Look back at the last post, I changed it there.
Jared
CE - Microsoft
April 20, 2012 at 5:52 am
GilaMonster (4/19/2012)
SQLKnowItAll (4/19/2012)
Jared
CE - Microsoft
April 19, 2012 at 6:24 pm
GilaMonster (4/19/2012)
Chapter 6 of this has a 'short' summary of locks and locking modesThen chapter 10 of SQL 2008 internals for the detail.
Thank you!
Jared
CE - Microsoft
April 19, 2012 at 5:28 pm
To add a bit that people often forget is the uniqueness of the column(s) indexed. If the data is skewed the index may not be very helpful unless filtered. ...
Jared
CE - Microsoft
April 19, 2012 at 5:27 pm
GilaMonster (4/19/2012)
SQLKnowItAll (4/19/2012)
I think it is assumed that the shared lock is only placed on committed data, as you cannot lock data that is not committed. EDIT: I think...
Sure you...
Jared
CE - Microsoft
April 19, 2012 at 5:14 pm
Eh... Read this by Paul White. http://sqlblog.com/blogs/paul_white/archive/2010/11/01/read-committed-shared-locks-and-rollbacks.aspx
Jared
CE - Microsoft
April 19, 2012 at 3:12 pm
EDIT: My bad response omitted to remove any confusion...
Jared
CE - Microsoft
April 19, 2012 at 3:06 pm
cfradenburg (4/19/2012)
Jared
CE - Microsoft
April 19, 2012 at 3:03 pm
Ok, so change what I did to UPC instead of product.
Jared
CE - Microsoft
April 19, 2012 at 2:59 pm
Shree-903371 (4/19/2012)
Now when you run the query below...
Jared
CE - Microsoft
April 19, 2012 at 2:54 pm
Hmm... So you don't want to sum that do you? why not place it as the second column and include that in the grouping.
SELECT
Product,CASE
WHEN Warehouse = 1 THEN Inventory
ELSE 0
END...
Jared
CE - Microsoft
April 19, 2012 at 2:32 pm
I use this:
USE dbName
SELECT Distinct SO.Name
FROM sysobjects SO (NOLOCK)
INNER JOIN syscomments SC (NOLOCK) on SO.Id = SC.ID
AND SO.Type = 'P'
AND SC.Text LIKE '%whatever%'
ORDER BY SO.Name
Jared
CE - Microsoft
April 19, 2012 at 12:20 pm
1. Can I run the install during production hours? I'm assuming it doesn't affect the SQL Services and/or require a reboot?
You can, and it will not require a...
Jared
CE - Microsoft
April 19, 2012 at 12:10 pm
I don't see a problem with a nightly calculation and load into a summary table. 5-10 thousand records a day is nothing. We summarize millions each day, so this...
Jared
CE - Microsoft
April 19, 2012 at 12:07 pm
opc.three (4/19/2012)
use tempdb
go
create...
Jared
CE - Microsoft
April 19, 2012 at 12:04 pm
Viewing 15 posts - 1,051 through 1,065 (of 2,647 total)