-
-
Save mvillegascuellar/d44570b8e394488099c9ee0a5e57e763 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @v int | |
SET @v = (SELECT database_id FROM sys.databases ORDER BY database_id DESC) -- dara error | |
PRINT @v | |
GO | |
DECLARE @v int | |
SELECT @v = database_id FROM sys.databases ORDER BY database_id -- asignara el maximo database_id | |
PRINT @v | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment