Viewing 15 posts - 6,751 through 6,765 (of 7,636 total)
SqlContext.Pipe.Send("...") does the same thing as a Sql Print statement.
June 4, 2008 at 1:08 pm
You are converting a Datetime to a Datetime, which has virtually no effect. You must convert the Datetime source into some string, like so:
SELECT
CONVERT(varchar(10), GetDate(), 101)
June 4, 2008 at 1:03 pm
Seems like "What Security is mapped by this ID?" should be a Service also. At least in an SOA environment.
In a non-SOA environment, I would have a Securities table...
June 4, 2008 at 12:34 pm
Hmm, good question.
June 4, 2008 at 12:25 pm
glad we could help.
June 4, 2008 at 12:23 pm
Jeff:
My understanding is that only objects actually IN the ResourcesDB can directly access other ResourcesDB objects. And all of the 'sys.*' objects are actually in the ResourcesDB,...
June 4, 2008 at 6:36 am
Sure, just replace this:
WHILE(@Cnt > 0)
BEGIN
SELECT @ProductOptionID = ProductID FROM @TableVar WHERE ID = (@Cnt);
DELETE FROM Production.utbProductUtbProductOption
WHERE ProductID = @ProductID AND ProductOptionID = @ProductOptionID
SET @Cnt = @Cnt-1
END
with this:
DELETE FROM Production.utbProductUtbProductOption
...
June 3, 2008 at 8:57 pm
Lacking an XLATE() type built-in function in T-SQL, CLR is probably the way to go.
June 3, 2008 at 8:32 pm
It's not clear to me what the problem is that you are alluding to. Tables with ID fields as PK's refer to each other all the time without any...
June 3, 2008 at 8:28 pm
By the way, it does not appear that you need to be using that WHILE loop, and it will perform terribly compared to a set-based approach.
June 3, 2008 at 7:49 pm
AFCC Inc. Com (6/3/2008)
SELECT @Cnt = LEN(ProductID) FROM [SplitList](@List)
@Cnt always = 2...
June 3, 2008 at 7:47 pm
Is this a general CPU problem or a specific one?
June 3, 2008 at 7:24 pm
Viewing 15 posts - 6,751 through 6,765 (of 7,636 total)