Strange - oledb data source preview shows results, but running results in 0 records

So I have this as a command of a OLEDB source, and the preview shows a sample result set.  Mappings are correct, builds with no errors etc.  Works fine in SSMS. However, when I run this Dataflow task in SSIS, I get NOTHING.  Huh?
Here is the query
DECLARE @StartTime datetime,@EndTime DATETIME, @ExecTimeMS INT
SELECT @StartTime=GETDATE()
DECLARE @t TABLE (tval NVARCHAR(30) )
INSERT INTO @t SELECT TOP 10 t.control_number FROM MyBigTable t
SELECT @EndTime=GETDATE()
SELECT @ExecTimeMS = DATEDIFF(ms,@StartTime,@EndTime) 
SELECT CAST('Top10LogBigTSelect' as NVARCHAR(100)) as query_name,@ExecTimeMS as exec_time_ms, GETDATE() as record_date

Found my answer here
http://saysmymind.wordpress.com/2013/04/11/ole-db-data-source-in-ssis-returning-no-records-when-using-table-variable/
The catch was to use NOCOUNT

Similar Messages

  • Data source preview data

    Hi Friends,
    I am loading data from oracle db connect to bi , i generated data source in oracle db,
    but while seeing data source preview data , i am unable to find any preview.
    In status bar it is giving  this error, ' unknown error happen while loading'.
    And i created transformation btn data source and info cube and loaded data but it is giving error ' extraction has filed and if i go to error messages  it is showing below messages .
    message : rsds_access027,message rsm340.
    pls can any one help me.
    Thanks in advance,
    regards,
    ramnaresh.

    I think the data source has been opened by others you can make sure that the data file has been in closed state.

  • Alert subscription data source module encountered errors while running

    Hello All,
    After I configured subscriptions with many monitors, error alerts appear at SCOM(scom 2012 r2) console in active alert page.
    I googled it and found some topics at TechNet but I could not figure it out. Alert description is shown below
    Alert subscription data source module encountered errors while running: Alert subscription data source module was unable to find alerts that match the subscription because of database errors.
    The following error(s) were encountered:
    Exception Message: The incoming request has too many parameters. The server supports a maximum of 2100 parameters. Reduce the number of parameters and resend the request.
    One or more workflows were affected by this.
    Workflow name: Subscriptioneaa7b044_b3c1_4198_be71_ffaaf66a163f
    Instance name: Alert Notification Subscription Server
    Instance ID: {E07E3FAB-53BC-BC14-1634-5A6E949F9230}
    Management group: STS
     Any idea?
    Thanks

    As I understand, this issue occurs and remains after I configure a subscription with too many rules and/or monitors( i.e al available rule and/or monitor of a management pack).
    After I had deleted those subscription with many rule/monitor, this issue was resolved. 
    Any idea?

  • Alert subscription data source module encountered errors while running: Alert subscription data source module was unable to find alerts that match the subscription because of database errors.

    Hi,    We recently started getting these errors a couple times a day.   There are 12 of them in total.     We also have exactly 12 subscriptions.   Does this indicate some db issue causing all of these
    to fail?
    Alert subscription data source module encountered errors while running: Alert subscription data source module was unable to find alerts that match the subscription because of database errors.
    The following error(s) were encountered:
    Exception Message: ExecuteScalar requires an open and available Connection. The connection's current state is closed.
    One or more workflows were affected by this.
    Workflow name: Subscription8b108a3e_4e3d_4fd0_b67e_cbfc21cd10b8
    Instance name: Alert Notification Subscription Server
    Instance ID: {E07E3FAB-53BC-BC14-1634-5A6E949F9230}
    Management group: A Company Management Group
    Thanks Lance

    Hi,
    Do you have hotfixes applied?
    http://blogs.technet.com/kevinholman/archive/2009/01/27/which-hotfixes-should-i-apply.aspx
    Also, I found a relevant thread for your reference.
    Alert subscription data source module encountered errors while running</u1:p>
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/50557249-7f97-4b67-9729-f7088202385b/alert-subscription-data-source-module-encountered-errors-while-running?forum=operationsmanagergeneral</u1:p>
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • ODBC data sources not showing up in datasource selection list

    when I go to change datasources for a report, newly created ODBC connections do not show up. I noticed they are all in the odbc.ini file and listed under ODBC in the machine directory/software folder in the registry but not under the current user/software/odbc registry folder. Where does Business Objects/Crystal reports cache this information?

    OK, then how do I set up a connection pool for a SQL Server database? At some point, I have to configure a connection pool. In the Call Interface dropdown, isn't ODBC the proper choice? Then, in the Data Source name dropdown, I should get some entries, right?

  • Oracle Data Source not showing proposal fields

    Hi, I need to create a DB Connect - Oracle Data Source. I go to the table / view matchcode, and I find the view we created for this data source, and in Proposal it doesn't bring any fields. I press the refresh button, and nothing happens.
    Any idea what this could be??
    Tanks in Advance
    Manuel.-

    HI
    Change the data in the Flat file for Date field in the format YYYYMMDD. Then try viewing the Preview.
    If it still shows error message like your system format does not match, Check the System date format, you can check in SU01-->defaults tab, change the data in the flat file with your system format and check.
    Hope this helps,
    Aparna Duvvuri

  • Change Data Source not showing tables (in the taget drop down) that begin with "SYSTEM"

    I am trying to change the data source to a database table that is named someschema.SYSTEM_XXX_XXX but none of my tables that are named SYSTEM_.......  are in the combo box list of the taget tables (Change Data Source) dialog.   I have tried this on several database with the same results.   Are you filtering out tables that begin with system ?

    <p>This issue has been resolved in the latest hot fix for CR4E.   You can download the latest version of the hot fix by   following these steps:</p> <ol><li>Go under the <strong>Help</strong> menu</li><li>Select the option <strong>Software Updates -> Manage Configuration</strong></li><li>Expand the tree until you see <strong>Crystal Reports for Eclipse 1.0.1.v671</strong> (or similar)</li><li>Highlight this entry and select the <strong>Scan for Updates</strong> option in the window on the right.</li></ol> <p>This will allow you to update to the latest version which is   currently <strong>1.0.2.v795</strong> </p> <p>Please let me know if this fix does not resolve the issue   outlined in this thread. </p><p> </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) <br /><br /> <a href="http://www.eclipseplugincentral.com/Web_Links-index-req-ratelink-lid-639.html">Rate this plugin @ Eclipse Plugin Central</a>          </p>

  • Data source activated in RSA5 but error in RSA3

    Hi,
      I have activated data source 0CRM_OPPT_H in transaction RSA5 in our CRM system and can view this in RSA6. However when I run the extractor checker RSA3, the system generates error ( "Errors occurred during the extraction    Message no. RJ012").
      Upon debugging I found that this is caused by not having entry in table SMOXHEAD_S for this data source.
    Also when I go to transaction BWA1 I am not able to display this data source. Other master data sources that I activated earlier are working fine. Its the transaction data source 0CRM_OPPT_H or 0CRM_OPPT_I that are having issue.
      Please let me know any other steps that I may not be doing after activating the Business content data source in CRM system using transaction RSA5.
      Thanks
    Arunava

    Bhanu,
      Thanks again for your super fast reply. This really solved my issue.
      However for may days I have been trying to understand this BWA transaction ( BWA1 and BWA5) and figured out some fact( Like BWA5 puts the same entry of smxhead table to snmxhead_s table to make the whole thing work, Also we can extend the mapping in the BWA1 to include additional custom object with out the badi coding( is it possible?) .
      But this area still is a mystery and I would like to have a comprehensive article on this adapter layer and BDOC relationship. Is this possible for you to help here.
    I would really really appreciate.
    Thanks
    Arunava

  • All pics loaded onto iphoto or preview show up but won't let me edit. Thanks, Woody

    Hey everyone,
    Pics loaded into iphoto or preview show up in the programs and my desktp, but won't let me edit.
    Thanks, Woody

    How are you trying to edit?
    There are 9 different versions of iPhoto and they run on 9 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • Capture and Save SQL Command that Ran in OLEDB Data Source

    Hi,
    My company is using SSIS to occasionally generate a file that is then being loaded into a transactional system.  At this point, things are not fully automated; the SQL query that is used for the data source is manually altered, SSIS is run, and the
    file is uploaded to the other system.  Every time the SSIS package runs, a log entry is created with summary information.
    I'm wondering: is it possible to capture the SQL command that runs in the data source, and save it with the log entry as part of the package run?  This would provide an accurate historical record of what filters were applied to the data that was loaded
    to the transactional system.
    Any thoughts/comments would be appreciated.

    Hello Smith,
    What I understood from your question that you want to know the query which is running in SSIS Data Source and same you want to insert into a table.
    Below query gives you what all queries are currently running on a specified DB:
    USE [SAMPLE_DB_NAME]
    SELECT  distinct getdate(), command, s.text, start_time, percent_complete, CAST(((DATEDIFF(s, start_time, GetDate())) / 3600) AS int) AS Long, CAST((DATEDIFF(s, start_time, GetDate()) % 3600) / 60 AS int) as LongMin, CAST(((DATEDIFF(s, 
                          start_time, GetDate())) / 3600) AS varchar) + ' hour(s), ' + CAST((DATEDIFF(s, start_time, GetDate()) % 3600) / 60 AS varchar) + 'min, ' + CAST((DATEDIFF(s,
                           start_time, GetDate()) % 60) AS varchar) + ' sec' AS running_time, CAST((estimated_completion_time / 3600000) AS varchar) 
                          + ' hour(s), ' + CAST((estimated_completion_time % 3600000) / 60000 AS varchar) + 'min, ' + CAST((estimated_completion_time % 60000) 
                          / 1000 AS varchar) + ' sec' AS est_time_to_go, dateadd(second, estimated_completion_time / 1000, getdate()) AS est_completion_time, blocking_session_id, r.status, last_wait_type,
    r.open_transaction_count, r.session_id, client_net_address, 
     CONVERT(VARCHAR(20), sp.host_name) as hostname, 
     CASE WHEN program_name = '.Net SqlClient Data Provider                      ' THEN 'Reporting Service'
     ELSE CONVERT(VARCHAR(50), program_name) 
     END as program_name,
     sp.login_name as name
    FROM         sys.dm_exec_requests r CROSS APPLY sys.dm_exec_sql_text(r.sql_handle) s INNER JOIN
                          sys.sysusers u ON r.user_id = u.uid
    INNER JOIN sys.dm_exec_connections dec ON dec.session_id = r.session_id INNER JOIN SYS.dm_exec_sessions sp on r.session_id = sp.session_id
    WHERE text not like 'SELECT     getdate(), command, s.text, start_time, percent_complete%'
    AND text not like '%sys.sp_trace_getdata%'
    AND text != 'sp_server_diagnostics'
    ORDER BY start_time
    You can schedule this query to run in 2-3 second and can capture the T-SQL and insert into a table.
    Thanks Shiven:) If Answer is Helpful, Please Vote

  • OBIEE - Filter SQL Expression Not Working At All - Shows SQL But Not Result

    Im at my wits end for this
    I have a report where I am using a filter with a simple SQL expression
    cast ( timestampadd(SQL_TSI_YEAR, -1, Cast(Cast(DATE '@{pv_as_of_date}{2013-04-01}' AS CHAR) AS TIMESTAMP) ) as DATE)So an end user may input a date and this is passed into the filter via a variable
    pv_as_of_date
    This is defaulted to 2013-04-01
    I want to subtract 1 year to make the end result
    2012-04-01
    When I run the report I am seeing two issues
    1) When displaying the filter at the bottom, I see the full SQL code. Shouldnt this show the date returned? In this case shouldnt the filter show 2012-04-01?
    2) The filter does not even work which is my bigger problem
    I tested the above code in a column and I KNOW that the date is being returned as expected
    But when I use the same SQL code in the filter then it doesnt work
    Am I missing some special button some where to enable SQL expressions?
    Any help immensely appreciated

    Ok
    So I was able to find an option "Protect Filter" that seemed to make a bit of difference and I got the date part working after using the above corrected code (thanks)
    But now I want to add in the rest of my filter conditions and it does not seem to be liking it
    Im trying to use this filter
    'Acad ' || cast ( cast (substring ('@{pv_acad_year_desc}{Acad 2013/14}' , 6, 4) as integer) - 1 as char(4)) || '/' || cast ( cast (substring ('@{pv_acad_year_desc}{Acad 2013/14}' , 11, 2) as integer) - 1 as char(2))Im expecting the output to be in this case
    Acad 2012/2013
    When I test the above code in a column it works just fine, its just again in the filter that it isnt working

  • Reg: Infotype 0015 data is not showing in payroll run

    Hi All,
    I have an issue as below:
    I have an employee  where IT 0001 Contract field is: Hourly paid employee is maintained,
    and IT - Wage(Basic salary - hourly) amount 100 SD.
    When i maintain custom wage in IT and in Number/units field as 5 HOURS.
    Now when i run payroll  and check in CRT Table, system has to show the amount of hours maintained in IT but it is showing only hours.
    Calculation has to happen as per below
    Based on IT 0001 Contract field as hourly paid employee and also IT 0008 Basic salary- Hourly wage amount, system has to multiply hours maintained in IT and show the amount.
    Wage amount  DESIGNED * 5 hours = 500 SD , should be shown under amount column.
    Please advise me why amount is not showing in CRT Table.
    Regards,
    sajith

    V_512w_D - valuation basis is 100%
    PCR
    Rule   ESGPCR VaKey    Operation
    ZZ11      *            VWTCL 76 
    ZZ11      *   *        VAKEYPAYTY
    ZZ11      *   * *      GCY ZX11 
    ZX11      *            AMT= BETRG
    ZX11      *            NUM= ANZHL
    ZX11      *            VAKEYZEINH
    ZX11      *   ***      VWTCL 47 
    ZX11      *   *** *    OPIND NA 
    ZX11      *   *** *    ADDWT *
    ZZ11 Additional payments/deductions PC76    
          " VWTCL 76   Processing class         
              " VAKEYPAYTY Payroll Type         
                    GCY ZX11   With exact w.types
                  A                             
                  B                             
            " 1                                 
              " VAKEYPAYTY Payroll Type         
                " A                             
                    GCY RX11   With exact w.types
                  B                             
            " 2                                 
              " VAKEYPAYTY Payroll Type         
                    GCY RX11   With exact w.types
                " A                             
                    GCY RX11   With exact w.types
                  B                             
            " 3                                 
              " VAKEYPAYTY Payroll Type         
                    GCY RX11   With exact w.types
                " A                             
                    GCY RX11   With exact w.types
                " B                             
                    GCY RX11   With exact w.types
    ZX11 Additional payments/deductions PC47          
            AMT= BETRG Set                            
            NUM= ANZHL Set                            
          " VAKEYZEINH Time unit in v.key             
              " VWTCL 47   Processing class           
                    OPIND NA   Operation indicator    
                    ADDWT *    OT   Output table      
                " A                                   
                    OPIND NA   Operation indicator    
                    ADDWT *    OT   Output table      
                  " R51P1?14N  Rec.exists for ind?    
                    " X                               
                        R51P1=14N  Read record for ind.
                        ZERO= RN   AmtNumRteTime = 0  
                        ADDWT *    OT   Output table  
                " Q                                   
                    ELIMI *    Elim.time period ID    
                    ADDWTE*    RT   Results table     
                    ADDWT&MY10 VAR  Variable table    
            " 012                                     
              " VWTCL 47   Processing class           
                    OPIND N    Operation indicator    
                    ELIMI 123  Elim.time period ID    
                    ADDWT *    OT   Output table      
      " 3                                             
          " VAKEYZEINH Time unit in v.key             
    ZX11 Additional payments/deductions PC47          
            AMT= BETRG Set                            
            NUM= ANZHL Set                            
          " VAKEYZEINH Time unit in v.key             
              " VWTCL 47   Processing class           
                    OPIND NA   Operation indicator    
                    ADDWT *    OT   Output table      
                " A                                   
                    OPIND NA   Operation indicator    
                    ADDWT *    OT   Output table      
                  " R51P1?14N  Rec.exists for ind?    
                    " X                               
                        R51P1=14N  Read record for ind.
                        ZERO= RN   AmtNumRteTime = 0  
                        ADDWT *    OT   Output table  
                " Q                                   
                    ELIMI *    Elim.time period ID    
                    ADDWTE*    RT   Results table     
                    ADDWT&MY10 VAR  Variable table    
            " 012                                     
              " VWTCL 47   Processing class           
                    OPIND N    Operation indicator    
                    ELIMI 123  Elim.time period ID    
                    ADDWT *    OT   Output table      
      " 3                                             
          " VAKEYZEINH Time unit in v.key             
    ZX11 Additional payments/deductions PC47          
            AMT= BETRG Set                            
            NUM= ANZHL Set                            
          " VAKEYZEINH Time unit in v.key             
              " VWTCL 47   Processing class           
                    OPIND NA   Operation indicator    
                    ADDWT *    OT   Output table      
                " A                                   
                    OPIND NA   Operation indicator    
                    ADDWT *    OT   Output table      
                  " R51P1?14N  Rec.exists for ind?    
                    " X                               
                        R51P1=14N  Read record for ind.
                        ZERO= RN   AmtNumRteTime = 0  
                        ADDWT *    OT   Output table  
                " Q                                   
                    ELIMI *    Elim.time period ID    
                    ADDWTE*    RT   Results table     
                    ADDWT&MY10 VAR  Variable table    
            " 012                                     
              " VWTCL 47   Processing class           
                    OPIND N    Operation indicator    
                    ELIMI 123  Elim.time period ID    
                    ADDWT *    OT   Output table      
      " 3                                             
          " VAKEYZEINH Time unit in v.key             
    " VWTCL 47   Processing class              
          OPIND      Operation indicator       
          ADDWT *    OT   Output table         
      " A                                      
          OPIND      Operation indicator       
          ADDWT *    OT   Output table         
        " R51P1?14N  Rec.exists for ind?       
          " X                                  
              R51P1=14N  Read record for ind.  
              ZERO= RN   AmtNumRteTime = 0     
              ADDWT *    OT   Output table     
      " Q                                      
          ELIMI *    Elim.time period ID       
          ADDWTE*    RT   Results table        
          ADDWT&MY10 VAR  Variable table

  • Prints with wrong font and drops letters. Preview shows font correctly.

    I'm having problems printing some pdfs in Leopard. The preview shows correctly but the resulting printout is in the wrong font and has missing letters. Specifically every time there are two 'f' in sequence they get left out.
    Printing the same files on Tiger or even (Sigh) Windows yield the correct result. I've tested this with 3 printers (OKI C5800, Canon iR5000 and Canon iR C2620N). All with the same result.
    The pdf in question were created with LaTeX.
    Has anybody experienced something similar? What could be wrong?
    I can provide the sample .pdf file if necessary.

    After upgrading to Leopard, I was having trouble with my Samsung printer (ML-2150). Samsung hasn't upgraded the driver since OS 10.3, and it doesn't seem likely that they will ever do it. I found that the Linux-Foundation has an open source driver, which is compatible with a lot of printers. I downloaded the three components, and my Samsung is working perfectly now.
    I would suggest that you give it a try, here is the link:
    http://www.linux-foundation.org/en/OpenPrinting/MacOSX/hpijs

  • Data source doesn't show porper data while flat file data loading

    Hi Experts,
    I am trying to load data from flat file for info object 0GL_ACCOUNT. I have created an application component and data source.
    My question is after loading text data in the corresponding data source, it shows only few characters of the actual data.
    For Ex. in my original data i have G/L account name "Comp Hardware Purchase" but after loading into the data source it shows only "Comp Hardwa".
    I want to show the whole name "Comp Hardware Purchase ".  I know there is some text length problem but i couldn't find it. What steps i need to follow?
    Please help.
    Full points will be given to the useful answers ****
    Thanks and Regards,
    Niranjan Chechani

    HI Niranjan,
    Go to your data source and check whether the field and infoobject are having the same lenght. If the infoobject lenght is less than your field lenght wihc is coming from Flat file then such issue occur.
    Search for your flatfile datasource and and doubel clik on the datasource and check the fileds tabs, there you will have the mapping or you can also check your Transfer or Update rules of  the target.
    Regards,
    Nanda.S

  • 5508 pair show "Down" as data sources for Netflow

    I've setup my 5508s to monitor and export netflow to Cisco Prime Infrastructure but no data populates in the expected tabs.  When I check Admin-> Data Sources they show up as "down", while other netflow exporters (ASA1000s I used to test) show as "up".  I verified in the WLC CLI that they are exporting flows.  Thoughts?
    WLC show flow exporter stat:
    Exporter-name: CiscoPrime
      Total Flows Sent: 69536
      Total Pkts Sent: 4021
      Total Pkts Dropped: 0
      Last Sent Time: Thu Aug 15 15:24:29 2013

    Hi Marcin,
    You are most welcome my friend I think the great NetPros in this thread
    offer some excellent tips and strategies for this plan as well as the restrictions
    you will encounter moving forward. You will likely want to make the 5508 the
    primary controller with an eye on moving away from the 4400 at some point
    due to it's EoL and inability to run the latest code versions.
    Cheers!
    Rob
    "Show a little faith, there's magic in the night" - Springsteen

