Viewing 15 posts - 58,981 through 58,995 (of 59,038 total)
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
>(select count(*) from myview where ...) as field1
>(select sum(field) from my where ...) as field2
Your last post said that you used aggregate functions for each field. Looking at the code...
April 25, 2004 at 9:27 pm
First, thank you for the table and data code... always a pleasure to NOT have to write code just to do a test setup...
April 25, 2004 at 7:55 am
Viewing 15 posts - 58,981 through 58,995 (of 59,038 total)