Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to check all tables all fields for some d
Message
From
22/08/2008 13:58:42
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01341129
Message ID:
01341189
Views:
10
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>How can I check all tables for some data in them?
>
>Thanks in advance.


Can you describe a little better what you want?

This query will return an approx row count for each table
SELECT 
	CONVERT(VARCHAR(30), OBJECT_NAME(id)) [Table Name], 
    rows 
FROM sysindexes WITH (NOLOCK)
WHERE object_name(id) NOT LIKE 'sys%' 
	AND indid = 1 
ORDER BY 2 DESC
or, are you looking for specific data?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform