c# - getting sql statement behind view -
i have c# application (2008) gets data sql server (2005). have view in sql server prepares data display, (simplified):
select places.name [location], parts.name [part name] places inner join parts on places.id=parts.location
i have filter "where" statement built in code , like:
where (places.id=1 or places.id=15) , (parts.id=56 or parts.id=8 or parts.id=32)
i can of course keep basic select statement in code, likw have things defined in 1 place :) , question if there way select statement behind view in sql server? or contents of stored procedure? lot!
take @ information schema view, may find solution.
Comments
Post a Comment