Forum Replies Created

Viewing 15 posts - 56,041 through 56,055 (of 59,078 total)

  • 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...

  • RE: No DBAs allowed access to Production DB Servers...

    Then there's THAT   Works almost everytime...

  • RE: BCP Quote delimited fields

    If you use OSQL with the -h-1 option and the -o option, something like the following works very well...

     USE Northwind

     SET NOCOUNT ON

     SELECT QUOTENAME('CustomerID','"')+','

          + QUOTENAME('CompanyName','"')+','

          +...

  • RE: Data Verification

    My pleasure... however, Wayne is correct... his method not only inherently checks the row counts, it also checks the actual data...

  • RE: Table size in DB

    Ack!  A cursor?

Viewing 15 posts - 56,041 through 56,055 (of 59,078 total)