Guest User

Untitled

a guest
Jul 20th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. select * from tempdb.sys.objects
  2.  
  3. select left(name, charindex('_',name)-1)
  4. from tempdb..sysobjects
  5. where charindex('_',name) > 0 and
  6. xtype = 'u' and not object_id('tempdb..'+name) is null
Add Comment
Please, Sign In to add comment