Forum Replies Created

Viewing 15 posts - 3,496 through 3,510 (of 6,486 total)

  • RE: Fetch Row by Row with out using cursor

    I would add a placeholder in the recipe table for the "cloned" ID while you're doing this (if you do this a lot - I'd actually leave it in.)

    Once you...

  • RE: Extracting Rows from Delimited Strings

    Then either your column # 2 or column # 3 is returning something that can't be cast as a float. Meaning - it's not a number.

    So take the CAST...

  • RE: passing parameters to function w/ inner join

    There's a basic flaw in your joining characteristics. You can't limit by zipcode, then JOIN by zipcode, and expect to get zipcodes other than the ones you join on....

  • RE: Extracting Rows from Delimited Strings

    You uncommented the "beginning" of the NULLIF, but not the end:

    SELECT raw_payload,

    LEFT(raw_payload+'+++', CHARINDEX('+', raw_payload+'+++', 1)-1),

    ...

  • RE: SQL Server 2005 Licensing question

    Michael Earl (4/29/2008)


    You should look at the feature lists for the editions of SQL to make sure you do not need standard edition features.

    Per-processor licensing seems a lot for you....

  • RE: Extracting Rows from Delimited Strings

    If you want to just delete those rows - then

    DELETE

    FROM raw_data[raw_payload]

    Where raw_payload not like '%+%+%'

  • RE: question re: .ldf & transaction logs

    torpkev (4/28/2008)


    Thanks for the input Matt, I'm going to paste some more questions about your answer in bold to save retyping..

    Following your lead - comments inline

    Matt Miller (4/28/2008)


    Well -...

  • RE: Extracting Rows from Delimited Strings

    n1pcman (4/25/2008)


    Yes that is the problem I do have some bad data, 1 or 2 lines per every 600 is stepped on data its un unavoidable buffering issue with the...

  • RE: USE @DBNAME

    Warren Peace (4/28/2008)


    I tried as you suggested...

    DECLARE @DBNAME varchar(50)

    DECLARE @MyCommand varchar(1000)

    SET @DBNAME = '_RESTORERECOVER'

    PRINT @DBNAME

    SET @MyCommand = 'USE [' + @DBNAME + ']'

    EXECUTE(@MyCommand)

    But the DB never switched to the _RESTORERECOVER...

  • RE: question re: .ldf & transaction logs

    Well - the quick answer to your question is - it's 31GB now because at some point in the past, it needed to be that size. From possibly...

  • RE: Switched From OPENXML to .nodes T(Item) // Performance is four times slower

    sholliday (4/28/2008)


    The forum isn't allowing me to put in xml tagged code into the post.

    So I posted the tsql test-it code here:

    http://www.ipass.net/sloan/code/OPENXML_vs_SQL2005Syntax_Test.txt

    ..

    If you want to post the XML - run...

  • RE: Date Addition

    GSquared (4/28/2008)


    Matt Miller (4/28/2008)


    GSquared (4/28/2008)


    Having StatusID and Active in your Where clause is getting rid of any rows that would have 0 in them. You need to move those...

  • RE: Date Addition

    GSquared (4/28/2008)


    Having StatusID and Active in your Where clause is getting rid of any rows that would have 0 in them. You need to move those to the Join...

  • RE: Parsing strings

    Mark Green (4/28/2008)


    ,'2006','2007')

    .... what is that bit for?

    That's the end of the replace statement. You seemed to be trying to "increment" the year in your previous attempts. If...

  • RE: Parsing strings

    Hmm...I must be missing something, cause CASE should handle that... That being said - assuming you're starting out with an 8-character string, then:

    select replace(left([col032],4)+'-'+substring([col032],5,2)+'-'+substring([col032],7,2)+' 00:00:00.00.000','2006','2007')

    would create a CHARACTER...

Viewing 15 posts - 3,496 through 3,510 (of 6,486 total)