Showing posts with label single. Show all posts
Showing posts with label single. Show all posts

Wednesday, March 28, 2012

Parameter missing

Hi,

I was developed the rdl report and i deployed to the server, In my report having the single input parameter When i run the report

asking parameter value and i was gave the value it was generated the report it is working fine.

Then this rdl report bind to the reportviewer control using

Report viwer tasks :

Choose Report : < Server Report>

Server Report Url:http://localhost/reportserver

Report Path : /Sales/Details

then i run the error should shown:

  • An error has occurred during report processing.
  • Query execution failed for data set 'Details'.
  • Procedure 'Usp_Details' expects parameter '@.PId', which was not supplied.

    How i pass the parameter value in reportviewer.

    Plz any one would help to me.

    regards

    kumar

    First deploy it and go to the IIS and open the Report folder and browse it.You can find your report there.Run that report.If that is working fine so some other problem was there.Do like that way if it is working so the page should work fine.

    |||

    Hi,

    Thanks for your response

    I did you told that way it is working fine and i was bind the rdl report to Reportviewer in my webpage then i ran the error should occured

    An error has occurred during report processing.

  • Query execution failed for data set 'Details'.
  • Procedure 'Usp_Details' expects parameter '@.PId', which was not supplied|||

    ptParameters[0] =
    new Microsoft.Reporting.WebForms.ReportParameter("ClientId", sessParam );

    this.ReportViewer1.ServerReport.SetParameters(RptParameters);
    this.ReportViewer1.ServerReport.Refresh();

    check this article for more infohttp://www.codeproject.com/sqlrs/ReportViewer2005.asp

    |||

    It is working fine thanks lot

    regards

    kumar

    sql
  • Tuesday, March 20, 2012

    parallel execution

    Hi
    I have 3 sources as Flat files and the destination is a single table. Is it possible for running a package so that it is executed parallelly. I mean , all the 3 files should run at the same time and load it into the destination table.
    If it is possible, please let me know how to do it

    Regards
    MThe easiest way is probably to have 3 copies of your Data Flow, each using a different File Connection Manager, and three copies of your File Connection Manager, each for a different file. You will also need to uncheck the "Table Lock" option on the destinations. If there are no precedences defined for your Data Flows, they will execute in parallel. Ugly, but simple.
    There used to be a parallel execution option on the Loop task that would have allowed you to do this with one Data Flow, but it was removed.
    It is also possible to use a master package that executes your current package three times in parallel, thus avoiding the Data Flow duplication above, but you'll face the challenge of having each instance of the package open a separate file. You would need to have three different Package Configuration files to define different values for a parameter that you would use in an Expression to set the ConnectionString property on your File Connection Manager. Complicated, but probably a superior design if you're up for it. You'll still need to turn off table locking.
    Note that you'll need multiple processors to make this a worthwhile endeavor. Also, if your files are very large tempdb will suffer without the table locking.|||
    Note that you'll need multiple processors to make this a worthwhile endeavor. Also, if your files are very large tempdb will suffer without the table locking.

    Hey Jay,
    Is it mandatory to have multiple processors for parallel execution for the above mentioned issue.
    I have done all the above things that you have suggested, but it stills seems that the loading is happening sequentially. Please note that the my machine is single processor machine.

    Regards
    Meghana|||It shouldn't be mandatory, but I wouldn't expect you to see any benefits without multiple processors. I ran a test on a single processor machine and did not have any difficulty getting my Data Flows to run concurrently. I also discovered that disabling the table locking is not necessary.
    One thing to check is the MaxConcurrentExecutables property. The only way I could force my package to run sequentially is to set this value to 1. The default value is -1, which means number of processors plus two, so it should let you load three files simultaneously.
    I also tested performance. Using a 100k line flat file going directly into a local SQL table, I saw a 10% decrease in performance with two parallel files and 34% decrease with three.
    |||

    mmhaise wrote:

    Hi
    I have 3 sources as Flat files and the destination is a single table. Is it possible for running a package so that it is executed parallelly. I mean , all the 3 files should run at the same time and load it into the destination table.
    If it is possible, please let me know how to do it

    Regards
    M

    Have you tried using a MULTIFLATFILE connection manager? This will enable you to load data from all of the files using just a single data-flow (which is executed just once).
    If the metadata of the 3 files is identical this should work very nicely.

    If the metadata is different then you can use 2 or 3 Derived Column Transforms to make the pipeline metadata identical and then use a UNION ALL transform to combine the 3 data-paths into one. Again, this is a single data-flow that you execute just the once.
    If you are intent on loading the 3 seperately then executing a package 3 times as Jay suggested would be the "cleanest" approach because you can reuse functionality rather than having 3 seperate but identical data-flows.

    I would definately look into using the MULTIFLATFILE connection manager though if I were you.

    -Jamie|||

    Is it possible to make the MULTIFLATFILE connection load in parallel? I have tried using one to load 4 csv file in parallel to the same destination table. The data flow is loading them sequentially.

    I have another package with four separate file connection managers and data flows; however, I thought it would be nice to use the MULTIFLATFILE since the files have identical metadata. We require them to load in parallel.

    parallel execution

    Hi
    I have 3 sources as Flat files and the destination is a single table. Is it possible for running a package so that it is executed parallelly. I mean , all the 3 files should run at the same time and load it into the destination table.
    If it is possible, please let me know how to do it

    Regards
    MThe easiest way is probably to have 3 copies of your Data Flow, each using a different File Connection Manager, and three copies of your File Connection Manager, each for a different file. You will also need to uncheck the "Table Lock" option on the destinations. If there are no precedences defined for your Data Flows, they will execute in parallel. Ugly, but simple.
    There used to be a parallel execution option on the Loop task that would have allowed you to do this with one Data Flow, but it was removed.
    It is also possible to use a master package that executes your current package three times in parallel, thus avoiding the Data Flow duplication above, but you'll face the challenge of having each instance of the package open a separate file. You would need to have three different Package Configuration files to define different values for a parameter that you would use in an Expression to set the ConnectionString property on your File Connection Manager. Complicated, but probably a superior design if you're up for it. You'll still need to turn off table locking.
    Note that you'll need multiple processors to make this a worthwhile endeavor. Also, if your files are very large tempdb will suffer without the table locking.|||
    Note that you'll need multiple processors to make this a worthwhile endeavor. Also, if your files are very large tempdb will suffer without the table locking.

    Hey Jay,
    Is it mandatory to have multiple processors for parallel execution for the above mentioned issue.
    I have done all the above things that you have suggested, but it stills seems that the loading is happening sequentially. Please note that the my machine is single processor machine.

    Regards
    Meghana|||It shouldn't be mandatory, but I wouldn't expect you to see any benefits without multiple processors. I ran a test on a single processor machine and did not have any difficulty getting my Data Flows to run concurrently. I also discovered that disabling the table locking is not necessary.
    One thing to check is the MaxConcurrentExecutables property. The only way I could force my package to run sequentially is to set this value to 1. The default value is -1, which means number of processors plus two, so it should let you load three files simultaneously.
    I also tested performance. Using a 100k line flat file going directly into a local SQL table, I saw a 10% decrease in performance with two parallel files and 34% decrease with three.
    |||

    mmhaise wrote:

    Hi
    I have 3 sources as Flat files and the destination is a single table. Is it possible for running a package so that it is executed parallelly. I mean , all the 3 files should run at the same time and load it into the destination table.
    If it is possible, please let me know how to do it

    Regards
    M

    Have you tried using a MULTIFLATFILE connection manager? This will enable you to load data from all of the files using just a single data-flow (which is executed just once).
    If the metadata of the 3 files is identical this should work very nicely.

    If the metadata is different then you can use 2 or 3 Derived Column Transforms to make the pipeline metadata identical and then use a UNION ALL transform to combine the 3 data-paths into one. Again, this is a single data-flow that you execute just the once.
    If you are intent on loading the 3 seperately then executing a package 3 times as Jay suggested would be the "cleanest" approach because you can reuse functionality rather than having 3 seperate but identical data-flows.

    I would definately look into using the MULTIFLATFILE connection manager though if I were you.

    -Jamie|||

    Is it possible to make the MULTIFLATFILE connection load in parallel? I have tried using one to load 4 csv file in parallel to the same destination table. The data flow is loading them sequentially.

    I have another package with four separate file connection managers and data flows; however, I thought it would be nice to use the MULTIFLATFILE since the files have identical metadata. We require them to load in parallel.

    parallel data load using bcp

    i did a parallel load into a single table using bcp from 2 machines. as
    suggested in the docs i used the TABLOCK hint. as a result i observed that:
    a) first all the data from machine1 is inserted. When this is finished then
    all the data from machine2 is inserted
    b) i don't see any parallelism in this . Is there any other way of acheiving
    true paralellism.
    NOTE: SQL Server is running on a dual cpu machine
    Vivek T S
    Member Technical Staff (Inucom)
    Did you satisfy all the other requirements for parallel bulk loading?
    Database is using BULK_LOGGED or SIMPLE recovery model and the destination
    table does not have any indexes?
    GertD@.SQLDev.Net
    Please reply only to the newsgroups.
    This posting is provided "AS IS" with no warranties, and confers no rights.
    You assume all risk for your use.
    Copyright SQLDev.Net 1991-2004 All rights reserved.
    "Vivek T S" <VivekTS@.discussions.microsoft.com> wrote in message
    news:409D8E47-D422-48C7-B076-0A9CAE5D39AE@.microsoft.com...
    > i did a parallel load into a single table using bcp from 2 machines. as
    > suggested in the docs i used the TABLOCK hint. as a result i observed
    > that:
    > a) first all the data from machine1 is inserted. When this is finished
    > then
    > all the data from machine2 is inserted
    > b) i don't see any parallelism in this . Is there any other way of
    > acheiving
    > true paralellism.
    > NOTE: SQL Server is running on a dual cpu machine
    > --
    > Vivek T S
    > Member Technical Staff (Inucom)
    |||iam using Simple recovery model. the target table does not have any indexes
    (and is empty). what are the other requirements for parallel bulk loading ?
    "Gert E.R. Drapers" wrote:

    > Did you satisfy all the other requirements for parallel bulk loading?
    > Database is using BULK_LOGGED or SIMPLE recovery model and the destination
    > table does not have any indexes?
    > GertD@.SQLDev.Net
    > Please reply only to the newsgroups.
    > This posting is provided "AS IS" with no warranties, and confers no rights.
    > You assume all risk for your use.
    > Copyright ? SQLDev.Net 1991-2004 All rights reserved.
    > "Vivek T S" <VivekTS@.discussions.microsoft.com> wrote in message
    > news:409D8E47-D422-48C7-B076-0A9CAE5D39AE@.microsoft.com...
    >
    >
    |||iam using the Simple recovery model. The target table does not have indexes
    (and is empty). What are the other reuquirements for parallel bulk loading ?
    thanks.
    "Gert E.R. Drapers" wrote:

    > Did you satisfy all the other requirements for parallel bulk loading?
    > Database is using BULK_LOGGED or SIMPLE recovery model and the destination
    > table does not have any indexes?
    > GertD@.SQLDev.Net
    > Please reply only to the newsgroups.
    > This posting is provided "AS IS" with no warranties, and confers no rights.
    > You assume all risk for your use.
    > Copyright ? SQLDev.Net 1991-2004 All rights reserved.
    > "Vivek T S" <VivekTS@.discussions.microsoft.com> wrote in message
    > news:409D8E47-D422-48C7-B076-0A9CAE5D39AE@.microsoft.com...
    >
    >
    |||This ought to work. Are you using the version of BCP that shipped with SQL
    2000?
    Hope this helps.
    Dan Guzman
    SQL Server MVP
    "Vivek T S" <VivekTS@.discussions.microsoft.com> wrote in message
    news:3728504E-A17E-414A-BF02-3CF45291C45D@.microsoft.com...[vbcol=seagreen]
    > iam using Simple recovery model. the target table does not have any
    > indexes
    > (and is empty). what are the other requirements for parallel bulk loading
    > ?
    > "Gert E.R. Drapers" wrote:
    |||Look up "minimally logged bulk copy" in BOL for the requirements.
    Andrew J. Kelly SQL MVP
    "Vivek T S" <VivekTS@.discussions.microsoft.com> wrote in message
    news:3728504E-A17E-414A-BF02-3CF45291C45D@.microsoft.com...
    > iam using Simple recovery model. the target table does not have any
    indexes
    > (and is empty). what are the other requirements for parallel bulk loading
    ?[vbcol=seagreen]
    > "Gert E.R. Drapers" wrote:
    destination[vbcol=seagreen]
    rights.[vbcol=seagreen]
    as[vbcol=seagreen]

    parallel data load using bcp

    i did a parallel load into a single table using bcp from 2 machines. as
    suggested in the docs i used the TABLOCK hint. as a result i observed that:
    a) first all the data from machine1 is inserted. When this is finished then
    all the data from machine2 is inserted
    b) i don't see any parallelism in this . Is there any other way of acheiving
    true paralellism.
    NOTE: SQL Server is running on a dual cpu machine
    --
    Vivek T S
    Member Technical Staff (Inucom)Did you satisfy all the other requirements for parallel bulk loading?
    Database is using BULK_LOGGED or SIMPLE recovery model and the destination
    table does not have any indexes?
    GertD@.SQLDev.Net
    Please reply only to the newsgroups.
    This posting is provided "AS IS" with no warranties, and confers no rights.
    You assume all risk for your use.
    Copyright © SQLDev.Net 1991-2004 All rights reserved.
    "Vivek T S" <VivekTS@.discussions.microsoft.com> wrote in message
    news:409D8E47-D422-48C7-B076-0A9CAE5D39AE@.microsoft.com...
    > i did a parallel load into a single table using bcp from 2 machines. as
    > suggested in the docs i used the TABLOCK hint. as a result i observed
    > that:
    > a) first all the data from machine1 is inserted. When this is finished
    > then
    > all the data from machine2 is inserted
    > b) i don't see any parallelism in this . Is there any other way of
    > acheiving
    > true paralellism.
    > NOTE: SQL Server is running on a dual cpu machine
    > --
    > Vivek T S
    > Member Technical Staff (Inucom)|||iam using Simple recovery model. the target table does not have any indexes
    (and is empty). what are the other requirements for parallel bulk loading ?
    "Gert E.R. Drapers" wrote:
    > Did you satisfy all the other requirements for parallel bulk loading?
    > Database is using BULK_LOGGED or SIMPLE recovery model and the destination
    > table does not have any indexes?
    > GertD@.SQLDev.Net
    > Please reply only to the newsgroups.
    > This posting is provided "AS IS" with no warranties, and confers no rights.
    > You assume all risk for your use.
    > Copyright © SQLDev.Net 1991-2004 All rights reserved.
    > "Vivek T S" <VivekTS@.discussions.microsoft.com> wrote in message
    > news:409D8E47-D422-48C7-B076-0A9CAE5D39AE@.microsoft.com...
    > >
    > > i did a parallel load into a single table using bcp from 2 machines. as
    > > suggested in the docs i used the TABLOCK hint. as a result i observed
    > > that:
    > > a) first all the data from machine1 is inserted. When this is finished
    > > then
    > > all the data from machine2 is inserted
    > > b) i don't see any parallelism in this . Is there any other way of
    > > acheiving
    > > true paralellism.
    > >
    > > NOTE: SQL Server is running on a dual cpu machine
    > > --
    > > Vivek T S
    > > Member Technical Staff (Inucom)
    >
    >|||This ought to work. Are you using the version of BCP that shipped with SQL
    2000?
    --
    Hope this helps.
    Dan Guzman
    SQL Server MVP
    "Vivek T S" <VivekTS@.discussions.microsoft.com> wrote in message
    news:3728504E-A17E-414A-BF02-3CF45291C45D@.microsoft.com...
    > iam using Simple recovery model. the target table does not have any
    > indexes
    > (and is empty). what are the other requirements for parallel bulk loading
    > ?
    > "Gert E.R. Drapers" wrote:
    >> Did you satisfy all the other requirements for parallel bulk loading?
    >> Database is using BULK_LOGGED or SIMPLE recovery model and the
    >> destination
    >> table does not have any indexes?
    >> GertD@.SQLDev.Net
    >> Please reply only to the newsgroups.
    >> This posting is provided "AS IS" with no warranties, and confers no
    >> rights.
    >> You assume all risk for your use.
    >> Copyright © SQLDev.Net 1991-2004 All rights reserved.
    >> "Vivek T S" <VivekTS@.discussions.microsoft.com> wrote in message
    >> news:409D8E47-D422-48C7-B076-0A9CAE5D39AE@.microsoft.com...
    >> >
    >> > i did a parallel load into a single table using bcp from 2 machines. as
    >> > suggested in the docs i used the TABLOCK hint. as a result i observed
    >> > that:
    >> > a) first all the data from machine1 is inserted. When this is finished
    >> > then
    >> > all the data from machine2 is inserted
    >> > b) i don't see any parallelism in this . Is there any other way of
    >> > acheiving
    >> > true paralellism.
    >> >
    >> > NOTE: SQL Server is running on a dual cpu machine
    >> > --
    >> > Vivek T S
    >> > Member Technical Staff (Inucom)
    >>|||Look up "minimally logged bulk copy" in BOL for the requirements.
    --
    Andrew J. Kelly SQL MVP
    "Vivek T S" <VivekTS@.discussions.microsoft.com> wrote in message
    news:3728504E-A17E-414A-BF02-3CF45291C45D@.microsoft.com...
    > iam using Simple recovery model. the target table does not have any
    indexes
    > (and is empty). what are the other requirements for parallel bulk loading
    ?
    > "Gert E.R. Drapers" wrote:
    > > Did you satisfy all the other requirements for parallel bulk loading?
    > > Database is using BULK_LOGGED or SIMPLE recovery model and the
    destination
    > > table does not have any indexes?
    > >
    > > GertD@.SQLDev.Net
    > >
    > > Please reply only to the newsgroups.
    > > This posting is provided "AS IS" with no warranties, and confers no
    rights.
    > > You assume all risk for your use.
    > > Copyright © SQLDev.Net 1991-2004 All rights reserved.
    > >
    > > "Vivek T S" <VivekTS@.discussions.microsoft.com> wrote in message
    > > news:409D8E47-D422-48C7-B076-0A9CAE5D39AE@.microsoft.com...
    > > >
    > > > i did a parallel load into a single table using bcp from 2 machines.
    as
    > > > suggested in the docs i used the TABLOCK hint. as a result i observed
    > > > that:
    > > > a) first all the data from machine1 is inserted. When this is finished
    > > > then
    > > > all the data from machine2 is inserted
    > > > b) i don't see any parallelism in this . Is there any other way of
    > > > acheiving
    > > > true paralellism.
    > > >
    > > > NOTE: SQL Server is running on a dual cpu machine
    > > > --
    > > > Vivek T S
    > > > Member Technical Staff (Inucom)
    > >
    > >
    > >

    Friday, March 9, 2012

    Pagination Issue when Rending to PDF

    I am having a pagination issue with a report when I render to PDF. The
    report is a patient form that is based on a single record that is returned
    from a stored procedure. Most of the records are output fine, but some
    records are not paginating properly and leave 3/4 page of blank space. The
    field that follows on the next page is short and should definitely fit on
    that page. The report renders fine in HTML, but the requirement is a PDF
    format.
    The body of the report is contained in a table. Each field of the report is
    contained in its own row. If the field is blank, the entire row is hidden so
    that only populated data is output in the report.
    In troubleshooting this, I have removed the logic that hides the rows, but
    the pagination is still not correct.
    I have also made sure that the data is clean and doesn't have whitespace.
    Any suggestions as to how to fix this problem?
    TIAOn Dec 18, 8:47 pm, JC <J...@.discussions.microsoft.com> wrote:
    > I am having a pagination issue with a report when I render to PDF. The
    > report is a patient form that is based on a single record that is returned
    > from a stored procedure. Most of the records are output fine, but some
    > records are not paginating properly and leave 3/4 page of blank space. The
    > field that follows on the next page is short and should definitely fit on
    > that page. The report renders fine in HTML, but the requirement is a PDF
    > format.
    > The body of the report is contained in a table. Each field of the report is
    > contained in its own row. If the field is blank, the entire row is hidden so
    > that only populated data is output in the report.
    > In troubleshooting this, I have removed the logic that hides the rows, but
    > the pagination is still not correct.
    > I have also made sure that the data is clean and doesn't have whitespace.
    > Any suggestions as to how to fix this problem?
    > TIA
    You will want to check the width of the report. Normally, if it is
    wider than 6.5" in design view, it will wrap once exported to PDF.
    Also, if you are using a table control, you will want to put it into a
    rectangle control, this should shrink the extra space. Hope this
    helps.
    Regards,
    Enrique Martinez
    Sr. Software Consultant|||Thanks for the quick reply. The report is slightly wider than 6.5" in design
    mode to incorporate the header (which renders fine). The fields before and
    after the blank space are very short (like 1 word and a label).
    I did try putting the table in a table control, but that didn't do anything.|||On Dec 18, 9:43 pm, JC <J...@.discussions.microsoft.com> wrote:
    > Thanks for the quick reply. The report is slightly wider than 6.5" in design
    > mode to incorporate the header (which renders fine). The fields before and
    > after the blank space are very short (like 1 word and a label).
    > I did try putting the table in a table control, but that didn't do anything.
    You're welcome. Did you mean you put it into a table control or a
    rectangle control?
    Enrique Martinez
    Sr. Software Consultant|||Sorry. I meant that I put the table control inside the rectangle control. I
    just removed all code that controls the visibility property for each row, and
    the pagination problem went away.
    The problem is that the customer only wants rows of the table to appear that
    have data. Here's the code on the visiblity property of the tablerow:
    =iif(Fields!FirstSignature.Value = string.empty, True, False)
    It does work as it is supposed to, but it seems that the space is still
    being allocated for the row.
    BTW, it was initially written in VS 2003, but I have tried with VS 2005 with
    the same results.|||On Dec 18, 11:05 pm, JC <J...@.discussions.microsoft.com> wrote:
    > Sorry. I meant that I put the table control inside the rectangle control. I
    > just removed all code that controls the visibility property for each row, and
    > the pagination problem went away.
    > The problem is that the customer only wants rows of the table to appear that
    > have data. Here's the code on the visiblity property of the tablerow:
    > =iif(Fields!FirstSignature.Value = string.empty, True, False)
    > It does work as it is supposed to, but it seems that the space is still
    > being allocated for the row.
    > BTW, it was initially written in VS 2003, but I have tried with VS 2005 with
    > the same results.
    You might try =IIF(Fields!FirstSignature.Value = Nothing, True, False)
    or =IIF(IsNothing(Fields!FirstSignature.Value), True, False)
    Either should do what you want. Make sure you set the property for
    the row and not the individual cells/textboxes.|||Thanks, Toolman.
    I will try that too. Is using the table + row format to hide empty fields
    the best practice to accomplish this? I was also going to try to set the
    height to 0 if it was going to be hidden. It just seems that SSRS is taking
    the empty rows into consideration when making the pagination decision.|||On Dec 19, 2:32 pm, JC <J...@.discussions.microsoft.com> wrote:
    > Thanks, Toolman.
    > I will try that too. Is using the table + row format to hide empty fields
    > the best practice to accomplish this? I was also going to try to set the
    > height to 0 if it was going to be hidden. It just seems that SSRS is taking
    > the empty rows into consideration when making the pagination decision.
    I believe that it is. If for no other reason than the convenience of
    not having to enter the expression for each textbox/cell. Also, my
    experience has been that using a table rather than a collection of
    boxes just works better in general. I know that trying to hide the
    entire row by hiding all the cells doesn't seem to close up the white
    space.

    Monday, February 20, 2012

    Page orientation for physical pages

    Hello,
    I need to design a single report (PDF) which must have both landscape and portrait orientation.

    For what I know the page size is defined and static for all pages of the same report (RDL). Is there any workaround (I'm using Sql2005) ?

    Thanks,
    Pierre

    You are right the page size defined in the rdl can't be expression and apply to all pages. One possible workaround is to use deviceinfo to specify page size and the page range. http://msdn2.microsoft.com/en-us/library/ms154682(SQL.90).aspx. For example, you can specify one page size to get page 1-3 of the report, and a different size to get a different set of pages.

    |||

    Hello Fang,
    thanks for the reply. For what I know I can define one deviceinfo setting per report. How can I define the device info setting the page 1 with a different PageHeight and PageWidth than the page 2 and 3 on the same deviceinfo ?

    Thanks,
    Pierre

    |||Since you can use device info settings (StartPage and EndPage) to retrieve a range of pages, you can get page 1 with certain page size, then page 2 and 3 with a different page size.