Viewing 15 posts - 211 through 225 (of 1,217 total)
Did you try to rewrite the trigger with derived table instead of CTE? Did it work correctly that way?
I'm not sure whether CTE work properly with triggers (I'm comparatively new...
May 27, 2008 at 8:58 am
Yes, that's what I supposed - that the form distorts characters before they get to SQL... it doesn't have anything to do with collation. You need to change the script...
May 27, 2008 at 7:05 am
I don't think it would make any sense to SELECT something as a certain collation... collation says, how the data is stored in the database with respect to ordering and...
May 27, 2008 at 5:22 am
peitech,
from the pictures you posted I suspect that the hash could be generated outside SQL... what type is the form you are using to input data? Is that PHP? Check...
May 27, 2008 at 4:57 am
Hello,
it is hard to tell without dissecting the code, and not knowing the data types, indexes and amount of data in tables, but I can see one possibility... there are...
May 27, 2008 at 1:36 am
metawizard2,
now that you explained your background, I can understand better why you chose the way you described... and I'm glad you started to explore the set-based approach. If you'll work...
May 27, 2008 at 1:19 am
Hello,
I have to say that while the procedure described leads to correct result, it seems to be lacking certain ingenuity so often found in the articles here. In my opinion,...
May 26, 2008 at 4:08 am
Steve,
I think this is language issue... what the poster (probably) wants to know is not theoretical capacity of a cursor, but how many rows currently are in the cursor that...
December 14, 2007 at 8:53 am
Use something along these lines (no guarantee, since you didn't post table structure - but it should give you idea how to strip time from datetime value):
SELECT DATEADD(d, DATEDIFF(d, 0,...
December 14, 2007 at 5:22 am
ayreshp (12/13/2007)
for other column I do
(select sum(teste.qtd) from teste where teste.setor_dest= 'QCC') AS TT
however is returning the first registro equal for all.
The problem in your query is, that...
December 14, 2007 at 5:01 am
Maybe it would be better not to use cursor at all... in most cases, it is possible to find a set-based solution which performs much better than cursor. Could...
December 14, 2007 at 4:45 am
To avoid correlated subqueries and gain better performance, you might try this:
As a basis, you need to have a query, which finds the correct date for each ID.
SELECT id, MAX(date)
FROM...
December 14, 2007 at 1:31 am
I'm returning back to the original question... although there is not a rule that would apply always, IMHO "rule of the thumb" means something different - a rule that can...
December 12, 2007 at 1:24 am
Viewing 15 posts - 211 through 225 (of 1,217 total)