SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Create Database using dynamic SQL

By Shridhar,

Create database using dynamic SQL

Script creates a database,picks up the default locations for data and log file placements from server configuration, Give it a go!!

Useful in scenario's where your DBA doesn't like you and doesn't tell you that he doesn't like you!! So give him this script and ask him to trust you for creating the database, ill soon post something to create tables dynamically, Lets test your DBA's

Total article views: 299 | Views in the last 30 days: 11
 
Related Articles
FORUM

SQL Server v4.2 create database syntax error

doesn't like "NAME" in CREATE DATABASE

FORUM

Create Database

Create database taking forever

BLOG

Restoring a database that doesn't exist

When restoring a database that doesn't exist, say for instance when a client sends a database to you...

FORUM

create database security

create database security

FORUM

unable to create database

CREATE DATABASE failed

 
Contribute