Forum Replies Created

Viewing 15 posts - 31 through 45 (of 100 total)

  • RE: Cost For Implicit Conversion of Datetime to/from Smalldatetime?

    Hi Grant-- thanks for the quick reply. (I think you meant "Unfortunately your tests are NOT quite fair")

    Point taken regarding indexing. Let me ask a smaller question: The query plan...


    Cursors are useful if you don't know SQL

  • RE: Returning the Top X row for each group

    ...what about a tie?

    INSERT INTO #Runners SELECT 9,10,20


    Cursors are useful if you don't know SQL

  • RE: Daylight Savings Time

    My tlogs back up every 30 minutes at :00 and :30. Somehow my 2am TRN got deleted. As a result my 3:30am restore on another server failed when it tried...


    Cursors are useful if you don't know SQL

  • RE: ALERT / NOTIFICATION on triggers

    Steve Jones - SSC Editor (10/7/2010)


    If the trigger fails, you will not likely be able to send a message since it will roll back. Potentially you could send mail, but...


    Cursors are useful if you don't know SQL

  • RE: Date Calendar

    Hi Sean,

    I love the script! Did these get added?

    ...and for my little (very little) contribution, I would add an ISO date field (e.g., 20091006)

    convert(varchar(10), getdate(), 112)

    Why varchar(10) and not char(8)?...


    Cursors are useful if you don't know SQL

  • RE: Loop, Cursor or both?

    Ah I see how it works now! I was under the assumption that even if that Column existed in the FileInfo table and I was pulling from it that it...


    Cursors are useful if you don't know SQL

  • RE: Service Broker/Event Notification Problem; Event Notification stopping unexpectedly

    A little more fiddling and I've got the (one-line) fix:

    Changed

    CREATE EVENT NOTIFICATION notify_DdlDbEvents ON [highlight]DATABASE[/highlight] WITH fan_in FOR DDL_DATABASE_LEVEL_EVENTS TO SERVICE 'svcDdlDbEvents', 'current database';

    To

    CREATE EVENT NOTIFICATION notify_DdlDbEvents ON [highlight]SERVER[/highlight]...


    Cursors are useful if you don't know SQL

  • RE: Converting to DateTime

    I quickly scanned the thread so I may be missing some details (and I've GOTTA get outta here) but you don't even really need to convert the 2 "seconds since...


    Cursors are useful if you don't know SQL

  • RE: ORM Mapping

    Phil Factor (3/31/2010)


    Like Circular Saws, ORMs are great tools in the right hands, Like circular saws, the consequences of using them wrongly are difficult to put right.

    In other words,...


    Cursors are useful if you don't know SQL

  • RE: Improve Searches

    Jeff Moden (3/10/2010)


    ...A word of caution on DTA...Although it may give you an index to make your SELECTs lightning fast, that same index can eat the face off your database...


    Cursors are useful if you don't know SQL

  • RE: E K M

    Oleg Netchaev (3/12/2010)


    ...Imagine someone posting RAID is an acronym for...

    ...Surely you mean "Roach And Insect Deterrent"[/url] ...?


    Cursors are useful if you don't know SQL

  • RE: How to change the Subject Text returned by Jobs/MP/DBMail?

    I may be misinterpreting your issue, but instead of using a "Notify Operator Task" use an "Execute TSQL Task" in your maintenance plan. The TSQL code to run would be...


    Cursors are useful if you don't know SQL

  • RE: Best code for generating sequence numbers

    Paul White (3/2/2010)


    mstjean (3/2/2010)


    Are you saying it's possible for the following statement to insert non-sequential values for the identity:

    INSERT INTO TableWithIdentity SELECT TOP 100 * FROM SomeTable

    (YES...) Non-sequential/non-contiguous...The cause, by...


    Cursors are useful if you don't know SQL

  • RE: Today's Random Word!

    dialog, dualogue, diatribe,

    dissention, declamation,

    double talk, double talk

    - Belew, Bruford, Fripp, Levin


    Cursors are useful if you don't know SQL

  • RE: Best code for generating sequence numbers

    ...uhoh...

    Jeff Moden (3/1/2010)


    ...It would be diffcult to reserve a range of ID's with because IDENTITIES are not guaranteed to be sequential if other people are also inserting into the table.

    Are...


    Cursors are useful if you don't know SQL

Viewing 15 posts - 31 through 45 (of 100 total)