Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Get The Record Count Of Any Table In SQL Server
WhatsApp
Arun Kumar
Jul 26
2016
516
0
0
-- Approach 1
SELECT
rows
FROM
sysindexes
WHERE
id = OBJECT_ID(
'Asset'
)
AND
indid < 2
-- Approach 2
select
COUNT
(1)
from
Asset
Record Count
SQL Query
Up Next
Get The Record Count Of Any Table In SQL Server