Sysindexes table is an interesting table which stores important metadata.
Need to have a detail look into it.
By the way here is some code which uses sysindex to display
number of columns in all tables in a database :
CREATE PROCEDURE [dbo].[DisplayRowCount] as
BEGIN
declare @tabcnt int
declare @printline char (60)
select @tabcnt = count (*) from sysobjects where type = 'U'
If @tabcnt != 0
BEGIN
select "TABLE NAME"= convert (varchar (50), o.name), ROWS=i.rows
from sysobjects o, sysindexes i
where o.type = 'U'
and o.id = i.id
and i.indid in (0,1)
order by o.name
END
select @printline = '(' + convert (varchar(10), @tabcnt) +
' tables in ' + DB_NAME() + ')'
print @printline
END
Subscribe to:
Post Comments (Atom)
How to check local and global angular versions
Use the command ng version (or ng v ) to find the version of Angular CLI in the current folder. Run it outside of the Angular project, to f...
-
Most of the google tutorials on keras do not show how to display a confusion matrix for the solution. A confusion matrix can throw a clear l...
-
This error means you have created the DbContext but not configured/added it to the project using either DI in startup.cs or by using DbCon...
-
CONCLUSION : 1. Normally, use following two when you do not want query compilation also to come into picture. CHECKPOINT DBCC DROPCLEA...
No comments:
Post a Comment