Quantcast
Channel: Basit's SQL Server Tips » sys.partitions
Browsing latest articles
Browse All 2 View Live

Image may be NSFW.
Clik here to view.

Transact-SQL query to obtain basic information about partitioned tables

Here is the simple query that returns basic information about all tables in a database that are partitioned: SELECT SCHEMA_NAME([schema_id]) AS [schema_name] ,t.[name] AS [table_name] ,i.[name] AS...

View Article



Image may be NSFW.
Clik here to view.

Different approaches of counting number of rows in a table

Today, I received an email from the developer asking if there is a better way instead of the COUNT (*) Transact-SQL statement, to count the number of records in a table. My reply to his question is...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images