sede_ineachdb prototype

0

Please login or register to vote for this query.

(click on this box to dismiss)

Open Data

Q&A for developers and researchers interested in open data

CREATE TABLE #dbs(db sysname, c int);

EXEC dbo.sede_ineachdb 
@SQLCommand = N'INSERT #dbs SELECT DB_NAME(),
COUNT(*) FROM sys.databases WHERE database_id < DB_ID();',
  @IncludeMainSites = 1,
  @IncludeMetaSites = 1, 
  @IncludeMainMeta  = 1;
  
SELECT * FROM #dbs;

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results