Viewing 15 posts - 21,376 through 21,390 (of 26,490 total)
Goldie Graber (4/21/2009)
Bevan keighley (4/21/2009)
Hi Goldie,Do you have an index on UserID?
Yes, Non-Unique, Non-Clustered.
That is the problem. For the "quirky update" to work you need a clustered index on...
April 21, 2009 at 9:16 pm
The only change to my code that I could suggest is 1) make sure you have declared the clustered index properly, and 2) change the index hint from 0 to...
April 21, 2009 at 9:09 pm
real (4/21/2009)
You understand the problem very well. The formulas are all the same in the 24 functions. The only thing that differ is the fields (price_01, 02, 03, etc).Thanks
Real
Awesome! ...
April 21, 2009 at 8:22 pm
Lynn Pettis (4/20/2009)
CREATE TABLE #CheckIn
(
CheckInID INT IDENTITY(1,1)
,UserID INT
,Comment VARCHAR(50)
)
-- insert some...
April 21, 2009 at 8:19 pm
Susan Moore (4/21/2009)
Thanks for your quick response. There was a trigger on the table that was giving me the error. I disabled it and now it works.
Triggers, yes,...
April 21, 2009 at 12:36 pm
Looks like I deleted the group by from my original code as I cleaned it up for posting, sorry. But, yes, we were definately thinking along the same lines.
April 21, 2009 at 12:35 pm
If you don't mind me asking, which version did you select?
April 21, 2009 at 11:48 am
I had to fix some of the data in the second data set you PM'ed as the number of columns did not match. Some of the selct statements only...
April 21, 2009 at 11:44 am
James.N (4/17/2009)
Can any one help me with T-SQL correct syntax for this logic.
I wanted to upsert my destination(D) table...
April 21, 2009 at 11:39 am
does this accomplish what you are looking to do?
with MessageCount (
ID1,
MsgCount,
StartDate,
EndDate
) as (
select
...
April 21, 2009 at 10:40 am
Brain_Killer (4/21/2009)
Christopher Stobbs (4/21/2009)
--Month
WHERE [YourDate] BETWEEN
DATEADD(mm, DATEDIFF(mm,0,DATEADD(mm,-1,GETDATE())), 0)
AND DATEADD(ms,-3,DATEADD(mm, DATEDIFF(mm,0,GETDATE()), 0))
The from part of the date:
Step 1: DATEADD(mm,-1,GETDATE() = get the...
April 21, 2009 at 9:09 am
I need related sample data between the two tables. The data previously provided results in an empty result set. I'm not sure what values to actually change or...
April 21, 2009 at 8:35 am
Jeff Moden (4/20/2009)
April 20, 2009 at 10:57 pm
Here is another attempt at solving your problem:
CREATE TABLE #CheckIn
(
CheckInID INT IDENTITY(1,1)
,UserID INT
,Comment VARCHAR(50)
)
-- insert some sample data
INSERT...
April 20, 2009 at 10:19 pm
Sounds like you need to redefine your problem somewhat. How about providing something closer to the actual problem we are working on. Can you give me something closer...
April 20, 2009 at 9:28 pm
Viewing 15 posts - 21,376 through 21,390 (of 26,490 total)