You are hereSQL SERVER - 2005 - List Tables in Database
SQL SERVER - 2005 - List Tables in Database
This is very simple but effective script. It list all the table names.
USE DatabaseName; GO SELECT SCHEMA_NAME(schema_id) AS SchemaName,name AS TableName FROM sys.TABLES ORDER BY SchemaName, TableName; GO
Bookmark/Search this post with
Tags
getting Error
Msg 195, Level 15, State 10, Line 1
'SCHEMA_NAME' is not a recognized function name.
Apparently, this happens when you have two versions of SQL Server installed on the same computer. Go to a command prompt and re-register sqldmo.dll.
Regsvr32 Sqldmo.dllYou should get a prompt back that states DLLRegisterServer in SQLDMO.dll succeeded.
Reboot your server and try again.
Post new comment