Forum Replies Created

Viewing 15 posts - 1,186 through 1,200 (of 2,647 total)

  • RE: Results split in SSMS window?

    You could use a parameter:

    DECLARE @parameterName varchar(25)

    SET @parameterName = 'AR-46'

    Then replace all your where's to WHERE holder_Version_Code_Enrollment = @parameterName

    Jared
    CE - Microsoft

  • RE: Shifting values to the left

    The other option is to do this in separate queries starting with checking col 3 and moving data left. Then column 2.

    Jared
    CE - Microsoft

  • RE: Shifting values to the left

    Is this going to be a regular operation, or are you trying to clean existing data where new constraints have been placed in the application that is inserting the data...

    Jared
    CE - Microsoft

  • RE: Shifting values to the left

    Maybe I am misunderstanding you. You stated

    I'm trying to shift all values to the left where they can be shifted (where there's a NULL).

    You do not mention any...

    Jared
    CE - Microsoft

  • RE: Shifting values to the left

    If you have only 3 fields just do 3 simple case statements. Shouldn't be that much code. Can't think offhand how to do it better.

    Jared
    CE - Microsoft

  • RE: generate xml using sql query

    Please refer to the article linked in my signature by Jeff Moden to see how to properly post your question.

    Jared
    CE - Microsoft

  • RE: Abnormal SQL issue

    Disable the sa account and only use individual accounts. Clearly too many people have the sa account credentials...

    Jared
    CE - Microsoft

  • RE: Alternate to context based search

    I think for auto-complete to work effectively, the entire data set should be loaded for the context and then filtered programmatically as each letter is typed. Not calling a stored...

    Jared
    CE - Microsoft

  • RE: Script Out Database Mail Settings?

    mot256 (4/2/2012)


    Thank you very much for this script!

    +1 Lowell! I knew I would need this some day after reading the post. Today was that day!

    Jared
    CE - Microsoft

  • RE: Should I stop the sql server agent?

    andersg98 (4/9/2012)


    When it comes to replication I have stopped asking "Why?" or even "WTH? Sometimes when you try a simple schema change it works and sometimes you get errors...

    Jared
    CE - Microsoft

  • RE: Should I stop the sql server agent?

    andersg98 (4/9/2012)


    You might be able to remove the Article from the publication, reinitialize the subscription (thus removing it from replication) then alter the table, add the Article back into the...

    Jared
    CE - Microsoft

  • RE: Alternate to context based search

    Why are you looking for an alternative way? Is this query slow? Do you not like IF ELSE? If it works, why change it?

    Jared
    CE - Microsoft

  • RE: server name after migration

    We always try to keep the server name the same. This way, they do not have to change the connection strings in every single application config.

    Jared
    CE - Microsoft

  • RE: Trigger Help

    I'm not sure that you really understand what a trigger is. A trigger fires when an event occurs. If there is no event, there is no firing; i.e. before...

    Jared
    CE - Microsoft

  • RE: Can you switch from 2008 R2 x64 Enterprise to Developer Editions

    I can tell you from experience that it is not a valid upgrade path to go from EE to dev. In fact, I just ran into the issue on Friday.

    Jared
    CE - Microsoft

Viewing 15 posts - 1,186 through 1,200 (of 2,647 total)