Complete Programming Stuff
.NET and SQL codes
Labels
SQL
(14)
Common static functions
(4)
ASP.NET
(1)
Other
(1)
Tuesday, June 5, 2012
SQL Query to get No. of rows Table wise
SELECT
sysobjects
.
Name
,
sysindexes
.
Rows
FROM
sysobjects
INNER
JOIN
sysindexes
ON
sysobjects
.
id
=
sysindexes
.
id
WHERE
type
=
'U'
AND
sysindexes
.
IndId
<
2
ORDER
BY
sysindexes
.
Rows
desc
Newer Posts
Home
Subscribe to:
Posts (Atom)