Hello everyone diculpen by this question may be something unusual or absurd, but I am looking for the autoincrementable value of a table.
-
In MySQL it's this
SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'nombre_db' AND TABLE_NAME = 'nombre_tabla'
-
I made this way select MAX (ID_Cat) + 1 from category but when the table does not truncate funciana the query.
-
Is there any way to get SQL Server?