Viewing 15 posts - 58,711 through 58,725 (of 58,873 total)
You can avoid this...
IF (@FromDate = NULL)
SET @FromDate = '1/1/1900'
... by doing this... (just a bit faster, I think)
SET @FromDate...
December 9, 2004 at 9:34 pm
> Do you think this may pose deadlock problems? This should be the only stored procedure or even script for that matter that would ever access this table.
Fred,
Yeah, your method...
December 9, 2004 at 6:16 am
A third party company that we had the great misfortune of hiring, did something similar (nearly identical) in our database... it caused an average of 620 deadlocks a day. The...
December 7, 2004 at 11:56 pm
Not sure why you wouldn't want to use a set based Trigger for this... it's a tried and true method and will run raster than anything else you could throw...
December 7, 2004 at 11:08 pm
>Will having 2 records for the one shift with 2 seperate ID's affect my Analyisis Services CUBES?
Here's a bit of code where you will not have two records... most of...
December 6, 2004 at 1:11 am
Perhaps instead of a stored procedure, it should be a view so that you can select from it as if it were a table. Also, take a look at OpenRowSet...
November 29, 2004 at 8:58 pm
Do you want to automatically delete the dupes (leaving only the earliest or the latest) or just find them? Frank is correct... the search leads to lot's of "duplicate row" goodies...
November 27, 2004 at 7:24 am
You're welcome and thanks for the feed back.
November 26, 2004 at 8:21 am
We ran into a similar problem at work...
You have an IS NULL in the WHERE clause and while that is not in itself a problem, you've probably run into a...
November 26, 2004 at 3:50 am
I ran into a similar problem with a rather lengthy query and it became a real pain. I originally used IF logic but it required that the same lengthy query...
November 26, 2004 at 2:59 am
Brian,
Really nice job on the "Stored Procedures and Caching" article. Looks like a few other folks share my sentiment. Definitely above the norm of what I've come to expect from...
November 21, 2004 at 8:33 pm
If you format the "preview" table (also known as a "staging table") correctly, BCP will catch the kinds of errors you mentioned. Dates should always go into a DateTime data-type column. ...
November 17, 2004 at 12:08 am
I had some very good luck using a CASE statement in a WHERE clause for just this purpose. Try something like this...
November 16, 2004 at 11:54 pm
Viewing 15 posts - 58,711 through 58,725 (of 58,873 total)