Forum Replies Created

Viewing 15 posts - 6,706 through 6,720 (of 8,761 total)

  • RE: T-SQL Code Help

    Quick solution using aggregation to remove the null values

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    ;WITH SAMPLE_DATA(Advert,Network,Program) AS

    ( SELECT 'Acorn',NULL,NULL UNION ALL

    SELECT NULL,'AC',NULL UNION ALL

    SELECT NULL,NULL,'Adult'

    )

    SELECT

    MAX(SD.Advert...

  • RE: Rank duplicates, but only rows involved in duplicates

    An alternative solution which doesn't require any joining. It scales well for large sets but has a weakness of returning false positives although fairly unlikely with this type of data....

  • RE: How to count rows of a table in sys.tables

    Quick thought, sys.partitions is probably the best option as it does not require dynamic sql or depreciated backward compatibility objects.

    😎

  • RE: Are the posted questions getting worse?

    Ville-Pekka Vahteala (10/24/2014)


    Koen Verbeeck (10/24/2014)


    GilaMonster (10/24/2014)


    Koen Verbeeck (10/24/2014)


    And I thought we had a language problem in Belgium.

    At least you don't have 11 *official* languages.

    Nope, only 3 and that's apparently already...

  • RE: How to count rows of a table in sys.tables

    Cadavre (10/24/2014)


    Eirikur Eiriksson (10/23/2014)


    Quick solution, should get you passed this hurdle

    😎

    ; --terminator, not begininator 😛

    WITH LAST_TABLE AS

    (

    SELECT TOP(1)

    T.object_id

    ...

  • RE: Are the posted questions getting worse?

    Koen Verbeeck (10/24/2014)


    spaghettidba (10/23/2014)


    Jack Corbett (10/23/2014)


    spaghettidba (10/22/2014)


    Stefan Krzywicki (10/22/2014)


    Of course, regionalisms mean it could be called most anything.

    For example: In most of the USA, a blended milk and...

  • RE: How can I show "type" in XML using SQL Server?

    Meatloaf (10/23/2014)


    How is it possible to export this to a XML file? Do I need to use BCP and cmodify the code into a string?

    There are quite few ways,...

  • RE: How to count rows of a table in sys.tables

    Quick solution, should get you passed this hurdle

    😎

    ;WITH LAST_TABLE AS

    (

    SELECT TOP(1)

    T.object_id

    ,T.is_ms_shipped

    ...

  • RE: Finding procedures that use declared table variables

    Quick suggestion, search the sys.all_sql_modules definition

    😎

    SELECT

    OBJECT_NAME(MO.object_id) AS OBJ_NAME

    ,OBJECT_SCHEMA_NAME(MO.object_id) AS OBJ_SCHEMA

    ,MO.definition

    FROM sys.all_sql_modules MO

    WHERE MO.object_id > 0

    AND MO.definition LIKE '% TABLE...

  • RE: Masking (Deidentification)

    Quick example of a simple method, normally does the job but strictly speaking it is reversible although it would require a hash-table approach.

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @SAMPLE_DATA TABLE

    (

    ...

  • RE: Are the posted questions getting worse?

    xsevensinzx (10/22/2014)


    Jack Corbett (10/22/2014)


    BWFC (10/22/2014)


    We had 80 odd people at the show in September so a whole pig could well be worth it. I've just got to...

  • RE: DPM with native SQL Log backup

    Biank (10/21/2014)


    So, if I take SQL log backup separately...

    Out of curiosity, why would you want to do that?

    😎

  • RE: the database cannot be attached because an error occurred while loading the detach log

    rodrigo.carrasco.e (10/21/2014)


    I can not atachar database analysis services.

    "the database can not be attached Because an error occurred while loading the log detach"

    Any ideas, I have no backup. Please,...

  • RE: Detect / Determine data stored in a varbinary field

    Quick thought, many file formats have a signature or a magical number at the start of the file which is unique for that format. There are quit few resources available...

  • RE: Are the posted questions getting worse?

    Luis Cazares (10/21/2014)


    Eirikur Eiriksson (10/21/2014)


    Ed Wagner (10/21/2014)


    Luis Cazares (10/21/2014)


    Eirikur Eiriksson (10/21/2014)


    Ed Wagner (10/21/2014)


    Eirikur Eiriksson (10/21/2014)


    Luis Cazares (10/21/2014)


    Eirikur Eiriksson (10/21/2014)


    spaghettidba (10/21/2014)


    Ed Wagner (10/21/2014)


    Parma, Venice...these cities are making me think of authentic...

Viewing 15 posts - 6,706 through 6,720 (of 8,761 total)