> When I try to use an SP with parameter that is the WHERE clause it
> generates
> an error.
> E.g,
> @myWhere = varchar(200)
> AS
> SELECT x, y FROM skwi WHERE @myWhere
> myWhere = status = 7 AND LastName = 'Smith'
> The problem is that the where clause is built conditionally in the
> program.
> Any advise and examples on how to accomplish would be appreciated.
> --
> Mike - FrontPage MVP '97 - '02
> Expression Tools & Addin
> http://www.j-moves.com
> http://www.panemanager.com
> FrontPage Tools & Addin
> http://www.jbots.com
> E-Commerce
> http://www.candypress.com