Forum Replies Created

Viewing 15 posts - 10,321 through 10,335 (of 14,953 total)

  • RE: deleting some rows leaving one.

    foxjazz (3/23/2009)


    Since there is a constraint, I have to delete the applicationid from the application table first, then delete it from the applicationproduct table.

    As seen in the code above.

    Do you...

  • RE: deleting some rows leaving one.

    Try this in a test copy of the database, or wrapped in a transaction you can roll back.

    DELETE

    ApplicationProduct

    FROM

    dbo.ApplicationProduct

    INNER JOIN dbo.Application

    ON ApplicationProduct.ApplicationID = Application.ApplicationID

    INNER JOIN dbo.Product

    ON...

  • RE: Inserting Markers in transactions in sqlserver 2000

    I'm not sure what you mean by "markers".

  • RE: create temp table to delete

    Nah. If the temp table is created/populated with a select from the main table, you'll just be processing the data twice instead of once.

  • RE: PLEASE Help with sp_ExecuteSQL!!!!

    Is there a reason to do this with a cursor instead of with Cross Apply?

  • RE: using ASCII CODE in code

    I can't tell just from that what it's trying to do. Are you executing that as a command?

    Are you getting an error message? If so, what?

    It would be...

  • RE: Is it possible to simulate the cross apply function?

    Here's something you might try. I have no idea if this will work, but it might be worth a try.

    Create a separate database that in Compat 90. Write...

  • RE: Is it possible to simulate the cross apply function?

    I think the only way you're going to get SQL 2000 to do that is with dynamic SQL.

    You can parse out a string with a Numbers table, but that won't...

  • RE: Transaction Confusion

    Right. Because that's an execution problem in the Try block of the calling query. Try adding a Try...Catch to the dynamic SQL command, and see what that does.

  • RE: using ASCII CODE in code

    I would need to see your code to know what to suggest.

  • RE: create temp table to delete

    It'll depend on a number of factors.

    For example, if you delete all 1-million at once, that will create a rather huge transaction, which might take a long time to commit....

  • RE: Is it possible to simulate the cross apply function?

    I can't tell what the function does. Is it something that could be turned into a correlated sub-query?

  • RE: using ASCII CODE in code

    There's an "ASCII()" function that will generate any given ASCII character. Just put the number in it.

    You can get the numbers from Wikipedia. Just Google "ASCII" and it...

  • RE: Performance Tuning

    Have you found what's causing the timeouts? That'll be a good place to start.

    Coincidentally, there's actually a front-page article today on that exact subject. Check that out, it...

  • RE: Transaction Confusion

    Per Books Online:

    A TRY…CATCH construct catches all execution errors with severity greater than 10 that do not terminate the database connection.

    Note that it says, "execution errors". Those are what...

Viewing 15 posts - 10,321 through 10,335 (of 14,953 total)