Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Distinct value

Author  Topic 

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2008-05-20 : 00:55:53
I require only the distinct objects that were depend on my stored procedures

i tried for sp_depends test_sp
for this
dbo.iim_CPL_fsl_tree_tbl_tmp user table no no layout_slno
dbo.iim_CPL_fsl_tree_tbl_tmp user table no no layout_type
dbo.iim_CPL_fsl_tree_tbl_tmp user table no no level1
dbo.iim_CPL_fsl_tree_tbl_tmp user table no no layout_operator
dbo.iim_CPL_fsl_tree_tbl_tmp user table no no rlevel1desc
dbo.iim_CPL_fsl_tree_tbl_tmp user table no no rlevel2desc
dbo.iim_CPL_fsl_tree_tbl_tmp user table no yes guid
dbo.abb_account_budget_dtl user table no no company_code
dbo.abb_account_budget_dtl user table no no fb_id
dbo.abb_account_budget_dtl user table no no fin_year_code
dbo.abb_account_budget_dtl user table no no fin_period_code
dbo.abb_account_budget_dtl user table no no account_code

being dbo.abb_account_budget_dtl were repeated more than once.i need only the distinct objects..any other system procedure is there??

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-05-20 : 01:11:31
[code]create table #temp
([name] varchar(50),
[type] varchar(20),
updated varchar(5),
selected varchar(3),
[column] varchar(50)
)

insert into #temp
exec sp_depends yourprocedure

select distinct [name] from #temp[/code]
Go to Top of Page
   

- Advertisement -