Time datatype issue from SSIS

Hi All,
I have a SSIS pkg, I have
1. Sart_time (datetime datatype)
2. End_time (datetime datatype)
3. Run_time ( Time(0) datatype)
I am using the Run_time to get the difference of star & end time to calculate the time taken to complete the execution of pkg.
When I run the below query in Management Studio I am getting the desired result as below, however when ran through SSIS expression using Execute SQL Task to update this table, it is updating it to NULL, as I am having the same code in SSIS I was expecting
it give the the result.
select CAST(END_TIME - START_TIME AS TIME(0)) from Log_table
00:00:56
Regards
Neil

Hello,
Just as others post above, please try to use the DATEDIFF() function rather then minus operation. Please check the following statements:
SELECT CONVERT(time(0), DATEADD(ss, DATEDIFF(ss,Sart_time, End_time), 0))
Regards,
Fanny Liu
If you have any feedback on our support, please click here. 
Fanny Liu
TechNet Community Support

Similar Messages

  • I just restored my 13" MBP i5 at the apple store to the newest version of Lion after issues with a previous Time Machine backup from Snow Leopard- this time I created a new account and just ported files and folders, and now MS Office doesn't work. Help?

    I just restored my 13" MBP i5 at the apple store to the newest version of Lion after issues with a previous Time Machine backup from Snow Leopard- this time I created a new account and just ported files and folders, and now MS Office doesn't work.
    ^^ that's the main problem. Here's the full history.
    I bought a new 13" i5 MBP, early 2011 edition. I had an old white Macbook 2.14 ghz core2duo on Snow Leopard. I attempted to port over my time machine backup, but encountered problems in that my User was inaccessible from the new computer after the import finished, and I had to go in and change the root password, etc, and for some reason or another, I couldn't install any programs at all from that administrator's account. By "couldn't" I mean I could install them, but upon installation they would never boot. So, I took it to the apple store and did a clean install from the most up to date Lion OSX. Then, I created a brand new admin account, instead of trying to import the old one, and things seemed great. Then, I just imported my old files from the TM backup, but not any system settings, permissions, or user data. Just my Docs, pics, vids, apps, and itunes stuff.
    Here's where things get weird again. I imported this stuff under the name "old", but all of these folders have a red negative sign on them, marking them as restricted. So, from my main admin account, I cannot even peruse these folders. Since I didn't import user data, I can't sign in to the "old" account to change permissions. I already tried to change the permissions from system preferences, but that didn't change anything. And now, for whatever reason, of all the apps that were imported then, MS Office is the only set of apps that does not work. When I click on it, it just says there was a problem and asks if I'd like to send a report to apple. I tried reinstalling it to no avail. I'm an English student, so i really need access to Word. Can anyone help? The Apple store is a major detour for me and would like to fix this issue myself.

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

  • How can I get back old issues from my TIME app?

    Hi, I hope someone can help me.  I've been trying to get help for a month now.  I had purchased several issues from TIME app but when I just got my ipad 2, I couldn't get the issues back.  I used the same ID and password.  I decided to try buying a new issue and when I did, I had an email from itunes warning me that it was not my usual ID.  I am very confused.  I wrote to TIME and they say I should contact itunes.  I have spent hours trying to contact itunes for help.  They seem uncontactable.  Can someone please tell me if I can somehow get my old issues back?
    Karen

    If they were not backed up or part of photostream, then no, you cannot.

  • HT201342 Mail from time to time won't connect to my BT email. This is intermittent. There is no apparent reason, it just seems to not be able to connect occasionally. Is there an icloud issue from time to time?

    Mail from time to time won't connect to my BT email. This is intermittent. There is no apparent reason, it just seems to not be able to connect occasionally. Is there an icloud issue from time to time?

    Hi there racchycoops,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    -Griff W.

  • Having bettery issue from last 2 weeks, It drains 50% bettery in half day with 20 mins talk time no app use except email., having bettery issue from last 2 weeks, It drains 50% bettery in half day with 20 mins talk time no app use except email.

    Anyvoday having bettery issue from last 2 weeks? I am not sure what happend I have not installed any new app or not using phone constantly. My bettery use to last for almost 2 days with my regular use and not I have to charge it everyday.  Let me know if anybody has solution.

    Restore iPhone Firmware with iTunes on computer. At end when asked Set Up iPhone as New. See if battery issues are better. If still problem, all 4S have full Warranty, make Genius appointment, take iPhone to Apple. They can perform diagnostic test, if problem they will resolve it.

  • Losing datatype definition from a collection type

    Hi,
    When I reload a model design from an xml repository, I am losing the datatype definition from a collection type.
    It goes like this:
    - In a collection type, the datatype is selected from a list of structure types (pre-defined).
    - I save the whole model.
    - So far, the datatype assignment is kept.
    - If I exit from Data Modeler, the next time I reload the saved model, the collection datatype definition is lost...
    Does anyone know how to resolve this issue?
    Note: this looks very similar to a previous thread named 'Losing source-target mapping from a data flow diagram process'.
    Thanks,
    /Mario

    Hi Mario,
    Thanks for letting us know about this problem. I have logged a bug on this.
    If you should find any more problems like this, please let us know.
    Thanks,
    David

  • How to send set of emails from SSIS

    Hi All,
    I would like to send set of emails from SSIS.
    For eg: I have to,from,Subject and mail body present in a table. I would like to go through the table 1 row at a time and send mails
    Regards,
    P M-S

    Hi Vishal,
    Thanks for the response.
    Example doesn't say how to dynamically control To and From lines. What I am looking for is to send mails from an existing table which has To,From,Subject and Body. Basically 1 email per row from an existing table
    regards,
    P M-S
    You can do this in T - SQL itself using sp_send_dbmail
    the code will look like below
    IF OBJECT_ID('tempdb..#temp') IS NOT NULL
    DROP TABLE #temp
    SELECT *,
    ROW_NUMBER() OVER (ORDER BY PK) AS ID
    INTO #temp
    FROM Yourtable
    DECLARE @ID int,@To varchar(5000),@From varchar(5000),@Subject varchar(max)
    SELECT TOP 1 @ID = ID,
    @To = To,
    @From = From,
    @Subject = Subject
    FROM #temp
    ORDER BY ID
    WHILE @ID IS NOT NULL
    BEGIN
    EXEC sp_send_dbmail @recipients = @To,
    @from_address = @From,
    @subject = @Subject
    SELECT TOP 1 @ID = ID,
    @To = To,
    @From = From,
    @Subject = Subject
    FROM #temp
    WHERE ID > @ID
    ORDER BY ID
    END
    Assuming you've default private mail profile set or there's a public profile defined for msdb
    otherwise you need to pass a valid mail profile
    IF in SSIS you can do this
    https://support.microsoft.com/kb/906547?wa=wsignin1.0
    http://www.devtechie.com/post/2013/01/04/Send-Mail-Task-%E2%80%93-Dynamic-Recipient.aspx
    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

  • Excise Part 1 updation at the time of issue.

    Hi,
    I am having one requirement regarding RG23 A part 1 updation at the time of issue.
    1) How the register part 1 updated at the time of goods issue.
    2) I purchased one material from two different vendor. One is excise unit & other is non excise.
    At the time of goods issue to shop floor how the system determine that this issue is from excisable material or non excisable material.And accrdingly how will update part 1 entries.
    Every time i will go to J1I5 transaction for updation of RG23 A or it will update automatically.
    Regards,
    Dinesh

    Hi Sathish ,
    In CIN - basic settings - Maintain excise groups there in that outgoing excise invoice Excise invoice during the billing and Create and post inv in single make the both fields un mark.
    Hope this will make you to create invoice and excise invoice separately, or els find if any exit is used earlier.
    Check and revert
    Regards
    Ram

  • The Java plugin has created a time unfriendly issue with my e-mail account, I can not open or send any e-mail without using this plugin, how can I eliminate this problem without dropping m. firefox?

    A few days ago I tried to e-mail a friend, when I started A box came up and it required me to add a plugin..Java. I contacted my e-mail courier and microsoft, they told me that is was a plugin from Mozilla Firefox. Since then I must go through Java to send or open an e-mail... this is NOT to my satisfaction, it takes too long for all of this to open and if it is not cleared , I am dropping Mozilla and going elsewhere. Why has this occurred? Is this a result of the last update? If so can I delete the last update and continue on the other version?
    == This happened ==
    Every time Firefox opened
    == last week

    Sorry, I have no idea what you mean by '''"The Java plugin has created a time unfriendly issue with my e-mail account, I can not open or send any e-mail without using this plugin,"'''.
    If you think your problem is caused by the Java plugin, you should visit the Java support forum for assistance.
    http://forum.java.sun.com/index.jspa
    If you could explain what you mean by '''"time unfriendly''' issue with my e-mail account", maybe we'll be able to help you solve that issue.
    It might be helpful for us if we knew exactly which web-mail provider you are using. It seems strange to me that viewing or sending web-mail would actually "need" Java for operation, its more likely that some other item on the web page needs Java to run some advertising or other garbage that isn't a necessary part of the web-mail functionality you want to use.

  • How to do Goods Issue from Sales Order Stock?

    Dear All,
    we are doing a trading Scenario & based on customer requirement we procure the goods from our vendor & we receive it to Sales Order(special) Stock. Now what are the settings to be done in the Sales/Shipping so that when we do a delivery for our customer the Stock is Issued from our Un-res Sales Order Stock & not from un-res stock ?
    Hope its clear.
    Regards,

    Hi Sam,
    Thanks a lot for the reply.
    Sorry for not explaining the scenario in the begining.
    See I have to configure a trading Scenario with some changes from the std.
    As in trading Process there are 3 entities.
    1. Customer - X
    2. Company - Y (Who performs trading)
    3. Vendor - Z
    Following is the breif requirment.
    Company Y generated an inquiry in system for an item with respect to customers RFQ. Now since Y doesnt manufacture the product(item) it creates a PR in background with respect to inquiry.
    Based on this PR, Y procures & receives the good into Un-restricted Sales Order Stock (with ref Inquiry doc no:).
    Now based on price Quoted by Z, Y will create a Quotation with ref to inquiry & finally a SO for Customer - X with ref to the Quotation.
    Now at the time of delivery (creatd with ref SO) system is not able to issue the goods from the sales order stock since the stock is stored with ref to inquiry no: & delivery is with ref to SO.
    So I am planning to simulate a cycle by creating a delivery & PGI with ref to Inquiry.
    If you can suggest a way out, it will be highly appreciable.
    Hope its clear.
    Regards,

  • FM - Budget check at the time of procurement and at the time of Issue

    Hi
    For a Material there is a budget for a procurement ( Check should happen at the time of procurement and a seperate budget for consumption ( Check should happen at the time of issue).How can I map this in FM- BCS.I am thinking of creating two commitmen items one for Procurement , to be derived thorugh matl grp at the time of PR / PO and  One commitment item for consumption to be derived through consumption GL . Does it work , any comments?
    Thanks in advance
    Chris

    Yes you are right , I have to make to sure stock budget doesn't get credited.
    If you remember in one of my other threads, i wanted to derive commitment item from Matl grp, it was for this purpose. I will derive commitment through matl group at the time of procurement / GR etc and assign a dummy commitment item to stock a/cs. Where as i will derive a consumption commiment item from consumption GLs.
    Thank you
    Chris

  • Data Extraction issue from the data source 2LIS_08TRTLP

    Hi All,
            We are facing one issue in time of extraction from data source 2LIS_08TRTLP(Shipment Delivery Item Data per Stage) in BW. For some out bound delivery no. Gross weight(BRGEW) is coming zero though there is value showing in the source system(ECC) in VL03 and in LIPS table. BRGEW (Gross weight) which is directly mapped in BW infosource. There is no restriction in the extraction and 0 is coming for this field in the first layer extraction.Even in the PSA all values are zero.
            We have checked those delivery , delivery is being split into batch . But not the all split  delivery is
    giving this problem.
    With Thanks
    Shatadru

    Yes I have done the same  means I have filled setup table for those shipment no related to that delivery no and  checked in the RSA 3 and required value  is coming  in RSA3 a. That means there is no problem in the Extractor  .But I can not pull the data now in BW as it is in Production and every day delta comes .But the in the first layer ODS there is no value for that entry which was previously loaded(Though there is no routine and any restriction).
    But I have one observation in the data source that  particular field is in INVERSION marked in the Source. But that particular delivery for which it is giving is not canceled or returned or rejected. PGI created for that delivery and delivery status is completed for that.

  • Is it possible to boot or Time Machine restore from an external Thunderbolt disk drive?

    (There are several questions - search for "?".)
    I purchased a Seagate Backup Plus for Mac Desktop Drive 3 TByte with default USB 3.0 interface, and also acquired the Seagate Thunderbolt Adapter for Backup Plus Desktop Drives and Thunderbolt cable.
    I do a redundant backup to the Seagate Drive using both Carbon Copy Cloner (nightly) and Time Machine (hourly) using its Thunderbolt adapter.  BTW:  One never knows when Time Machine will choke - see discussion titled, "UPDATED: Serious Time Machine bug on Mountain Lion", which I had; Rest In Peace Pondini (James Lewis Pond).
    Booting from the external Seagate Backup Plus via Thunderbolt inteface from System Preferences -> Startup Disk:
    I select the Time Machine OS X, 10.8.5 Startup Disk (Thunderbolt attached drive), click Restart, confirm my choice, the computer reboots, however, it reboots from the internal Macintosh HD OS X, 10.8.5, NOT the selected external Thunderbolt drive.  The SSD drive was used as the Startup Drive, not the selected external Time Machine volume as indicated by the display free disk space command (df(1)) and seeing that the Macintosh HD OS X, 10.8.5 volume is mounted as root.  That is very deceptive in that both the internal and external drives will appear in the same manner from a GUI point of view!  OS X doesn't even inform me that it did not boot off the selected volume.  This is the first half of the problem, that is, Is it possible to boot from an external Thunderbolt disk drive?  In my case, the answer is deceptively No.  Can anybody else boot off a Thuderbolt attached disk drive?  Note that if I remove the Thunderbolt adapter, and attach the drive via its USB 3.0 cable, the MBP boots off the external Seagate Backup Plus just fine, as is expected.
    Booting from the external Seagate Backup Plus via Thunderbolt inteface from boot-time "Option - Select startup disk" method:
    When I restart the MBP using the startup Option key to select the startup volume, the externally connected Seagate drive ONLY SHOWS UP if it is attached with the USB 3.0 cable, not when it is attached with via the Thunderbolt interface.  Can anyone else boot off a Thunderbolt drive with the startup Option key sequence?  At least the MBP doesn't deceive me in this case - I know right away that the external Thunderbolt drive is not an option when connected as such.
    Time Machine restore from the external Seagate Backup plus via Thunderbolt interface from the "command-R - Recovery Parition" method:
    After booting from the recovery partition, I attempt to perform a Time Machine restore from the Thunderbolt connected Seagate Backup drive.  When Time Machine attempts to present me with a viable backup Time Machine volume, the external Thunderbolt drive is never offered as an option.  So I switch the Time Machine volume to use its USB 3.0 interface, and then Time Machine displays that drive as an option, and the MBP proceeds with the restoration as expected.  The interesting thing to note is that while booted in the recovery partition via the Thuderbolt cable, the MBP Disk Utility may be selected, and the Thunderbolt attached drive may be operated on just fine.  Can anybody else restore their MBP using Time Machine and the Recovery Partition via the Thunderbolt interface?
    This is also a big problem for me in that I am forced to restore my MBP via Carbon Copy Cloner using the USB 3.0 interface, because I cannot even boot off that volume's Thunderbolt interface.  Of course, the option may be that I could use yet another eternal USB 3.0 drive, boot from it, and then use Carbon Copy Cloner to restore the Macintosh HD via the aforementioned drive connected by a Thunderbolt cable, but that is less than ideal and not elegant, so I'm not going there.
    Another side issue is that the commercially available program, TechTool Pro 7's eDrive, which I installed on the Time Machine volume, will not boot off that eDrive as advertised, but I won't got through those steps here, because that would be beyond the scope of this issue, however, I must say, It does not work either when the Time Machine volume is connected via the Thunderbolt interface, but works just fine when connected via the USB 3.0 interface.

    If this helps anybody else make a decision about whether to consider Apple because of Apple's superior customer service:
    Apple sells this entire line of drives right in their store, from 1TB to 4TB.  I spent 1 and 1/2 hours, yesterday, confirming that  the 3TB model IS NOT 100% Thunderbolt compliant.  A MBP cannot boot, nor can it Time Machine restore from this drive, though EVERYTHING about the drive is normal.
    Apple's South Coast Plaza store management had at least two responses to me personally about how to proceed:
    1.  Buy a different drive from another drive manufacturer, and to attempt to return the drive to COSTCO.  A lead genius suggested going with GTech drives, for instance.
    2.  Wait for Seagate to fix their problem.
    I told Apple management in the store that the drive is advertised as Mac Compatible (see  picture) and that it is advertised as being a Thunderbolt drive (see picture).  I pressed management that my purchasing decsion to get the best possible MBP Retina was based on the availablity of Inexpensive Devises (raID), and that not having this complete compatibility is a show-stopper for my needs, and that I wanted a refund.  Their response?  They needed to talk with "Merchendising" to see if they are on or off the hook for these kind of 3rd party assertions, and would get back to me.
    I am not holding my breath.
    Note:  I do not hold this against the Geniuses that helped me, nor against the management I've dealt with, nor the upper level engineers that I've corresponded with through Apple Care - their problem solving skills were helpful - although I could have arrived at similar conclusions given enough $$$.  (For instance, try a Lacie TB drive and see if that works - we did, and it did not work.  Or, we have a different TB cable and a different TB adapter, let's try those - we did, and it did not work.)  I blame myself for not doing enough homework before going with Apple's solutions.

  • Time-out issue Always on SQL 2012 Cluster

    Currently I'm working on a large deployment of a SharePoint 2013 environment (stretched farm over 2 DC's). We are using a SQL 2012 alwayson multisubnet cluster (each DC has 1 SQL node). During the installation of SharePoint we encountered several connection
    time-out errors from the SQL environment. (Exception calling "Open" with "0" argument(s): "Connection Timeout Expired.  The timeout period elapsed during the post-login
    phase.  The connection could have timed out while waiting for server to complete the login process and respond;)
    Steps we follow for SharePoint installation are:
    Steps to configure SharePoint 2013 on an AlwaysOn Availability group:
    1>Create SharePoint databases (with the PowerShell script)
      Configure a SQL alias for a consistent SQL instance name.
     Create farm on SQL instance/replica 1 (one of the SQL nodes), creating all databases needed (service-apps & web-apps). -->
    we are connected directly to 1 SQL node and not connecting to the cluster. Installation server is in same DC as the SQL node.
       Stop SharePoint so databases remain static during migration to an AlwaysOn cluster.
    2>Move database to AlwaysOn high-availability group.
    Restore all the DBs onto SQL replica 2 (with NORECOVERY).
    Create AlwaysOn availability group, or use existing
    Join the replica 2 databases to availability group.
    Create listener.
    3>Migrate SharePoint onto AlwaysOn on cluster
    Make all SharePoint DB MultiSubnetFailover aware with PowerShell Cmdlet
    Reconfigure SQL alias for new listener
    àat this point the SharePoint farm is connecting to the SQL cluster (listener of AlwaysOn availability group of the SQL Instance), but we never reached this point so far.
     Restart SharePoint services with updated alias.
    Event errors and SQL log errors that I found:
    Date,Source,Severity,Message,Category,Event,User,Computer
    09/18/2014 07:34:59,Microsoft-Windows-FailoverClustering,Error,Cluster network name resource 'SPAG_CU8000001105' failed registration of one or more associated DNS name(s) for the following reason:<nl/>DNS bad key.<nl/>.<nl/><nl/>Ensure
    that the network adapters associated with dependent IP address resources are configured with at least one accessible DNS server.,(19),1196,NT AUTHORITY\SYSTEM,CU8000000015
    09/18/2014 07:34:59,MSSQL$SPAG,Information,The Service Broker endpoint is in disabled or stopped state.,(2),9666,,CU8000000015
    09/18/2014 07:34:52,Microsoft-Windows-FailoverClustering,Error,Cluster network name resource 'SPWMAG_CU8000002105' failed registration of one or more associated DNS name(s) for the following reason:<nl/>DNS bad key.<nl/>.<nl/><nl/>Ensure
    that the network adapters associated with dependent IP address resources are configured with at least one accessible DNS server.,(19),1196,NT AUTHORITY\SYSTEM,CU8000000015
    09/18/2014 07:34:52,MSSQL$SPWMAG,Information,The Service Broker endpoint is in disabled or stopped state.,(2),9666,,CU8000000015
    09/18/2014 07:34:47,Service Control Manager,Information,The WMI Performance Adapter service entered the running state.,(0),7036,,CU8000000015
    09/18/2014 07:32:41,Microsoft-Windows-FailoverClustering,Error,Cluster network name resource 'SPSDAG_CU8000003105' failed registration of one or more associated DNS name(s) for the following reason:<nl/>DNS bad key.<nl/>.<nl/><nl/>Ensure
    that the network adapters associated with dependent IP address resources are configured with at least one accessible DNS server.,(19),1196,NT AUTHORITY\SYSTEM,CU8000000015
    09/18/2014 07:32:41,MSSQL$SPSDAG,Information,The Service Broker endpoint is in disabled or stopped state.,(2),9666,,CU8000000015
    09/18/2014 07:31:09,PowerShell,Information,Engine state is changed from Available to Stopped. <nl/><nl/>Details: <nl/> NewEngineState=Stopped<nl/> PreviousEngineState=Available<nl/><nl/> SequenceNumber=61464<nl/><nl/> HostName=OpsMgr
    PowerShell Host<nl/> HostVersion=7.0.5000.0<nl/> HostId=32012185-8d9a-41c2-be56-91929c02f1e8<nl/> EngineVersion=4.0<nl/> RunspaceId=af176e01-185d-4574-ab9b-0fd745178d29<nl/> PipelineId=<nl/> CommandName=<nl/> CommandType=<nl/> ScriptName=<nl/> CommandPath=<nl/> CommandLine=,(4),403,,CU8000000015
    We are not allow to update/write in the DNS for the multisubnet cluster IP registration, so I think that explains the "failed registration
    " error. But can this explains our time-out errors during the SharePoint installation? For the installation we are connection directly to 1 SQL node and not to the SQL
    cluster.
    Any help is appreciated!
    Ronald Bruinsma - Independent SharePoint Consultant - iDocs.info - The Netherlands -- Please don't forget to propose this post as an answer or mark it as helpful if it did help you. Thanks.

    Don't just change the connection timeout on your SharePoint farm. This will just hide the real issue. From your error message, it seems that the DNS record for the Availability Group listener name is not being written. Talk to your AD administrators to validate
    if dynamic DNS registration is configured for the DNS servers. If it is, AD will create the DNS entry of the virtual computer object for the Availability Group listener name. The WSFC should also have Create Computer Objects permission in the AD Organizational
    Unit where your Availability Group listener name will be created.
    On a side note, make sure that you configure a separate SharePoint 2013 farm for your DR environment that will use the content databases joined in the Availability Group. For a stretched farm deployments, latency should be less than 1ms one way as
    per this article. And while you can add your admin content and config databases on the Availability Group, asynchronous commit is
    not supported.
    Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
    Blog |
    Twitter | LinkedIn
    SQL Server High Availability and Disaster Recover Deep Dive Course

  • Passing value to multi value parameter from SSIS using Report server webservice

    Hi
    I am triggering SSRS report from SSIS(Script task). I am passing parameter values from SSIS package.
    So far working fine. Now, I have a report which has 2 parameters. One is single value parameter and the other is multi value parameter.
    No issue assigning value to single value parameter. But how can I pass multi value to multi value parameter?
    My code as below
    ReportExecutionService rs = new ReportExecutionService()
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rs.Url = _webserviceURL;
    rs.LoadReport(_reportPath, null);
    ParameterValue[] paramval = new ParameterValue[2];
                            paramval[0] = new ParameterValue();
                            paramval[0].Name = "CountryCode";
                            paramval[0].Value = _countryNames;
                            **paramval[1] = new ParameterValue();
                            paramval[1].Name = "BusinessCode";
                            paramval[1].Value = _businessCode;****
                            rs.SetExecutionParameters(paramval, "en-us");
    I am not sure how to pass value to BusinessCode(Multi value parameter)

    Hi Rajkm,
    In order to pass a multi-value parameter through the Reporting Services Web services, you need to define the same numbers of ParameterValue objects as the number of the values of the multi-value parameter being past into the report. The Name property
    of these ParameterValue objects must be specified same to the parameter name.
    I found a good FAQ article for this scenario:
    How do I pass a multi-value parameter into a report with Reporting Services Web service API?:
    http://blogs.msdn.com/b/sqlforum/archive/2010/12/21/faq-how-do-i-pass-a-multi-value-parameter-into-a-report-with-sql-server-reporting-services-ssrs-web-services-api.aspx
    Hope this helps.
    Elvis Long
    TechNet Community Support

Maybe you are looking for