Showing posts with label execution. Show all posts
Showing posts with label execution. Show all posts

Friday, February 24, 2012

Can I Turn off Auto Execution of Report when all parameters have default values?

My situation....

I deploy a report in Report Server. Ther report has 5-10 parameters. When I design the report, I supply a default value for each parameter, similiar to the "Add a select all option" tutorials.

So I end up with defaults like "Select a Project Manager", "Select a Fiscal Year", etc... I use dynamic queries to read the parameters and insert the appropriate logic into the where string of my main dataset. If the user selects a value from my parameter lists, I append a clause to the SQL string, if they choose the default option, I ignore the parameter, and that effectively returns all of the records (like Select * from ....)

My Issue...

When I provide a default paramater for ALL of the parameters available, the report auto-executes when the user picks it from the folder, and isn;t given the opportunity to refine the default criteria I have provided.

My Question....

Is there any way to turn the autoexecution off?

Thanks for any help...

There is no method to turn off the auto execution of the report if all parameters have default values.

As you have probable already found out, you can populate all but one of the parameters to get the result you desire. But that makes the user have to supply a value of the parameter.

Thursday, February 16, 2012

Can I roll back certain query(insert/update) execution in one page if query (insert/update

Can I roll back certain query(insert/update) execution in one page if query (insert/update) in other page execution fails in asp.net.( I am using sqlserver 2000 as back end)

scenario

In a webpage1, I have insert query into master table and Page2 I have insert query to store data in sub table.

I need to rollback the insert command execution for sub table ,if insert command to master table in web page1 is failed. (Query in webpage2 executes first, then only the query in webpage1) Can I use System. Transaction to solve this?

Thanks in advance

Hi, sreejith

Yes, we can make the trasaction pass from one page to the other. However, a pending trasaction may lock the table for a long time.

In a multi-user environment, this would prevent the other users from reading/writing data. So, I suggest you let the user input data in both 2 pages. Then, after the second page is finished, call the 2 inserts together. This will make your application better.

HTH. If this does not answer you question, please feel free to mark it as Not Answered and post your reply. Thanks!

|||

Can we keep a database connection open in one page, used in some other page .

wont it show error ?

can u provide some link or code samples for above mentioned transaction.