Forum Replies Created

Viewing 15 posts - 8,071 through 8,085 (of 8,753 total)

  • RE: Data distribution query

    Another version, similar to Ed's, this one uses CTEs to construct the ranges.

    😎

    USE tempdb;

    GO

    DECLARE @num AS TABLE (

    Id INT IDENTITY(1, 1)

    ,Price MONEY

    )

    DECLARE @range AS TABLE (

    Id INT IDENTITY(1, 1)

    ,Rng MONEY

    )

    INSERT...

  • RE: Just curious, what are your SQL pet peeves ?

    g.britton (6/6/2014)


    Eirikur Eiriksson (6/6/2014)


    Koen Verbeeck (6/6/2014)


    gbritton1 (6/6/2014)


    Koen Verbeeck (6/6/2014)


    TomThomson (6/6/2014)


    Just a couple of examples: A British colleague who held an A-level in math and a bachelor's in business swore...

  • RE: Migrating SSIS packages (2005 - 2008)

    SQLTougherGuy (6/6/2014)


    Hello,

    I am about to embark on a massive migration from SQL 2005 - 2008 R2. We have 200+ SSIS packages that were deployed as a file system on the...

  • RE: Just curious, what are your SQL pet peeves ?

    TomThomson (6/6/2014)


    Koen Verbeeck (6/6/2014)


    TomThomson (6/6/2014)


    Just a couple of examples: A British colleague who held an A-level in math and a bachelor's in business swore you could, in fact, divide...

  • RE: Find Customers Who Bought "A" and "B" But Not "C" (SQL Spackle)

    Thank you for this filler Jeff, good read as always, and amazing thread! Only ran your initial code, any thoughts on how to eliminate the second scan?

    😎

  • RE: Just curious, what are your SQL pet peeves ?

    Koen Verbeeck (6/6/2014)


    gbritton1 (6/6/2014)


    Koen Verbeeck (6/6/2014)


    TomThomson (6/6/2014)


    Just a couple of examples: A British colleague who held an A-level in math and a bachelor's in business swore you could, in...

  • RE: output identity values

    The Dixie Flatline (6/6/2014)


    Eirikur Eiriksson (6/6/2014)


    The Dixie Flatline (6/6/2014)


    That will work but it's pricey in performance compared to just adding the column.

    Agree on the costly part but exactly the same...

  • RE: output identity values

    The Dixie Flatline (6/6/2014)


    That will work but it's pricey in performance compared to just adding the column.

    Agree on the costly part but exactly the same work then would be needed...

  • RE: Need assistance with recursive query (XML)

    This is straight forward, the main pitfall is that the node value must either be typed (XSD) or referenced with text().

    😎

    USE tempdb;

    GO

    /* Create a table (variable) */

    DECLARE @XMLUPDATE TABLE

    (

    ...

  • RE: xp_cmdshell in stored procedure not the same result as cmd prompt

    dirk.dromgoole (5/20/2014)


    I have a stored procedure that uses xp_cmdshell to execute an executable. I made code changes to the executable and compiled a new build. The stored procedure...

  • RE: output identity values

    An even simpler solution is to grab the output into a table variable which then can be used to get the old-new values for the identity map table.

    😎

    DECLARE @INSVAL TABLE

    ...

  • RE: export in xml from a sql server table

    This should get you started, notice I changed the data type of the monetary value, float is not the appropriate type!

    😎

    USE tempdb;

    GO

    create table #prova

    ( Valuta varchar(2),

    Misura DECIMAL(18,5)

    )

    insert into #prova values...

  • RE: Just curious, what are your SQL pet peeves ?

    Luis Cazares (6/5/2014)


    thomashohner (6/5/2014)


    But how would you alias those continents?:hehe::hehe:

    ***Just Kidding

    I could alias them and join them. 😀

    SELECT *

    FROM NorthAmerica na

    JOIN SouthAmerica sa ON na.PanamaSouthBorder = sa.ColombiaNorthBorder

    JOIN Europe ...

  • RE: After upgrade to SQL 2012 (from 2008 R2 SP2) sys.master_files shows most log files with wrong name

    scotteb (6/4/2014)


    ok. I took a look at the T-SQL to attach and didn't see an option to specify the logical names, so I simply attached without the log file,...

  • RE: Sp & parameters

    ramana3327 (6/5/2014)


    Hi,

    I am still new to the SQL Server. So I want to know all your experiences.

    If you want send a report that the SP is taking this time and...

Viewing 15 posts - 8,071 through 8,085 (of 8,753 total)