Forum Replies Created

Viewing 15 posts - 91 through 105 (of 203 total)

  • RE: Quoted Identifier

    Good question, thank you. I really hope that nobody actually thinks that it is OK to abuse the database just because the engine allows it.

    Oleg

  • RE: Obtain the date of datetime field

    I have read the blog by Lynn Pettis in the past, the conversions are definitely very useful. The convert function is simple enough though and should be OK to use...

  • RE: Clearing the Transaction Log

    Paul White NZ (6/2/2010)


    Oleg Netchaev (6/2/2010)


    C. VLFs are overwritten with zeroes? No, in Windows nothing is overwritten with zeroes as there is no need to do that.

    Hey Oleg,

    Log files are...

  • RE: Check Constraints

    Rups (6/2/2010)


    Use Len(Ltrim(Rtrim(Column_Name))) in your Check Constraint

    This is a good solution, but rtrim is not needed. Len function ignores the trailing (but not leading) spaces. In other words len('hello ...

  • RE: how to get varbinary value from xml variable

    You have 2 very small problems:

    First, there is no need to cast HashConcatenateString as varbinary(20) because it is already spelled out and therefore, if you cast it to varbinary(20)...

  • RE: Obtain the date of datetime field

    Something like this should do it:

    select convert(varchar(10), getDate(), 120)

    The above returns 2010-06-02 when ran at any time today.

    Hope this helps.

  • RE: Clearing the Transaction Log

    This is a great question, thank you Paul. It would have been very difficult to answer it correctly, but fortunately for me, incorrect options were clearly incorrect, and therefore it...

  • RE: What identity comes next?

    This is a great question, thank you Ron!

    Hats off to the database engine team on this one, the implementation of the seeding next value in the direction of open waters...

  • RE: Strange error

    I saw on other posts yesterday that line 359 hints that the database is near corruption, I just hope that this is not the case.

    Oleg

  • RE: Strange error

    Paul White NZ (5/21/2010)


    Oleg Netchaev (5/20/2010)


    ...The problem with table variable is that you cannot create a non-clustered index on it...

    Well you can, it just has to be unique and created...

  • RE: Control chars in XML

    honza.mf (5/20/2010)


    Thank you, Hugo, for your help.

    Lot of people cannot distinguish complete XML file and XML segment.

    Because they cannot, you can ask Steve to edit one of the lines...

  • RE: Strange error

    I had to debug a painfully similar script about a year ago. The problem we had was limited to the enormous log file growth and ridiculously slow execution times. The...

  • RE: Strange error

    BaldingLoopMan (5/20/2010)


    equally as odd is the fact that my qury anal conn shows disconnected when it errors.

    There is nothing odd about the connection. Sev 20 errors do exactly that. From...

  • RE: Control chars in XML

    This is an excellent question, thank you. I thoroughly enjoyed it because I found it to be pretty difficult to answer correctly. I suspect that "most characters illegal" means all...

  • RE: Converting to DateTime

    To do the opposite, you can simply get the difference in seconds between yor date column value and Jan 1 1970, i.e.

    select

    datediff(second, '19700101', '12/10/2009 6:34 PM') timestart,

    datediff(second, '19700101', '12/10/2009 7:34...

Viewing 15 posts - 91 through 105 (of 203 total)