Avatar of parpaa
parpaa

asked on 

Run query against all DB

Hi
I have request where I have to check the column keys for a particular table for each db.

I had attached the structure of table.
The keys of this column (ACLkey) should always begin from 1 and since this is identity column. It should not have any gap.
I need to find the dbs' name whose aclkey are not proper. Hope am clear.
acl.xlsx
Microsoft SQL Server

Avatar of undefined
Last Comment
parpaa
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Lowfatspread
Lowfatspread
Flag of United Kingdom of Great Britain and Northern Ireland image

just because a column is defined as an identity does not mean that there cannot or should not be "gaps" in the sequence numbers of the data rows there are several valid reasons/scenarios for that....

would you like to reconsider your problem and restate what it is you are being asked to do...
Avatar of parpaa
parpaa

ASKER

Thanks for the solution. It worked perfectly. Cheers!
Microsoft SQL Server
Microsoft SQL Server

Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.

171K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo