Viewing 15 posts - 1,306 through 1,320 (of 1,554 total)
All things 'universal' makes me think 'dynamic SQL'.... Before you even think about walking down dynamic boulevard, read this - http://www.sommarskog.se/dynamic_sql.html - and take a good time thinking if this is...
October 26, 2004 at 1:57 am
Why not use good old bcp, or even the DTS wizard can do this kind of stuff with a few clicks?
/Kenneth
October 25, 2004 at 3:28 am
You don't want to mail from within a trigger.
It will cause you all sorts of problems, grey hair etc.
It is much better to have the trigger just notify that a...
October 25, 2004 at 3:21 am
Is there any particular reason you bother with an intelligent PK?
In general, one of the criterias for a 'good' PK - is that it should not mean anything. PK's with...
October 25, 2004 at 3:16 am
'Undocumented' in this sense really means 'unsupported' - documentation exists, only not any official documentation from MS.
Many of the undocumented xp's are documented in books, papers, on the web etc......
October 25, 2004 at 3:09 am
I believe that you could do it with a three-way join...
SELECT a.col, b.col, c.col, .....
FROM tableA a
JOIN tableB b
ON a.GroupID = b.GroupID
AND a.groupID = @GroupName
JOIN tableC c
ON b.ContactNo...
October 22, 2004 at 8:26 am
Digging into the data is always a good idea, though the poster explained it as the 'error' occured when running from the app, but when validating the same thing 'directly'...
October 20, 2004 at 2:16 am
If by 'row id' SQL Server's identity is implied, you can use either of SCOPE_IDENTITY, IDENT_CURRENT, or @@IDENTITY.
They are slightly different in how they work, look up 'SCOPE_IDENTITY' in BOL and...
October 20, 2004 at 2:10 am
There are some things that will force table scans (thus rendering indices useless)
Such things as:
negations, leading wildcards, functions...
WHERE myCol <> 1
WHERE myCol NOT LIKE 'a%'
WHERE myCol LIKE '%a'
WHERE DATEDIFF(day, myDateCol,...
October 19, 2004 at 7:53 am
Well, in such a case 'A' trigger won't cut it - you'd need 50 triggers - one for each table.
If I understand it correctly, the insert/update code is on SQL...
October 19, 2004 at 7:47 am
All sorts of funny things can hapen when you introduce control charachters in the data. imo they don't belong there, tables are for data, not layout.
October 19, 2004 at 7:41 am
I won't pretend that I understand what the proc is doing, but I would look at two things:
either the app is sending the wrong parameters?
or if you have connection pooling...
October 19, 2004 at 7:28 am
It might. Especially when selecting columns and inserting into another table, a lot of I/O is involved. Diskaccess is the one slowest thing of all in a database perspective.
In order...
October 19, 2004 at 7:23 am
'GO' is actually not a Transact SQL command, it's just a symbol marking 'end of batch'.
Apparantly it was in the 'wrong' place for you when placed into the job.
October 19, 2004 at 7:16 am
Well, if I had a penny every time someone said 'it's definetly not this is that'...
In any case - when you run it...
October 19, 2004 at 2:38 am
Viewing 15 posts - 1,306 through 1,320 (of 1,554 total)