Not use RDL properly might cause some problem, I aware of that, use UNION the
execution order not guarantee is acceptable but use UNION in VS can shut down
database is absolutely NOT acceptable.
My soluiton is to let VS generate parameter for you, it seems VS can
recongnize these parameter better than define it manually.....
Hope VS 2005 will not let me phone ring crazy like this morning.....
[quoted text, click to view] "Bruce L-C [MVP]" wrote:
> Ahh, you are trying to tie two datasets together. First, although there is a
> way to do this I wouldn't necessarily count on this behaviour to stay the
> same. That being said, the order that datasets get filled in is based on the
> order in the RDL. So look at the RDL and make sure that the dependent
> dataset is prior to the second dataset.
>
> Dataset execution order is not guaranteeded.
>
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
>
> "Wei Ming" <wming@cwalkergroup.com> wrote in message
> news:40C8EBFC-197F-4276-A82C-9C13E18B520A@microsoft.com...
> >I agree with you but you did not answer my quesiton. I have 3 database
> > instance with same structure. I have to use union to get all the result. I
> > noticed that sometimes VS can shutdown my sql server, this is very scary
> > and
> > hope Microsoft can fix this bug....I believe this is because I use union
> > and
> > parameter together. If you define your paramter (from another dataset)
> > first
> > and use it in your script ( with union ), you might see what I mean.
> >
> >
> >
> >
> >
> > "Bruce L-C [MVP]" wrote:
> >
> >> If you are putting T-SQL in the design pane do not declare any variable
> >> that
> >> is a report parameter. Just use the @Whatever and RS will create the
> >> report
> >> parameter. If for some reason you want to do more with the report
> >> parameter
> >> prior to using it then have a second variable that is for the report
> >> parameter.
> >>
> >>
> >> --
> >> Bruce Loehle-Conger
> >> MVP SQL Server Reporting Services
> >>
> >> "Wei Ming" <wming@cwalkergroup.com> wrote in message
> >> news:230E1217-2C9B-4583-BCE2-B28482A15291@microsoft.com...
> >> > To Microsoft:
> >> >
> >> > If I put @var first in my script, VS will auto generate report
> >> > parameter....it works but
> >> > if I create this parameter first and use this parameter in my union
> >> > script.....woolala....guess what, my SQL Server shut down ...... :-((
> >>
> >>
> >>
>
>
If you are putting T-SQL in the design pane do not declare any variable that
is a report parameter. Just use the @Whatever and RS will create the report
parameter. If for some reason you want to do more with the report parameter
prior to using it then have a second variable that is for the report
parameter.
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
[quoted text, click to view] "Wei Ming" <wming@cwalkergroup.com> wrote in message
news:230E1217-2C9B-4583-BCE2-B28482A15291@microsoft.com...
> To Microsoft:
>
> If I put @var first in my script, VS will auto generate report
> parameter....it works but
> if I create this parameter first and use this parameter in my union
> script.....woolala....guess what, my SQL Server shut down ...... :-((
Ahh, you are trying to tie two datasets together. First, although there is a
way to do this I wouldn't necessarily count on this behaviour to stay the
same. That being said, the order that datasets get filled in is based on the
order in the RDL. So look at the RDL and make sure that the dependent
dataset is prior to the second dataset.
Dataset execution order is not guaranteeded.
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
[quoted text, click to view] "Wei Ming" <wming@cwalkergroup.com> wrote in message
news:40C8EBFC-197F-4276-A82C-9C13E18B520A@microsoft.com...
>I agree with you but you did not answer my quesiton. I have 3 database
> instance with same structure. I have to use union to get all the result. I
> noticed that sometimes VS can shutdown my sql server, this is very scary
> and
> hope Microsoft can fix this bug....I believe this is because I use union
> and
> parameter together. If you define your paramter (from another dataset)
> first
> and use it in your script ( with union ), you might see what I mean.
>
>
>
>
>
> "Bruce L-C [MVP]" wrote:
>
>> If you are putting T-SQL in the design pane do not declare any variable
>> that
>> is a report parameter. Just use the @Whatever and RS will create the
>> report
>> parameter. If for some reason you want to do more with the report
>> parameter
>> prior to using it then have a second variable that is for the report
>> parameter.
>>
>>
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>>
>> "Wei Ming" <wming@cwalkergroup.com> wrote in message
>> news:230E1217-2C9B-4583-BCE2-B28482A15291@microsoft.com...
>> > To Microsoft:
>> >
>> > If I put @var first in my script, VS will auto generate report
>> > parameter....it works but
>> > if I create this parameter first and use this parameter in my union
>> > script.....woolala....guess what, my SQL Server shut down ...... :-((
>>
>>
>>