Forum Replies Created

Viewing 15 posts - 4,171 through 4,185 (of 8,731 total)

  • RE: Need CTE query to find specific record

    This is a slightly different way. But it will also give different results depending on the data.

    Be sure to know what you want.

    WITH BASE_DATA AS

    (

    SELECT

    ...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Table locking while insert statement

    It depends.

    If you're inserting on a table, you might not want to read from it until you finish your insert, unless you don't want to use the inserted rows.

    If...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Painful datetime conversion

    Kristen-173977 (9/18/2015)


    Eirikur Eiriksson (9/18/2015)


    I've found the method I use for timing more accurate than the time statistics

    Ah ... 🙂 Not to dis Luis or anything, but when I ran...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Today's Random Word!

    Stuart Davies (9/18/2015)


    djj (9/18/2015)


    BL0B_EATER (9/18/2015)


    whereisSQL? (9/18/2015)


    Luis Cazares (9/18/2015)


    BL0B_EATER (9/18/2015)


    anthony.green (9/18/2015)


    BL0B_EATER (9/18/2015)


    Ed Wagner (9/18/2015)


    anthony.green (9/18/2015)


    Stuart Davies (9/18/2015)


    Eirikur Eiriksson (9/18/2015)


    SQLRNNR (9/17/2015)


    DTA

    distrust

    circumspect

    reckless

    Driving

    Fast

    Limit

    stop

    GO

    Green

    Hornet

    Sting

    Police

    Roxanne

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Best way to learn Data Warehousing Concepts?

    This post has good suggestions as well: http://www.sqlservercentral.com/Forums/FindPost1718291.aspx

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Best way to learn Data Warehousing Concepts?

    The main or basic book you should read to learn the concepts of data warehousing is: The Data Warehouse Toolkit[/url]

    It's a great book.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Today's Random Word!

    BL0B_EATER (9/18/2015)


    anthony.green (9/18/2015)


    BL0B_EATER (9/18/2015)


    Ed Wagner (9/18/2015)


    anthony.green (9/18/2015)


    Stuart Davies (9/18/2015)


    Eirikur Eiriksson (9/18/2015)


    SQLRNNR (9/17/2015)


    DTA

    distrust

    circumspect

    reckless

    Driving

    Fast

    Limit

    stop

    GO

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Query for Pivot

    You're welcome. Be sure to understand it and ask any questions that you might have.

    I added an additional row and column to show totals.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Query optimization

    How to Post Performance Problems[/url]

    By Gail Shaw

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Show sum in the last row

    You can use WITH ROLLUP, GROUPING SETS or other GROUP BY options.

    More info: https://technet.microsoft.com/en-us/library/bb522495(v=sql.105).aspx

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Query for Pivot

    The following article will show you how to work with dynamic pivots and cross tabs. http://www.sqlservercentral.com/articles/Crosstab/65048/

    I usually use a different method for concatenation than the one explained in the article....

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: SSIS Dynamic excel Load to SQL database

    You could use the Import/Export Wizard to dynamically create the package to handle all the sheets in the workbook and create the tables.

    What seems weird is that you mention different...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Variables that are not null put in TVP

    It's not to move away from selects and unions as those will still be of use. It's more about keeping it simpler.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Are the posted questions getting worse?

    Phil Parkin (9/17/2015)


    Steve Jones - SSC Editor (9/17/2015)


    Brandie Tarvin (9/17/2015)


    A few weeks back, we were talking about password managers. Someone mentioned LastPass and I've been looking into it. But the...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • RE: Variables that are not null put in TVP

    JKSQL (9/17/2015)


    INSERT INTO @Temp

    SELECT * FROM (SELECT @QuantityID as ID UNION

    SELECT @LengthID UNION

    SELECT @CostID) Temp

    WHERE id is not null

    Better idea than this?

    Using a table value constructor?

    INSERT INTO @Temp

    SELECT...

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2

Viewing 15 posts - 4,171 through 4,185 (of 8,731 total)