Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Select Table_name as "Table name"
  2. From Information_schema.Tables
  3. Where Table_type = 'BASE TABLE' and Objectproperty
  4. (Object_id(Table_name), 'IsMsShipped') = 0
  5.  
  6. sp_tables 'Database_Name'
  7.  
  8. USE your_database
  9. go
  10. Sp_tables
  11. go
  12.  
  13. SELECT * FROM INFORMATION_SCHEMA.TABLES
  14. WHERE TABLE_NAME LIKE 'Datasheet%'
  15.  
  16. select * from information_schema.columns
  17. where table_name = 'yourTableName'
  18.  
  19. SELECT table_name
  20. FROM information_schema.tables
  21. WHERE
  22. table_name LIKE 'Datasheet%'
  23.  
  24. SELECT * FROM INFORMATION_SCHEMA.TABLES
  25. WHERE TABLE_NAME LIKE '%'
  26.  
  27. SELECT * FROM INFORMATION_SCHEMA.TABLES
  28. WHERE TABLE_SCHEMA='dbo';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement