compare table counts in two databases

Sound like old hat ... but this procedure accepts the two database names as input parameters; therefore, it must dynamically generate the SQL and use Exec(@command) to execute it.   It also reports on tables that exist in one database but not the other ...  Finally, it uses count(*) to provide more accuracy than using sysindex […]

2003-10-24

272 reads

Blogs

Reading a SharePoint List with Azure Logic App

By

Sometimes in life you have to do things you really don’t like to do....

T-SQL Tuesday #125 – Unit testing databases – we need to do this!!

By

Welcome to the first April edition of T-SQL Tuesday. I’m honoured to be hosting...

T-SQL Tuesday Live–7 Apr 2020

By

Last week went a little crazy, and I learned something: don’t post a Zoom...

Read the latest Blogs

Forums

Common schema in different Databases

By lfernigrini

Hi, I need to include a very simple schema in all of my database...

Permissions to Run CLR Assembly

By hawg

This is my first time dealing with CLR assemblies and we have setup some...

Convert date value

By pwalter83

Hi, I have a requirement to convert a date value like '7th March 2020' ...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers