December 18, 2008 at 3:19 am
Hi,
What is User Tables?
Are these different from the tables that we create within a database?
Write a query to list the user tables within a database.
Thanks
Thanks,
Santhosh
December 18, 2008 at 6:07 am
December 18, 2008 at 6:10 am
OK.
User tables are those tables you create on the database.
Now if you type the following query then you will get a list of all user tables on the database:
Select *
From Sys.Tables
---- and the same applies for user views and stored procs. see this link for more info:
December 18, 2008 at 6:49 am
User tables, as has already been stated, are your tables. This is opposed to system tables (and views) which are the management tables (and views) for SQL Server itself.
----------------------------------------------------The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood... Theodore RooseveltThe Scary DBAAuthor of: SQL Server 2017 Query Performance Tuning, 5th Edition and SQL Server Execution Plans, 3rd EditionProduct Evangelist for Red Gate Software
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply