IF DB_ID(N'RobotInstaller') IS NULL BEGIN CREATE DATABASE [RobotInstaller]; END; GO USE [RobotInstaller]; GO PRINT N'Database RobotInstaller is ready.'; GO