Maybe you are looking for

  • Testing a secured Web Service (Basic -Username/Password)

    Hello,    I configured security for a custom web service using [this |https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e08627de-9816-2a10-02b7-cbd60f7e4b2c&overridelayout=true] . I configured section 3.2 Configuring Document Authentication    

  • How to load a SQL Server Image datatype into Oracle

    I am trying to use the follwing procedure to transfer image datatypes from SQL Server into Oracle: DECLARE    v_update_string   VARCHAR2 (200)       := 'select face from multiMax.dbo.CardHolderFaceTable where cardid = 246979';    v_result          VA

  • HP Pavilion 5500 not detecting any 5G Networks (Jan 2015) [Ralink RT5390R]

    I have resently been having trouble with slow internet. My Desktop PC has stopped working with my wired router and refuses to find my 5G network. My connection was getting average scores of 40 Mbps but now im only getting 3-5 Mbps while my phone and

  • Change pop up text in CHARM

    Hi, Can anyone tell me how to change the text that is displayed in the pop-up window in charm. Actually my requirement is to make sure that the developer after releasing the tasks in the remote system should save the correction. when he is navigating

  • BAPIRETURN  to  BAPIRET1 (or BAPIRET2) : Is it possible?

    hi, Is there anyway to match the old structure BAPIRETURN to the new structure BAPIRET1 (or BAPIRET2) ? Because in a side we have: BAPIRETURN-TYPE=Message Type (E,S,etc..) BAPIRETURN-CODE= Message Code (char5) BAPIRETURN-MESSAGE=Message Text  (comple