Viewing 15 posts - 13,261 through 13,275 (of 18,923 total)
I think you should do that application side. But for the fun of it :
Start with a derived table that has the rownumber and groupid in it. ...
September 14, 2005 at 10:01 am
Easier to find once you know what you're looking for
.
September 14, 2005 at 9:41 am
... and for the record, this isn't a stored proc
.
September 14, 2005 at 9:37 am
Must be that... that's undocummented in my bols
.
September 14, 2005 at 9:35 am
Now that I rethink of it. I would do it with a table variable. I'd get the first few columns into the table variable, then join to itself...
September 14, 2005 at 9:20 am
Even with 2 strigns of 8K, the execution is still in the ms for my split function... No problems there.
September 14, 2005 at 9:09 am
CREATE TRIGGER [AfterInsertOrderLine] ON [dbo].[OrderLine]
AFTER INSERT
AS
SET NOCOUNT ON
UPDATE O SET TransType = 'xyz' from dbo.OrderLine O inner join Inserted I on O.OrderLine = I.OrderLine
September 14, 2005 at 9:02 am
My rule of thumb is this.
If the field is calculated, accessed often but with a value that never/rarely changes, you can keep it in the db. The best exemple...
September 14, 2005 at 8:52 am
Just do the select like if you wanted to always get that phone number. Then write this :
CASE when accountlevel = 10 THEN AdminInfo.PhoneNumber ELSE 'Another field, or...
September 14, 2005 at 8:48 am
Depends on the situation and how you store it. What is your need at this point?
September 14, 2005 at 8:22 am
Hey jesper.. delete your first post... or edit the table tags.
September 14, 2005 at 8:05 am
So you need to count the number of time the items are in both the ITEM_COMP and products table, but only if they are in the ITEM_COMP table?
September 14, 2005 at 7:57 am
How are you calling that sp??
What's the sp code?
September 14, 2005 at 7:51 am
Viewing 15 posts - 13,261 through 13,275 (of 18,923 total)