Forum Replies Created

Viewing 15 posts - 181 through 195 (of 373 total)

  • RE: need help with the code

    Jeff Moden (7/18/2011)


    Hardy21 (7/17/2011)


    sql2k8 (7/15/2011)


    the below code also works

    code please..

    It's a "newbie" forum mistake. His first post where the OP said "Thank You very much. Your code works "...

  • RE: need help with the code

    sql2k8 (7/15/2011)


    the below code also works

    code please..

  • RE: need help with the code

    You can use SUBSTRING & CHARINDEX functions to retrieve the data.

    The example is as below:

    declare @aa nvarchar(100) = '@Database=Test, @FileName=K:\BackupS\Differential\Test\Test_Diff_2007-07-12-220004.bak, @FileNumber'

    select SUBSTRING(@aa, Charindex('K:', @aa), charindex('.bak', @aa) - (Charindex('K:', @aa)-4))

    It returns:

    K:\BackupS\Differential\Test\Test_Diff_2007-07-12-220004.bak

  • RE: SQL Server Execution Plans

    Really nice book. Thanks Grant Fritchey

  • RE: We Need a DBA Boot Camp

    1. No havent attended any.

    2. Good idea. It should be from 2 weeks to 4 weeks and should cover almost all the areas which DBA is required.

  • RE: Rookie DBA

    Jayanth_Kurup (7/6/2011)


    Being DBA is a lifestyle choice as well 😀 , stressful work environment esp when things go bad as well as night shifts etc and being the guys...

  • RE: Update Statistics

    Good question

  • RE: Finding the Correct Weekday Regardless of DateFirst

    Nice article Divya

  • RE: SELECT and WHERE without FROM

    Nice question

  • RE: Using a Variable for an IN Predicate

    Nice article contains good examples, description.

  • RE: Retrieve the information from XML column

    I have referred 'http://beyondrelational.com/blogs/jacob/archive/2008/06/26/xquery-lab-1-transforming-rows-to-columns.aspx' link, and able to solve it.

    I have the data like sample XML which I added in the question.

    Table may contain 1 lac rows -...

  • RE: Keywords

    Hugo Kornelis (2/15/2011)


    I think the QUOTED_IDENTIFIER setting is to preserve backwards compatibility. With QUOTED_IDENTIFIER set to OFF, SQL Server reverts to its legacy behavior where both single and double quotes...

  • RE: Keywords

    Nice easy one.. Thanks

  • RE: Visual Studio Code Names

    Good question.

    I have confusion between Datasmith & DBPro because all others I know & installed, so guessed datasmith 🙂

  • RE: Add Column

    rocky_498 (2/9/2011)


    First step to add column (COLUMNXY)

    second use update statement

    UPDATE STATE

    SET COLUMNXY = (TYPE,'-',STATE)

    First step to add column (COLUMNXY)

    update STATE

    SET COLUMNXY = (TYPE + '-' + STATE)

Viewing 15 posts - 181 through 195 (of 373 total)