Bragadiru
3/14/2007 9:23:00 AM
Thanks a lot for your response.
Also I found the method in SqlDmo :
SQLDMO.QueryResults qr =
SQLDMO.View.EnumDependencies(SQLDMO.SQLDMO_DEPENDENCY_TYPE.SQLDMODep_Parents);
"Bragadiru" <bragadiru@hotmail.com> wrote in message
news:eeWc35WZHHA.1300@TK2MSFTNGP02.phx.gbl...
> Hi all,
>
> How can I get programatically the tables on which my sql view depends ??
>
> Now I'm using .NET Framework 2.0 and Sql.Dmo to get the CREATE VIEW ...
> script (using SqlDmo.View.Script), but I need to get the table names, too,
> to create tables first.
>
> Thanks for any advice
>
>