Forum Replies Created

Viewing 15 posts - 136 through 150 (of 901 total)

  • RE: Wrap a varchar field based on character count and spaces

    a Slight modification to use an inline Tally table and my own String for demos

    --===== Simulate a passed parameter

    DECLARE @Parameter VARCHAR(8000)

    SET @Parameter = 'this is a very long string just...

  • RE: CTE query - Long Load Time

    I would say that the fact the script in the CTE runs quickly doesn't mean that it will do the same when inside a CTE, especially where you have scalar...

  • RE: Help urgent please

    If you run this you can see the cause, all I've done is added an S column to show which query is causing the issue.

    DECLARE

    @MGR_NAME NVARCHAR(100)='Betts, Brian'

    ,@COUNTRY NVARCHAR(100)='US'

    ,@SEGMENT...

  • RE: Calling SSIS Package through Store Procedure

    Create a job that uses variables stored in a database, to configure the package then, simply write a script that updates the necessary variables, to the required values, and execute...

  • RE: Help with number / percentage format

    Phil Parkin (12/4/2014)


    Jason-299789 (12/4/2014)


    IN SQL server if you do a divide an Integer by an integer you get an integer, and a count will only ever produce an integer.

    to...

  • RE: Help with number / percentage format

    IN SQL server if you do a divide an Integer by an integer you get an integer, and a count will only ever produce an integer.

    to get round this...

  • RE: SQL Date Parameters not working

    True, I was just demonstrating why people sometimes forget to declare the length of the VARCHAR in a declare statement, because they are used to using the CONVERT/CAST method without...

  • RE: Please vote for the "built in Tally Table" function.

    Its not as if its that difficult to create a system view in the model DB that gets replicated to all new databases that are created.

    PS : Voted +1

  • RE: SQL Date Parameters not working

    Phil Parkin (12/2/2014)


    Jason-299789 (12/2/2014)


    MS don't make it easy for people from BOL

    When n is not specified in a data definition or variable declaration statement, the default length is 1. When...

  • RE: SQL Date Parameters not working

    MS don't make it easy for people from BOL

    When n is not specified in a data definition or variable declaration statement, the default length is 1. When n is not...

  • RE: SQL Query - Simple Question

    GilaMonster (12/1/2014)


    Jason-299789 (12/1/2014)


    This wont work in 2000, so you would have put the CTE as a 2 Correlated sub queries.

    Or maybe a temp table, since the Row_Number function doesn't exist...

  • RE: SQL Query - Simple Question

    Ok so if we assume that you are using SQL 2012 then you have the new Lead and LAG window functions

    this calculates the difference from the previous row.

    create table #temp_Octets...

  • RE: SQL Query - Simple Question

    I didn't read the op properly code posted below

  • RE: SSIS: Dynamically map metadata in a Data Flow Task

    aaron.reese (12/1/2014)


    I believe that all the standard components in ssis are .NET classes so you could always write your own c# or vb.net to generate packages but it would be...

  • RE: SSIS: Dynamically map metadata in a Data Flow Task

    Koen Verbeeck (12/1/2014)


    Jason-299789 (12/1/2014)


    aaron.reese (11/27/2014)

    Sorry to all for hijacking this thread, Koen, should be start a new one about BIML?

    Wouldnt it be better to have an article or Stairway series...

Viewing 15 posts - 136 through 150 (of 901 total)