Skip to content

Instantly share code, notes, and snippets.

@gowtham758550
Created August 9, 2022 03:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gowtham758550/c0c1914ed9fc77ae2ea554ef7f2f88d3 to your computer and use it in GitHub Desktop.
Save gowtham758550/c0c1914ed9fc77ae2ea554ef7f2f88d3 to your computer and use it in GitHub Desktop.
-- Create a new database called 'University'
-- Connect to the 'master' database to run this snippet
USE master
GO
-- Create the new database if it does not exist already
IF NOT EXISTS (
SELECT [name]
FROM sys.databases
WHERE [name] = N'University'
)
CREATE DATABASE University
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment