Forum Replies Created

Viewing 15 posts - 1,831 through 1,845 (of 5,590 total)

  • RE: Are the posted questions getting worse?

    Well, Joe still has his rhetoric, but it seems to have been toned down quite a bit. Almost an attempt to be humorous about it.

  • RE: Insert several records into a table from one source table, without a cursor

    This ought to get you started...

    ;WITH CTE AS (

    SELECT KT_ID, KT_Type, RN = ROW_NUMBER() OVER (ORDER BY KT_ID)

    FROM KeyTable

    )

    --INSERT INTO Tens_Table (TT_ID, TT_Type, TT_Message)

    select KT_ID, KT_Type, CONVERT(varchar(5), RN)...

  • RE: 32bit vs 64bit

    There's only a few things that would make a difference, and those mostly go to drivers. Linked servers/OpenRowset/SSIS may have issues.

    With less-and-less reason to NOT use 64-bit, those vendors need...

  • RE: Sharing Code

    TravisDBA (1/26/2011)


    WayneS (1/25/2011)


    TravisDBA (1/25/2011)


    WayneS (1/25/2011)


    Plagiarism - no, I won't allow it.

    Copying code and using it: I prefer that the code comments have a link to where it was found. But,...

  • RE: Reporting Servies

    Sounds like a 3-part replace:

    replace(replace(replace(Column, '.', '|'), ',', '.'), '|', ',')

    I'm not sure what the SSRS statements would be :(, but you should be able to look it up if...

  • RE: Quering the date to be queried...???

    SQL33 (1/25/2011)


    I have a query (below) which locates text in a table (created by code below) containing the output from a syslog. This table hovers at about 50 million...

  • RE: Dynamic SQL with Temp Tables

    mister.magoo (1/25/2011)


    How about using a new database and creating uniquely named tables - perhaps include the SPID in the name

    This sounds like an excellent idea. I'm not sure that a...

  • RE: What Not To Say

    I only mostly agree with #8 in the referenced article. Sometimes the issues that are causing you to look are out of the bosses control - or the issues are...

  • RE: What Not To Say

    Lynn Pettis (1/25/2011)


    ... I have also the where the code changes work perfectly in development and during UA, but fail miserably in production.

    IMHO, this would be indicative of not...

  • RE: Scripting a Drop on a Constraint

    Well, I don't see a problem with this:

    1. constraints are a separate object, and are stored in the sys.objects (or sysobjects) views.

    2. the scripted commands for a drop/create work for...

  • RE: Get data from a string

    Lynn Pettis (1/25/2011)


    Does the following snippit help?

    declare @TestStr varchar(128) = 'TRITON9700 L9700031288172 10-07-09 | EDC TRITON 9700 CASH DISPENSER';

    select

    SUBSTRING(@TestStr, PATINDEX('%[0-9][0-9]-[0-9][0-9]-[0-9][0-9]%|%',@TestStr), 8) as CharDate,

    ...

  • RE: How to remove all keys (including indexes) in a database?

    sys.indexes will get you a list of all of the indexes in a table.

    sys.key_constraints will get you a list of all of the primary key and unique constraints, and what...

  • RE: Get data from a string

    PSB (1/25/2011)


    Sometimes I might have this

    TRITONRL5000 LRL5114070400714 ...

  • RE: Sharing Code

    terry.lewis 52981 (1/25/2011)


    WayneS pretty much sums up my attitude. I've been the beneficiary of countless code samples found on many sites, and I try to give credit to the author(?),...

  • RE: Sharing Code

    TravisDBA (1/25/2011)


    WayneS (1/25/2011)


    Plagiarism - no, I won't allow it.

    Copying code and using it: I prefer that the code comments have a link to where it was found. But, most importantly......

Viewing 15 posts - 1,831 through 1,845 (of 5,590 total)