all groups > sql server programming > august 2007 >
You're in the

sql server programming

group:

views overwritten by other users


views overwritten by other users kk
8/23/2007 10:42:01 PM
sql server programming:
I am creating a project with microsoft access 2000 front end and sql server
2000 backend. When i print report from the form then what my system does is
,creates some views according to criteria from the form on the fly and at the
end it links all those views and create final view and that final view is
recordsource form my report. My problem is if another user prints the same
report same time from another machine with different criteria then system
overwrites all the views and both users come up with the same report. any
help will be appreciated.

Thanks
--
Re: views overwritten by other users David Portas
8/24/2007 7:17:27 AM
[quoted text, click to view]

Why not use some off-the-shelf reporting tool? Reporting Services for
example? If you really must re-invent the wheel then you can't use the
method you described. How about using parameterised stored procedures?

--
David Portas, SQL Server MVP

Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.

SQL Server Books Online:
http://msdn2.microsoft.com/library/ms130214(en-US,SQL.90).aspx
--

Re: views overwritten by other users kk
8/26/2007 6:14:01 PM
thank david for the advise.

I can create parameterised stored procedures instead of views, that's not a
problem. But the problem is when i run parameterised stored procedures for
the middle queries according to my criteria from the form then how i gone a
link these stored procedures for the final query for the report. when i
create views according to my criteria's from the form then i can link these
views for my final query for the report because i got so many different
criteria on my form to select the data from so many different tables.

thanks
kk
--
kk


[quoted text, click to view]
AddThis Social Bookmark Button