Forum Replies Created

Viewing 15 posts - 56,026 through 56,040 (of 59,067 total)

  • RE: Data type for Credit Card

    Ah... got it... sorry, Remi... thought you lost your mind for a minute   I should have known better.

  • RE: sorting an alphanumeric field

    Bill,

    Slight "lull" in the action here so I thought I'd check... was your question answered or did you have something else in mind?  And, I didn't get the chance to...

  • RE: Date Conversion

    Heh... thanks for the feedback, David.

  • RE: Date Conversion

    Substitute your date column or date variable for GETDATE() in the following...

     SELECT DATEADD(yy,DATEDIFF(yy,0,GETDATE()),0)

  • RE: Insert Into --new records only

    You too... Thanks, Marcus...

  • RE: Insert Into --new records only

    Heh, too much "potty" time, James? (just kidding)  Me?  The shower can wait, I'm headed for a beer!

  • RE: BCP Quote delimited fields

    Sorry David, didn't list all of the switches you needed 'cause I thought you might already know them...  You'll need the following switches, as well...

    -s"" -w256 -n

    Replace the "256" with...

  • RE: sorting an alphanumeric field

    Bill,

    Thanks for posting code that actually creates some data... usually saves a lot of time for respondents and we appreciated it a LOT!

  • RE: sorting an alphanumeric field

    I always wanted to know how fast that method ran

    --=================================================================================================
    --      Prepare a test table
    --=================================================================================================
    --===== If the test table exists, drop
         IF OBJECT_ID('TempDB.dbo.#TestData') IS...
  • RE: Table size in DB

    O-ki-do-ki

    DBCC UPDATEUSAGE(0)
    --===== "Space Used on Sterioids"
         -- Created by Jeff Moden
         -- If "UnusedKB" is negative, it's likely you need to run DBCC...
  • RE: Archive a table- data older than 6 months

    Your handle says "SQLDBA" so I'm thinking that you know where Books Online is...  lookup DATEADD, Insert, Delete, and WHERE NOT IN.

  • RE: Large dynamic query optimization questions...

    Doesn't help the processing speed at all but does take less size for the dynamic SQL, the WHERE clause should be constructed more like the following...

    FROM RecurrentOutcomeParticipants rop

    WHERE...

  • RE: Insert Into --new records only

    use occ_archives

    insert into asqcrr.occ_archives.dbo.hvcfids

    select * from asqcrr.occ_archives.dbo.hvcfids as dest

    Where not exists

    (select workitemid

    from asqcrr.occ_archives.dbo.hvcfids as source

    where source.workitemid = dest.workitemid)

  • RE: Insert Into --new records only

    Way too much info

  • RE: From flat file to table

    Yes, and no... if you use a format file for repetative imports, the answer is yes...  but the data in this example won't support your method or my method because the...

Viewing 15 posts - 56,026 through 56,040 (of 59,067 total)