SSMS Pivot With Dynamic Columns

SSMS Pivot
I found this Microsoft article for creating crosstab-like queries in SSMS.
Is it possible, however, to create this same query if I do not know what the values for the columns will be?  Using their example for my problem, I will not know what the values in the "IN" criteria will be because my query would be for a
"rolling" 12 months (thus causing that IN criteria to change every month).
I've tried declaring variables to pull in the values, but since this will eventually go into a view, I don't think that I can use declared variables.
Any help would be appreciated.

One option is to build the entire query in dynamic SQL populating the column names from variables, then execute it.
Another option is to give the columns generic names, like how many months back each column is. Write a stored procedure to execute the query and populate a temporary table with the results. Then rename the columns in the temporary table and return the results.

Similar Messages

  • Importing From Flat File with Dynamic Columns

    HI
    I am using ssis 2008,i have folder in which I have Four(4) “.txt” files each file will have 2 columns(ID, NAME). I loaded 4
    files in one destination, but today I receive one more “.txt” file here we have 3 columns (ID, NAME, JOB) how can I get a message new column will receive in source. And how can I create in extra column in my destination table dynamically …please help me

    Hi Sasidhar,
    You need a Script Task to read the names and number of columns in the first row of the flat file each time and store it in a variable, then create a staging table dynamically based on this variable and modify the destination table definition if one ore more
    new columns need to be added, and then use the staging table to load the destination table. I am afraid there is no available working script for your scenario, and you need some .NET coding experience to achieve your goal. Here is an example you can refer
    to:
    http://www.citagus.com/citagus/blog/importing-from-flat-file-with-dynamic-columns/ 
    Regards,
    Mike Yin
    TechNet Community Support

  • Creating Query with dynamic columns to show results

    Hi experts,
    I need to know how to create a query with dynamic columns. Meaning, I don't want to create a query with fixed columns representing the 12 periods of the fiscal year to show me actuals as the fiscal year proceeds.
    For example, if I am currently in the middle of period 3 (March) of a fiscal year, when I execute the query, I need it to automatically only show me the 'Actuals' for periods 1 and 2, without seeing the columns from periods 3 to 12 showing blank.
    Then when I am in the middle period 5 (May) the query should ONLY show me the columns for periods 1 to 4 'Actuals', no results should be shown for periods 5 to 12 yet, and I don't want to even see blank columns for period 6 to 12.
    How do I define my columns, to achieve this.
    Maximum points will be awarded.
    Thanks Everyone.

    Hi Josh,
    I'm having a little difficuluty understanding what should be included in my restricted key figures.
    The time characteristics that I have available to use are:
    0FISCPER3 (posting period)
    0FISCYEAR (fiscal year), currently using SAP EXIT to default current fiscal year.
    0FISCVARNT (fiscal year variant).
    In addition, I have the following characteristics available to be used in the columns:
    Value type (10)
    version (currently I'm using variable for it)
    Currency type (020)
    Currency (USD).
    Can you explain what my restricted key figure should be based on and how it should look.
    I tried to create a restircted key figure using 0AMOUNT, and 0FISCPER3. For 0FISCPER3  I created a range from 1 to previous period (using SAP EXIT that supplied previous period).I also had value type, version, currency type, and currency included in that restricted key figure.Then when I tried to drag 0FISCPER3 under the restricted key figure once again, it wouldn't let me, probably because I've already used 0FISCPER3 in the restricted key figure.
    Please let me know if my explanation is not clear.
    Your step by step help would be great.
    Thanks
    Edited by: Ehab Mansour on Sep 23, 2008 2:40 PM

  • DataTable with dynamic columns

    Does somebody have an example of how to code a h:dataTable with dynamic columns? I have seen hints about how to do it in these two articles:
    http://forum.java.sun.com/thread.jspa?forumID=427&threadID=5218508
    http://forum.java.sun.com/thread.jspa?threadID=577589&messageID=2909047
    but a complete working example would be really helpful.
    I think the key is understanding the "binding" parameter to h:dataTable but I'm having a hard time understanding it. Thanks.

    I found it here:
    http://balusc.blogspot.com/2006/06/using-datatables.html#PopulateDatatable

  • Logic to upload file with dynamic columns

    hi
    in my requirement i hav given to add logic to upload file with dynamic columns so that this upload program can be reused.
    this way the program is flexible, irrespective of the number of columns in the file.
    can any one explain this?
    and let me know what actually i hav to do.

    Check the program and the dynamic column is in the col_pos internal table and in the routines get_structure onwards.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/scm/dynamic%2bstructures%2band%2bcomponents
    cheers
    Aveek

  • Difficult to achive the report layout with dynamic column names

    I have a report layout as below.
    So here the column names are dynamic.And each fixed row group has different calculations. I have a date parameter. If I select July 2013, then I need to show data from July 2012 to July 2013 with Columns(Jul-12, Aug-12...Jul-13). How to achive below layout
    with dynamic columns?

    Hi Sarayu_CM,
    According to your description, you want to filter the records of prior year based on only one parameter selection. Right?
    In this scenario, we can create two parameters. The first one is for user to select. The second parameter is based on the first parameter selection. We don't need to specify Available Values for the second parameter, but we should use expression to specify
    Default Values based on the first parameter selection. Use the expression below:
    =DateAdd("m",-12,FormatDateTime(Parameters!param1.Value))
    Then we just need to apply a filter on the matrix/dataset to get the records which the date is between values in these two parameters.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Pivot Table with Dynamic Columns and Headers

    Hello,
    I'm trying to pivot a table of data where the column headers will be dynamic.  While I know how to pivot the table to get what I want how will I be able to pick up the table column header from the Pivot to display in the report?
    For example:
    Unpivoted data is Employee Code, Branch Code, Problem Code, # of Problems.
    There is many records for a given Employee and Branch that I want to pivot so the Column headers are the Problem Codes and the data below is the SUM(num_problems) for that Problem.
    So the data may look like this for Tech Bob, Branch NY.
    Problem = LEAK, Num_problem = 5
    Problem = DAMAGE, Num_problem = 2
    Problem = OTHER, Num_problem = 3
    Which problem codes may appear is unknown but selecting the DISTINCT(problem) across all techs gives me the column headings to use.
    So if I pivot this data, I get this Row:
    Tech = Bob, Branch = NY, DAMAGE = 2, LEAK = 5, OTHER = 3
    So first can SSRS handle having dynamic columns?  Only Tech and Branch are known and the remaining columns are dynamic based on how many Problems they worked on.
    Second, how can I set the column heading in my Tablix to be the Problem Code?
    Sherry

    You just need to use a  matrix container
    Use EmployeeCode and BranchCode for row group
    ProblemCode as column group and SUM([No Of Problems]) as the data expression and it will generate the columns for you based on ProblemCode values automatically.
    See an example here
    Sample Matrix
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • PIVOT with multiple columns to add and multiple levels of grouping

    Hi friends,
    I got a table with the columns in the form of:
    CRITERIA_A,
    CRITERIA_B,
    CRITERIA_C,
    AMOUNT_A,
    AMOUNT_B,
    AMOUNT_C,
    AMOUNT_D
    Any way to design a pivot to present the table reflecting:
    Sums of Amount_A, Amount_B, Amount_C, Amount_D
    For Rows reflecting grouping levels on:
    Criteria_B, Criteria_C
    and Columns breakup for:
    Criteria_A?
    An example like:
    Criteria_A1
    Criteria_A2
    Criteria_A3
    Criteria_A4
    Row Labels
    Sum of Amount_A
    Sum of Amount_B
    Sum of Amount_C
    Sum of Amount_D
    Sum of Amount_A
    Sum of Amount_B
    Sum of Amount_C
    Sum of Amount_D
    Sum of Amount_A
    Sum of Amount_B
    Sum of Amount_C
    Sum of Amount_D
    Sum of Amount_A
    Criteria_B3
    94
    107
    36
    127
    84
    132
    41
    176
    24
    16
    67
    29
    38
    Criteria_C1
    24
    25
    5
    49
    14
    66
    5
    49
    24
    16
    67
    29
    Criteria_C2
    70
    82
    31
    78
    38
    Criteria_C3
    38
    41
    31
    78
    Criteria_C4
    32
    25
    5
    49
    Criteria_B1
    56
    142
    78
    26
    32
    25
    67
    8
    24
    Criteria_C2
    24
    66
    26
    8
    32
    25
    67
    8
    Criteria_C3
    32
    76
    52
    18
    Criteria_C4
    24
    Criteria_B2
    162
    309
    264
    81
    132
    230
    155
    124
    14
    25
    52
    8
    38
    Criteria_C1
    38
    76
    26
    8
    62
    98
    98
    66
    14
    25
    52
    8
    38
    Criteria_C2
    86
    157
    186
    44
    70
    132
    57
    58
    Criteria_C3
    38
    76
    52
    29
    Criteria_B4
    100
    148
    130
    116
    56
    142
    93
    57
    46
    Criteria_C1
    24
    66
    67
    49
    32
    Criteria_C2
    32
    76
    26
    8
    14
    Criteria_C3
    76
    82
    78
    67
    Criteria_C4
    24
    66
    52
    49
    Grand Total
    312
    558
    378
    234
    348
    535
    393
    424
    94
    183
    212
    94
    146
    Thanx in advance, Best Regards, Faraz A Qureshi

    Sounds like this to me if in T-SQL query
    (best guess based on what you posted)
    SELECT
    CRITERIA_B,
    CRITERIA_C,
    SUM(CASE WHEN CRITERIA_A = 'Critera_A1' THEN AMOUNT_A ELSE 0 END) AS CRITERIA_A1_AMOUNT_A,
    SUM(CASE WHEN CRITERIA_A = 'Critera_A1' THEN AMOUNT_B ELSE 0 END) AS CRITERIA_A1_AMOUNT_B,
    SUM(CASE WHEN CRITERIA_A = 'Critera_A1' THEN AMOUNT_C ELSE 0 END) AS CRITERIA_A1_AMOUNT_C,
    SUM(CASE WHEN CRITERIA_A = 'Critera_A2' THEN AMOUNT_A ELSE 0 END) AS CRITERIA_A2_AMOUNT_A,
    SUM(CASE WHEN CRITERIA_A = 'Critera_A2' THEN AMOUNT_B ELSE 0 END) AS CRITERIA_A2_AMOUNT_B,
    SUM(CASE WHEN CRITERIA_A = 'Critera_A2' THEN AMOUNT_C ELSE 0 END) AS CRITERIA_A2_AMOUNT_C,
    SUM(CASE WHEN CRITERIA_A = 'Critera_AN' THEN AMOUNT_A ELSE 0 END) AS CRITERIA_AN_AMOUNT_A,
    SUM(CASE WHEN CRITERIA_A = 'Critera_AN' THEN AMOUNT_B ELSE 0 END) AS CRITERIA_AN_AMOUNT_B,
    SUM(CASE WHEN CRITERIA_A = 'Critera_AN' THEN AMOUNT_C ELSE 0 END) AS CRITERIA_AN_AMOUNT_C,
    FROM Table
    GROUP BY CRITERIA_B,
    CRITERIA_C
    to make it dynamic see
    http://beyondrelational.com/modules/2/blogs/70/posts/10791/dynamic-crosstab-with-multiple-pivot-columns.aspx
    However it would be much easier to build this in SSRS reports using matrix if you can use it.
    In that case just bring data as is
    then add a matrix to report
    Add column grouping on Criteria A and Row grouping on Criteria B and then Criteria C .
    In data portion add three columns with expressions as
    =SUM(Fields!Amount_A.Value)
    =SUM(Fields!Amount_B.Value)
    =SUM(Fields!Amount_C.Value)
    then you will get exact format  what you're asking for
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • DataGrid with dynamic columns & renderers

    I'm developing using Flash Builder 4 & Flex SDK 4.1.
    I need to manage very dynamic DataGrid components and keep their definitions, which are all part of a complex item renderer of an Offers list.
    The objects structure is simplified as follows -
    Data: Model --> Offers ArrayCollection --> Offer VO --> DataGrid data ArrayCollection & DataGrid columns Array
    View: List --> Offer Item Renderer --> DataGrid
    1. Since the DataGrid's columns property accepts only an Array (not ArrayCollection), it seems like Data Binding for defining the columns is very problematic.
    I tried to bind it to the source property of an ArrayCollection that would keep my columns definitions, but it didn't really work (mainly header display bugs).
    What is the recommended way to keep the dynamic columns definition of a DataGrid?
    2. Each column can have a set of dynamic properties, so I created a "mutant" - Column VO that extends DataGridColumn and got a dynamic properties ArrayCollection on it.
    The columns got a custom header renderer that includes an icon when there are properties.
    The header renderers got 4 main states (NotSelectedWithProperties, SelectedWithProperties, NotSelectedWithoutProperties & SelectedWithoutProperties).
    However, the header renderer area seems a bit buggy when maintaning dynamic columns.
    Any thoughts on the subject?
    3. Anyway, I ended up recreating the DataGrid's columns Array very often (copying the columns definition on the offer's item renderer's dataChange event handler).
    Note that the dynamic properties can be edited when the column is selected and I copy their values from the view back to the model when entering the state NotSelectedWithProperties.
    This feels way too complicated and I really try to keep it simple, inspite of the required complexity.
    Does anyone have better ideas?
    4. In some cases the column's item renderer should also be modified into another DataGrid (grid-in-grid).
    I used the MXDataGridItemRenderer with a DataGrid and included an ArrayCollection for the "newValue" returned by the editor.
    (I use RendererIsEditor=true and on updateComplete populate that variable with the DataGrid's dataProvider contents)
    When needed, I loop though the data objects of the parent DataGrid and populate the related field with an ArrayCollection of key-value objects that are displayed on the internal DataGrid.
    After adding this feature I encounter very strange bugs -
    a. After editing the grid-in-grid values and changing the column's state (selecting & deselecting), I get the following exception:
    ArgumentError. Error #2025: The supplied DisplayObject must be a child of the caller.
    at flash.display::DisplayObjectContainer/setChildIndex()
    at mx.core::UIComponent/setChildIndex().......6993....
    All I could find about this is that it might be related to some context error or something, but I'm really stuck on this one.
    b. Sometimes another column might copy value from one row to another, running over the previous value.
    I'm not sure exactly what sequence of actions causes this behavior, but it's related to that itemRenderer for sure.
    c. Switching places with a column that uses the grid item renderer (headerShift) causes a stak overflow of StyleManager that tried to get style from the DataGridItemRenderer. This one I just found out, but couldn't reproduce a second time... strange!
    I'm pretty sure this caused another problem that I don't remember at the moment.
    The bottom line is that there got to be a better way to implement this feature within this already-complicated environment.
    Maybe I'm doing something very wrong here...
    Please advice and thanks for reading all this.

    Update on item 4a -
    This was a major issue (the main reason for opening this thread really) and I managed to resolve it!
    As part of my application, I override the default DataGrid behavior for column selection (headerRelease event).
    Instead of sorting, I change the column's header looks and define it as Selected (for showing its dynamic properties and enable its deletion).
    At first I did this by setting styles, but the look didn't refresh unless I created a new instance of the header renderer.
    Later I changed thi behavior to work with states, but I left the new header renderer instance creation commands and those lines created all the mess!
    Conclusion -
    If you define a custom header renderer for your datagrid column and then a custom item renderer, don't create a new instance of your header renderer!
    It would still be nice to get some response for the other issues I raised.
    Thanks and have a nice week.

  • Problem with dynamic column in SBWP

    Hi Friends,
    In SWL1 I have created two attributes with header as "CANCELLED" and " DESCRIPTION" for a particular task.But my SBWP is still showing columns as "Dynamic column" for the workitems of that task.
    Please help me on this.
    Thanks.
    Dilip

    Hi Dilip,
    The column headings will only appear in the task-specific view. In other words, by default the headers will be generic because you can have mixed tasks in the worklist, and column 1 can be a date for one task and a company name for another.
    The user needs to expand the tree on the left hand side and navigate to the "Approve Purchase Order" (or whatever) node to show only items of that task, then column headers should show up.
    Regards,
    Mike

  • Problem with dynamic columns in smartforms.

    Dear SDN Experts,
    I have a requirement in smartforms for dynamic columns.
    i have used template with 10 columns, So from these 10 columns,Columns may vary monthly MIN 2 to MAX 10 depending on
    readings with them  for that month.
    i cannot fix column headings also,Because headings also changes dynamically.
    So Problem is if there is no data in columns,Columns is displayng empty.
    For EX: In this month i have 2 columns data remaining all columns is displaying empty boxes.
    Please suggest me a solution  is this posible in smartforms if i use table also.
    <removed by moderator>
    Regrds,
    MNR
    Edited by: Thomas Zloch on Sep 11, 2011 3:50 PM

    Hi friend,
    See the link below it is having the solution of hiding the columns in smart forms
    Hide table columns in smart form?
    Create a table to display your values with 12 col and hide the columns based on the idea provided in the link above.
    I think this will solve your issue if you still have queries please revert back to me i will help you.
    Thanks,
    Sri Hari

  • GoNav function with dynamic columns 10g

    Hi,
    I have a report with a dashboard prompt that dynamic change the report column. The result of this prompt is set into a presentation variable @{dimension}.
    Now I want to use the GoNav function on the column that dynamically changes.
    The data format for this column should be:
    @[html]"<font class="Nav" onclick=\"javaScript:GoNav(event, '/users/Administrator/Test', 'Department', 'Department_name' ,'"@"','_self');\">"@"".
    But this syntax only works for the column Department.Department_name. If the prompt on the dashboard is changed to another column the navigate link doesn't work anymore.
    Is there a solution to make this work so that also the column can be set dynamically for the navigation?

    I have a report with a dashboard prompt that dynamic change the report column. The result of this prompt is set into a presentation variable @{dimension}.
    Now I want to use the GoNav function on the column that dynamically changes.
    The data format for this column should be:
    @[html]"<font class="Nav" onclick=\"javaScript:GoNav(event, '/users/Administrator/Test', 'Department', 'Department_name' ,'"@"','_self');\">"@"".
    But this syntax only works for the column Department.Department_name. If the prompt on the dashboard is changed to another column the navigate link doesn't work anymore.
    As per your comments above you are using Column selector kind of functionality using a Dashboard prompt and in your GO nav you are taking column Department that's way it is working for that column only , if you change the Column in Dashboard prompt also still GO nav point to Department column only...make the GO NAV to take dynamic columns..
    I am not sure whether we can pass presentation variable .....with my knowledge its not..use GO URL instead of GO NAV

  • Form with dynamic Column Names

    Hello,
    I am using "Form with report on table" and I would like to make use of dynamic column names labels that are derived from another table (sql). I am stuck on how to do this, any advice?

    Hi FourEyes;
    Try using this.
    Select Col1, Col2, Col3
    into :P1_Field1, :P1_Field2, :P1_Field3
    from Your_Table
    Where (your conditions);

  • How to add inline TVF with dynamic columns from CRL Dynamic Pivot

    Hi I am trying to implement the code in the following article.
    SQLServerCentral Aricle
    Now, I've pushed the assembly to my DB and can see it there. 
    So far I have tried building an Inline TVF, as I assume this is how it would be used on the DB; however, I am receiving the following error on my code, I must
    be missing a step somewhere, as I've never done this before. I'm lost on how to implement this clr function on my db?
    Create Function script:
    CREATE FUNCTION clrDynamicPivot
    @query nvarchar(4000),
    @pivotColumn nvarchar(4000),
    @selectCols nvarchar(4000),
    @aggCols nvarchar(4000),
    @orderBy nvarchar(4000)
    RETURNS TABLE
    AS
    return
    (external NAME CLRfunctions.RIFunctions.clrDynamicPivot)
    GO
    Error:
    Msg 156, Level 15, State 1, Procedure clrDynamicPivot, Line 18
    Incorrect syntax near the keyword 'external'.
    public static void CreateTempTable(SqlString query)
                using (SqlConnection sqlconn = new SqlConnection("Context Connection=True"))
                    SqlCommand sqlCmd = sqlconn.CreateCommand();
                    sqlCmd.CommandText = query.ToString();
                    sqlconn.Open();
                    sqlCmd.ExecuteNonQuery();
     public static string GetPivotData(string pivotColumn)
                string stmt = string.Format("select distinct {0} from #temp", pivotColumn);
                string pivotCols = string.Empty;
                using (SqlConnection cn = new SqlConnection("Context Connection=True"))
                    SqlCommand cmd = cn.CreateCommand();
                    cmd.CommandText = stmt;
                    cn.Open();
                    using (SqlDataReader dr = cmd.ExecuteReader())
                        while (dr.Read())
                            if (dr.GetFieldType(0) == typeof(System.Int32))
                                pivotCols += "[" + dr.GetInt32(0) + "],";
                            if (dr.GetFieldType(0) == typeof(System.Decimal))
                                pivotCols += "[" + dr.GetDecimal(0) + "],";
                            if (dr.GetFieldType(0) == typeof(System.String))
                                pivotCols += "[" + dr.GetString(0) + "],";
                return pivotCols.Remove(pivotCols.Length - 1);
    [Microsoft.SqlServer.Server.SqlProcedure(Name="clrDynamicPivot")]
    public static void clrDynamicPivot(SqlString query, SqlString pivotColumn, SqlString selectCols, SqlString aggCols, SqlString orderBy)
        string stmt = string.Empty;
        try
           CreateTempTable(query);
           string pivot = GetPivotData(pivotColumn.ToString());
           stmt = string.Format("select * from ( select {0} from #temp ) as t pivot ( {1} for {2} in ( {3} )) as p {4}",
           selectCols.ToString(),
           aggCols.ToString(),
           pivotColumn.ToString(),
           pivot,
           orderBy.ToString());
           using (SqlConnection cn = new SqlConnection("Context Connection=True"))
              SqlCommand cmd = cn.CreateCommand();
              cmd.CommandText = stmt;
              cn.Open();
              SqlDataReader reader = cmd.ExecuteReader();
              SqlContext.Pipe.Send(reader);
         catch (Exception ex)
           throw new Exception(string.Format("clrDynamicPivot Error stmt:{0}", stmt), ex);
    DECLARE @query nvarchar(4000)
    DECLARE @pivotColumn nvarchar(4000)
    DECLARE @selectCols nvarchar(4000)
    DECLARE @aggCols nvarchar(4000)
    DECLARE @orderBy nvarchar(4000)
    set @query = 'select PayMethod, datepart(hh, OrderDate) as OrderHour, ProductTotal into #temp from dbo.Orders (nolock) where OrderDate between getdate()-1 and getdate() and division = ''15'''
    set @pivotColumn = 'PayMethod'
    set @selectCols = 'PayMethod, OrderHour, ProductTotal'
    set @aggCols = 'sum(ProductTotal)'
    set @orderBy = ''
    EXECUTE dbo.clrDynamicPivot
    @query
    ,@pivotColumn
    ,@selectCols
    ,@aggCols
    ,@orderBy
    GO

    You can't build an inline TVF in SQLCLR, only (the equivalent of) multi-statement TVFs and scalar functions. And the SQLCLR code for multi-statement TVFs must be coded with a specific pattern, see
    https://msdn.microsoft.com/en-us/library/ms131103.aspx.
    Looking at the example you reference, it was implemented as a SQLCLR stored procedure.
    Cheers, Bob
      

  • How to call a SP with dynamic columns and output results into a .csv file via SSIS

    hi Folks, I have a challenging question here. I've created a SP called dbo.ResultsWithDynamicColumns and take one parameter of CONVERT(DATE,GETDATE()), the uniqueness of this SP is that the result does not have fixed columns as it's based on sales from previous
    days. For example, Previous day, customers have purchased 20 products but today , 30 products have been purchased.
    Right now, on SSMS, I am able to execute this SP when supplying  a parameter.  What I want to achieve here is to automate this process and send the result as a .csv file and SFTP to a server. 
    SFTP part is kinda easy as I can call WinSCP with proper script to handle it.  How to export the result of a dynamic SP to a .CSV file? 
    I've tried
    EXEC xp_cmdshell ' BCP " EXEC xxxx.[dbo].[ResultsWithDynamicColumns ]  @dateFrom = ''2014-01-21''"   queryout  "c:\path\xxxx.dat" -T -c'
    SSMS gives the following error as Error = [Microsoft][SQL Server Native Client 10.0]BCP host-files must contain at least one column
    any ideas?
    thanks
    Hui
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Hey Jakub, thanks and I did see the #temp table issue in our 2008R2.  I finally figured it out in a different way... I manage to modify this dynamic SP to output results into
    a physical table. This table will be dropped and recreated everytime when SP gets executed... After that, I used a SSIS pkg to output this table
    to a file destination which is .csv.  
     The downside is that if this table structure ever gets changed, this SSIS pkg will fail or not fully reflecting the whole table. However, this won't happen often
    and I can live with that at this moment. 
    Thanks
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

Maybe you are looking for

  • Cannot upgrade reader to 10-1-3

    I have vista sp2 - My reader X (10-1-2) started crashing when i tried to open a document.  I tried to update reader to 10-1-3.  After several failed attempts, I saved the file and ran it from the folder.  It finished 100%, but then failed giving me t

  • Chimes on wake up

    I just installed a new Thunderbolt display to go along with my rMBP. Now, when the monitor (either the Thunderbolt or retina) turns off after a period of non-use, the Mac makes a chime sound (same as new mail arriving in Outlook) at least once but us

  • ILA, How to qualify and trigger on a subset of signals?

    Hello Vivado ILA users, I am trying to verify a signal processing block that is too large to verify in simulation.  Instead, I am using Vivado ILA to capture the data and writing out the data using the "write_hw_ila_data" command.  Then I have a spec

  • I want to log into icloud

    I want to log into icloud using my new email address but it won't let me delete the old email address because it asks for a password to switch off find my i-phone. As this email address no longer exists as I have changed it on my laptop I have no pas

  • Parameter to show or not show data?

    I have created a parameter with two option YES & NO If the YES  option is selected then I would like to show records with the following ID's HSP_TRANSACTIONS.PROC_ID    IN  [173922,173902,173906,173910,173914,173918,173926,173930,213614,216311,217225