SQL Ninja

I learn, I pass it on. Please comment and ask questions!

Wednesday, April 27

Get a list of all the Tables in a Database

Script follows, with little to no fanfare!


SELECT
        
schemas.name + '.' + tables.name SchemaTableName
FROM
        
sys.tables
  
JOIN
        
sys.schemas
    
ON tables.schema_id = schemas.schema_id
Posted by Scott Herbert
Email ThisBlogThis!Share to TwitterShare to Facebook

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

My Photo
Scott Herbert
I'm..... me?
View my complete profile

Tags

[sys].[dm_os_performance_counters] Active Directory backup Blogs C# Code Command Line Excel Formatting Google Reader GUID Hardware HTML Job Monitoring NEWID() OPENROWSET Optimisation Performance Performance Monitoring Permissions Profiler Project Lucy Quest Report Server Reporting Services restore RSS Run Schedule Script Component Security SQL SQL Agent SQLServerPedia SSIS standards Subscription TempDB Trace Tuning views

Blog Archive

  • ▼  2011 (7)
    • ►  June (1)
    • ►  May (1)
    • ▼  April (1)
      • Get a list of all the Tables in a Database
    • ►  February (4)
  • ►  2009 (9)
    • ►  December (1)
    • ►  July (3)
    • ►  February (2)
    • ►  January (3)
  • ►  2008 (7)
    • ►  December (3)
    • ►  September (4)

Links

  • Linked In
Awesome Inc. template. Template images by enot-poloskun. Powered by Blogger.