print @@versionOutput:
Microsoft SQL Server 2014 (SP2-GDR) (KB4019093) - 12.0.5207.0 (X64) Jul 3 2017 02:25:44 Copyright (c) Microsoft Corporation Express Edition (64-bit) on Windows NT 6.3(Build 9600: ) (Hypervisor)
Microsoft AX 2012, X++, C#, SQL server, SSRS, Java, JavaFX, Oracle, PL/SQL, Delphi - codes examples, step-by-step tutorials, experiences.
print @@versionOutput:
Microsoft SQL Server 2014 (SP2-GDR) (KB4019093) - 12.0.5207.0 (X64) Jul 3 2017 02:25:44 Copyright (c) Microsoft Corporation Express Edition (64-bit) on Windows NT 6.3(Build 9600: ) (Hypervisor)
use master; /* -- define DB name */ declare @database_name nvarchar( max ); set @database_name = 'framework'; /* -- check if DB exists yet */ if db_id( @database_name ) is not null begin print 'DB exists.'; /* db exists -> end */ return; end; ...