Forum Replies Created

Viewing 15 posts - 5,086 through 5,100 (of 5,685 total)

  • RE: PARSING a Concatenated string into columns

    SQL33 (11/4/2010)


    I've been investigating this syslog parsing problem further, and noted using my HEXEditor that the field I need to have parsed (the MSGText field) is actually internally delimited with...

  • RE: DATEFIRST setting oddity

    Michael Valentine Jones (11/4/2010)


    There is a nasty gotcha to watch out for if your application is doing connection pooling: The transaction isolation level does not get reset by sp_reset_connection, so...

  • RE: Calculate number of moths between two days?

    Michael Valentine Jones (11/3/2010)


    I mainly wanted to show the logic for how to handle this: "(If date of month >=15 will count as whole month, if <15 will be ignored)...

  • RE: DATEFIRST setting oddity

    <------------- Okay, I earned one of these...

    Michael Valentine Jones (11/3/2010)


    What you are missing is the following from SQL Server Books Online under the SET DATEFIRST topic:

    When you have @@DATEFIRST =...

  • RE: Error converting nvarchar to float [depending on execution plan]

    SQL-Tucker (11/3/2010)


    Thank you, that is a HUGE help and gets me on the right track.

    At this point I either need to rethink my approach and handle the conversion on the...

  • RE: Error converting nvarchar to float [depending on execution plan]

    SQL-Tucker (11/3/2010)


    You Rock! Thank you!

    FORCE ORDER was exactly what was needed (still need to gauge performance impacts and such but the error is gone)

    Hold up. Force Order is letting...

  • RE: Error converting nvarchar to float [depending on execution plan]

    The optimizer doesn't promise it's going to do anything in a specific order, just the fastest it can figure out.

    The WHERE clause is a good start, but the issue here...

  • RE: Performance Issue

    Demin, you're aware that's not proc based, right?

    To help with the query(s) in question, we'd need to see schema, script, and execution plans. Check out the 'optimization' link in...

  • RE: drop the all tables

    WayneS (11/3/2010)


    Craig Farrell (11/3/2010)


    This might need to be run multiple times... you can't drop a table that is a parent in a FK relationship, so you might need to wait...

  • RE: drop the all tables

    WayneS (11/3/2010)


    Thus: why drop all tables instead of starting over with a clean database?

    I've got two reasons I've done it in the past, mostly scenario specific though.

    1) Dev database, and...

  • RE: Calculate number of moths between two days?

    DECLARE @startDate DATETIME,

    @EndDate DATETIME

    SET @StartDate = '09/01/2007'

    SET @EndDate = '05/20/2009'

    SELECT

    N AS [Year],

    CASE WHEN N = YEAR( @StartDate)

    THEN DATEDIFF( mm, @startdate, DATEADD( yy, YEAR( @StartDate) - 1900 + 1, 0))

    WHEN...

  • RE: drop the all tables

    raistlinx (11/3/2010)


    Craig Farrell (11/3/2010)Raid... slower? Than what?

    For writing? Slower than a single drive.

    Sorry, reading back that was a bit rougher sounding than the joke I meant it to...

  • RE: drop the all tables

    raistlinx (11/3/2010)


    Depending on what kind of a RAID environment you may be working in (often beyond your control) it can take a lot longer than that. So let's suppose...

  • RE: launch SSIS pacakage from web service

    Some very brief google research:

    Run the webservice as admin:

    http://database.itags.org/sql-server/274814/

    Same starter post, more clarification at the end, needs fully trusted in .NET:

    http://www.windows-tech.info/15/35c56638890ee860.php

    Some information about custom assemblies which I don't fully understand...

  • RE: Append incremental alphabetical values by group

    Offhand, without integrating it into your code (or testing this pseudocode, for that matter, just trying to give you an idea):

    You'd use the CHAR() function which turns a numeric into...

Viewing 15 posts - 5,086 through 5,100 (of 5,685 total)