Viewing 15 posts - 1,201 through 1,215 (of 8,416 total)
drew.allen (1/12/2012)
...the OP doesn't have ANY code in place and is looking for the best solution...
The thread starter was not Bob Cullen (the chap playing around with an alternative solution...
January 12, 2012 at 8:22 am
Tom Brown (1/12/2012)
January 12, 2012 at 8:10 am
Couple of small index tweaks (just to add an extra included column):
CREATE NONCLUSTERED INDEX
[IX_SuggestedBy_JLG]
ON [dbo].[transactions_recon]
(
[TRWEEK] ASC,
[TRDATE] ASC,
[TRTIME] ASC,
[RecID] ASC
)
INCLUDE ([TRSITID],[TRPRODID],[Qty],[recordkey],OPIS) -- Added OPIS
WITH...
January 12, 2012 at 8:02 am
ChrisM@home (1/12/2012)
January 12, 2012 at 7:14 am
mukti.roy (1/12/2012)
I think paul last Query and my Query both are same.
They will produce exactly the same results, yes. My comments would be that you should avoid the NOLOCK...
January 12, 2012 at 7:07 am
Jeff and Chris,
You've missed the point I was making, and have chosen to assume that I am either (a) not aware of the performance issues involved; or (b) that I...
January 12, 2012 at 6:56 am
Tom Brown (1/12/2012)
...and will probably be more efficient than the OUTPUT or MERGE methods, given an index on CODE.
I do understand your practical reasons for preferring option 2 (though...
January 12, 2012 at 6:49 am
nirnaykhatri (1/11/2012)
I am new to this website.....I just wanted to know how to upload pics and stuff here just like you uploaded yesterday?
When you are writing a post, there is...
January 12, 2012 at 12:39 am
Evil Kraig F (1/11/2012)
Revenant (1/11/2012)
SQLRNNR (1/11/2012)
shrinkwrap
Gifts
SSC's Got Talent
January 11, 2012 at 5:42 pm
Give this a whirl:
SELECT
S.SERVERIP,
ISNULL(C.VIDCOUNT, 0) AS VIDCOUNT
FROM
(
-- Distinct server list
SELECT DISTINCT...
January 11, 2012 at 5:40 pm
drew.allen (1/11/2012)
kevin_nikolai (1/10/2012)
January 11, 2012 at 4:34 pm
Greg Snidow (1/11/2012)
January 11, 2012 at 2:41 pm
c2k (1/11/2012)
Thank you for the replies. I am trying Paul's suggestion first which utilizes 'UNION ALL'
Please don't! My post was aimed at Cold Coffee, and was for interest only....
January 11, 2012 at 2:28 pm
If you are running Enterprise Edition, you also have the option of Change Data Capture.
January 11, 2012 at 2:22 pm
drew.allen (1/5/2012)
IDENTITY is a number that is unique for a given table. PERIOD.
Not without something to enforce that uniqueness it isn't. 😛
CREATE TABLE #T (id int IDENTITY(1,1) NOT NULL)
INSERT...
January 11, 2012 at 2:15 pm
Viewing 15 posts - 1,201 through 1,215 (of 8,416 total)