December 8, 2009 at 9:58 am
I misposted this topic in the SQL Server development forum before I knew this forum existed.
I have developed a powershell script to install databases and database objects (procedures, functions, etc). The script allows the user to pass in a directory and request that the database be created at that location. What I want to do is validate that the user has permissions to create the database at that location. I have checks that validate the passed location is a directory, but I can not figure out to validate that SQL Server is allowed to created the database files in the requested file system location.
February 20, 2010 at 8:13 pm
The following articles describe how to create a Database using Powershell:
http://arcware.net/creating-a-sql-server-database-from-powershell/
http://sqlblog.com/blogs/allen_white/archive/2008/04/28/create-database-from-powershell.aspx
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy