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


Create Database using dynamic SQL


Create Database using dynamic SQL

Author
Message
shri.wangnekar
shri.wangnekar
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 15
Comments posted to this topic are about the item Create Database using dynamic SQL
Andy Robertson
Andy Robertson
SSCrazy
SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)

Group: General Forum Members
Points: 2551 Visits: 507

The article doesn't seem to render very well (at least when I'm viewing it in chrome). Perhaps you have some rogue HTML in it? At the moment it's hard to see the reasons the script is useful etc.


shri.wangnekar
shri.wangnekar
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 15
allinadazework - Monday, July 2, 2018 7:55 AM

The article doesn't seem to render very well (at least when I'm viewing it in chrome). Perhaps you have some rogue HTML in it? At the moment it's hard to see the reasons the script is useful etc.


Hello -
I have entered information in the fields provided , it is a simple plain text, not sure if it is an issue with the page by itself,
Nevertheless , the post is about creating a database using dynamic SQL, which picks up the location from the default path mentioned in the server configuration, now a simple CREATE DATABASE <database_name>; would also do that for you, however if you pass the file path in the variable declared for the data and log file location, the script should do the job for you and put the files where you want it to, Give it a go!!
Cheers
Shridhar

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search