Viewing 15 posts - 17,791 through 17,805 (of 18,926 total)
set nocount on
create table #temp
(product_id int not null,
prod_desc char(1) null)
insert into #temp
select 1, 'A'
insert into #temp
select 1, 'B'
insert into #temp
select 1, 'C'
insert into #temp
select 2, 'D'
insert into #temp
select 2,...
May 13, 2005 at 8:54 am
SELECT @Output = @Output + CASE @Output
WHEN '' THEN prod_desc
ELSE @Output + ', ' + prod_desc
END
FROM #temp
WHERE Product_id = 1
ORDER BY...
May 13, 2005 at 8:08 am
That's the one thing that makes me like EM... you can read up the code it generates and learn new stuff.
May 13, 2005 at 7:29 am
He meant that something that worked before might not work after this modification. But since you're adding a column instead of removing one I don't see many likely problems....
May 13, 2005 at 7:12 am
CREATE UNIQUE INDEX [IX_TypesObjAccess_TypeAccess_TypeName_Unique] ON [dbo].[TypesObjAccess] ([TypeAccess], [TypeName], [PkTypeObjAccess])
WITH
DROP_EXISTING
ON [PRIMARY]
May 13, 2005 at 7:10 am
Learning a db software is never a waste of time.. it's just a learning curve.
May 12, 2005 at 3:20 pm
that's one way to go...
Try searching these forums for parameter sniffing... this might also be what's causing the headache here.
May 12, 2005 at 2:45 pm
The foreign key has to refer to a column of same type and length enforced by a unique constraint (index)... it doesn't have to be a primary key nor the...
May 12, 2005 at 1:10 pm
Can you convert the function to a stored proc while you debug this?
May 12, 2005 at 1:08 pm
can you compare both execution plan to find where it is different?
May 12, 2005 at 12:56 pm
Good luck... we'll be waiting.
May 12, 2005 at 12:42 pm
Have you tried recompiling the udf b4 rerunning the code??
Might be a case of parameter sniffing...
May 12, 2005 at 12:34 pm
bug testing (checking to see if the subject will have 8 apostrophes this time)..
Strange is there a little bug in the post script??
May 12, 2005 at 12:27 pm
I see what you're doing, nice trick. But the problem is that it returns only customers with missing entries. Noeld's solution also provides which months/years are missing. ...
May 12, 2005 at 12:25 pm
Viewing 15 posts - 17,791 through 17,805 (of 18,926 total)