Forum Replies Created

Viewing 15 posts - 58,711 through 58,725 (of 58,873 total)

  • RE: Generating Unique ID on Server

    Thanks nskr72... I missed that.

  • RE: Help with Datetime field ...Please help!

    You can avoid this...

    IF (@FromDate = NULL)

    SET @FromDate = '1/1/1900'

    ... by doing this... (just a bit faster, I think)

    SET @FromDate...

  • RE: Generating Unique ID on Server

    > 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...

  • RE: Generating Unique ID on Server

    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...

  • RE: How to generate SQL DML

    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...

  • RE: Help With DateTime Values

    >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...

  • RE: Calling an SP from a Select Statement

    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...

  • RE: xml problem

    Dude?

  • RE: key is not unique

    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...

  • RE: How to get all records with a parameter value of zero

    You're welcome and thanks for the feed back.

  • RE: Parallelelism pour performance

    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...

  • RE: How to get all records with a parameter value of zero

    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...

  • RE: Stored Procedures and Caching

    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...

  • RE: BULK INSERT error handling (?)

    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. ...

  • RE: Flexible Select Procedure

    I had some very good luck using a CASE statement in a WHERE clause for just this purpose.  Try something like this...

    CREATE PROCEDURE ListMyTable( @Op As Integer, @ParamValue...

Viewing 15 posts - 58,711 through 58,725 (of 58,873 total)