Forum Replies Created

Viewing 15 posts - 7,396 through 7,410 (of 13,876 total)

  • RE: DATEADD shortcut

    ScottPletcher (3/17/2016)


    Phil Parkin (3/16/2016)


    DATETIME is stored internally in SQL Server as the number of days since 1/1/1900 (the integer part) plus (I think) a decimal part representing the number of...

  • RE: Conditional column display

    Dynamic SQL is not necessarily required – "long-winded SQL" can avoid it. For example:

    DECLARE @Col varchar(10);

    SET @Col = 'Col1';

    --set @Col = 'Col2';

    IF Object_Id('tempdb..#Test','U') IS NOT NULL

    DROP TABLE #Test;

    CREATE TABLE #Test...

  • RE: SSIS package creation with txt file having multiple select statements

    manoj.kumar-1078069 (3/17/2016)


    The solution can be made generic and automated:-

    1) Keeping text file as source (1 column) Load it in a recordset destination using dataflow

    2) Loop over the record set and...

  • RE: DATEADD shortcut

    DATETIME is stored internally in SQL Server as the number of days since 1/1/1900 (the integer part) plus (I think) a decimal part representing the number of 300ths of a...

  • RE: SSIS 2008 SQLCommand Character Limit

    pjk_tgk (3/16/2016)


    The source tables reside on different servers. One server is AS400 (6 tables, many contain over 10 million records), one server is MySQL (one table). SQL Server 2008 is...

  • RE: Permission - start/stop sql agent jobs (only few jobs, not all)

    SQL!$@w$0ME (3/16/2016)


    What is the best way to provide access to run few sql agent jobs on an instance with out granting [SQLAgentOperator] role.

    Don't know about the *best* way, but one...

  • RE: Foreachloop continue inspite of server connectivity issues in SSIS package.

    sqlnewbie17 (3/15/2016)


    I have already built the package.It works fine as long as the servers exists.

    Lets say a server is not reachable for any reason.My foreachloop should skip that server and...

  • RE: SSIS flat file source columns change

    Not directly.

    But you can handle it with some code. Import every row as a single column and then send that through a Script Component to parse out the relevant columns.

  • RE: SSIS 2008 SQLCommand Character Limit

    If you are open to alternative ideas, have you considered creating a table of 'selected customer numbers', which can be repopulated every time the job runs?

    The table, or tables, would...

  • RE: Populating Surrogate Keys

    bsmith 63193 (3/15/2016)


    I am fairly new to BI and SSIS, but am currently working on putting together a data warehouse. I have read that using surrogate keys is a must...

  • RE: Unable to start SQLAgent - MSDB is Read-Only

    Have you run a DBCC CHECKDB on MSDB?

  • RE: Add two columns to make one total

    lkennedy76 (3/15/2016)


    I put the ISNULL back and got amounts back but I am at the same cross road, the second column (OrgAmount) is not adding up to one amount.

    I don't...

  • RE: Add two columns to make one total

    Jason-299789 (3/15/2016)


    Phil Parkin (3/15/2016)


    Jason-299789 (3/15/2016)


    @yb751

    The NULL will only be eradicated if there is a row with a non-Null value, in the same column.

    See the code below, when aggregating on Account....

  • RE: Are the posted questions getting worse?

    yb751 (3/15/2016)


    GilaMonster (3/15/2016)


    A sig that claims an MCSA and can't use SUM?

    You caught that too...makes you wonder if people are using other people's accounts. But why?

    Indeed. Why make such...

  • RE: Add two columns to make one total

    Jason-299789 (3/15/2016)


    @yb751

    The NULL will only be eradicated if there is a row with a non-Null value, in the same column.

    See the code below, when aggregating on Account.

    DECLARE @myTable TABLE...

Viewing 15 posts - 7,396 through 7,410 (of 13,876 total)