Viewing 15 posts - 55,771 through 55,785 (of 55,829 total)
It, of course, depends on the SELECT statement in the NOT EXISTS but, I'd have to say "Yes", in most cases (was going to say ALWAYS but, sure-as-shootin', somebody would...
May 4, 2004 at 7:08 pm
Just a note... The IDENTITY function can only be used when the INTO clause (as Figaro did) is also present or you will get the following error...
Server: Msg...
May 3, 2004 at 5:44 am
Haven't tested this but should work just fine. Notice how DATEADD was used to subtract 4 months from the current date... not a job for DATEDIFF as many would think...
May 3, 2004 at 5:24 am
It won't actually report what constraint was violated but it will reject any record to the "error log" that either violates a constraint, key, foreign key, data-type, or column width. ...
May 1, 2004 at 7:41 pm
Thought I'd clarify my statement about using an Outer Join as a replacement for a "Where Not In"...
About outer joins... I'm sure you've heard all sorts of horror...
May 1, 2004 at 6:53 am
If you are using an outer join as a replacement for a "WHERE NOT IN", then the filter must be in the WHERE clause as in Gary's second example above.
May 1, 2004 at 6:20 am
Use CASE as a substitute for DECODE. Of course, "equivalent keywords" usually are not "equivalent" and will require a bit of rework.
Don't know what DISTINCTROW is... and don't want to...
May 1, 2004 at 6:15 am
Howdy,
It is and always has been a "bug" with Enterprise Manager. I don't think you'll find a fix for it even on the Microsoft site (I've look for this fix...
May 1, 2004 at 6:10 am
Steve,
To answer your first question, I've found that PatIndex is a wee bit faster than LIKE. In either case, both take a toll on speed when it comes to large data...
May 1, 2004 at 5:57 am
My thoughts are that if you are trying to import data that is either delimited, fixed field, or a combo of both, you should probably take the time to use...
April 29, 2004 at 10:04 pm
Sometimes ya just gotta do with the data ya got... The REPLACE answer is a good one. Thanks.
April 29, 2004 at 9:44 pm
SELECT * FROM DBO.pt_vCheckSupport
WHERE supp_startdt>='07-MAR-2004' AND supp_startdt<'20-MAR-2004'
April 29, 2004 at 9:32 pm
/* SET NOCOUNT ON */
SELECT GEO , CustomerType,
April 27, 2004 at 9:28 pm
Got the same result... no error but no change. Thank you for trying.
April 26, 2004 at 11:10 pm
Viewing 15 posts - 55,771 through 55,785 (of 55,829 total)