We can have a different type of Clauses associated with Hive to perform different type data manipulations and querying. sys.dm_db_partition_stats is a Dynamic Management View (DMV) which contains one row per partition and displays the information about the space used to store and manage different data allocation unit types - IN_ROW_DATA, LOB_DATA and ROW_OVERFLOW_DATA. can any one suggest me how get the row count? SELECT TOP 10 (SCHEMA_NAME (A.schema_id) + '.' + A.Name) AS TableName. Transact-SQL statements can set the value in @@ROWCOUNT in the following ways: Set @@ROWCOUNT to the number of rows affected or read. EXECUTE statements preserve the previous @@ROWCOUNT. Reply Transact-SQL statements can set the value in @@ROWCOUNT in the following ways: Set @@ROWCOUNT to the number of rows affected or read. This can be easily adapted to store the output as values and compare them: $a = Get-ChildItem -Path "SQLSERVER:\SQL\\DEFAULT\Databases\\Tables\" | Select-Object -Property Schema, Name, RowCount, (Note : This uses the SQLPS PowerShell provider. This metadata is stored in the Hive metastore database and can be easily updated. interested in. Examples of these statements are: SET @local_variable, RETURN, READTEXT, and select without query statements such as SELECT GETDATE() or SELECT 'Generic Text'. Statements such as USE, SET