Formatos de Data no SQL Server

DECLARE @Formatos TABLE(
	Codigo INT,
	Formato VARCHAR(255)
)

DECLARE @Count INT = 0

WHILE @Count < 200
BEGIN
		BEGIN TRY
			INSERT INTO @Formatos VALUES(@Count,convert(varchar(50),getdate(),@Count))
		END TRY  
		BEGIN CATCH  
     
		END CATCH
		SET @Count = @Count + 1
END

SELECT * FROM @Formatos

Be the first to comment on "Formatos de Data no SQL Server"

Leave a comment

Your email address will not be published.


*