Forum Replies Created

Viewing 15 posts - 35,596 through 35,610 (of 49,557 total)

  • RE: Indexing URLs and eMail address

    RGDavis396 (11/30/2009)


    Searches against string values tend to be slower than those against numerical values

    Have you tested against large volumes of data under load? If so, are you seeing a measurable,...

  • RE: filling parameter with SELECT statement

    --check if record already exists.

    IF NOT EXISTS (SELECT ID FROM TableOne WHERE Col1 = @var1 )

    BEGIN

    IF @var2 = 1

    ...

  • RE: Log File is MASSIVE

    GSquared (11/30/2009)


    Too few educated engineers was another issue I read about on that one, not sure how accurate that was because the person stating it did have a political agenda...

  • RE: trigger is throwing error when db is offline?

    Piotr.Rodak (11/30/2009)


    Well, if the database is offline you can't connect to it, so why would you want to write anything to it?

    The insert is in the ELSE portion, ie...

  • RE: Event Id 17207

    Give us some background on what happened before this error appeared.

    Is the log file there? If not, do you know what happened to it?

  • RE: filling parameter with SELECT statement

    You're overcomplicating things. No need for the SELECT in that case. You don't need to assign to a separate variable, unless you're going to use that second variable later

    DECLARE @DocIDOne...

  • RE: How to write a trigger

    manikandan.chokkalingam (11/30/2009)


    i have three text boxes

    Doesn't sound like SQL to me. SQL has no text boxes. Maybe you can give us some more information, including where these 'text boxes' appear....

  • RE: Error in inserting into temp table

    No such thing as a GET in SQL. I think you need to take several steps back and explain what it is that you're trying to achieve here.

    The syntax...

  • RE: updating data

    Please post table definitions, sample data and desired output. Read this to see the best way to post this to get quick responses.

    http://www.sqlservercentral.com/articles/Best+Practices/61537/

  • RE: Error in inserting into temp table

    The insert statement right before the second fetch is only half-done. You need to define what to insert (either a VALUES clause or a SELECT statement)

    Why a cursor? From the...

  • RE: Basic cursor implementation

    Stay away from cursors. They have their place (rarely) but they should not be used when there's a simple set-based alternative, as there is here.

    Are you trying to learn SQL...

  • RE: Checkpoint spid preventing dtabase restore

    winston Smith (11/24/2009)


    1. what can cause a checkpoint spid to hang

    Counter question. How did you determine that the checkpoint had hung?

    if i done this in production, would it corrupt data...

  • RE: Basic cursor implementation

    Couple questions.

    Why do you want to do this with a cursor when a single update statement will do the job perfectly well?

    Why are you denormalising the database? How are you...

  • RE: How to write a trigger

    For a good introduction to triggers in SQL, please read this: http://www.sqlservercentral.com/articles/Triggers/64214/

    I also have to ask, why do you want to do this? Storing redundant data is usually a bad...

  • RE: How to get

    As I said, escape a quote by doubling it. So if you want single quotes within a string, put two of them to make a single ' character.

Viewing 15 posts - 35,596 through 35,610 (of 49,557 total)