M
mr_doles
I am writing a Database application using Visual Studio 2005 and SQL
Server Express 2005. I am trying to create a back up and year end back
up plan within the program. The folder structure I want is as follows:
The main level is c:\program files\app name\database with the following
subfolders, 1) current - holds the current db (db.mdf), 2) backup -
holds the backed up databases (db1.bak) and 3) archive - holds the
year end databases (db-2005.mdf). I have two questions:
1) How do I setup the connection string to connect to a database that
is not located in the standard C:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\Data location?
2) Is there a way to setup the security on the backup folder during
setup to allow the SQLServer2005MSSQLUser write access? I was getting
access denied running the BACKUP DATABASE db TO DISK sql statement.
Server Express 2005. I am trying to create a back up and year end back
up plan within the program. The folder structure I want is as follows:
The main level is c:\program files\app name\database with the following
subfolders, 1) current - holds the current db (db.mdf), 2) backup -
holds the backed up databases (db1.bak) and 3) archive - holds the
year end databases (db-2005.mdf). I have two questions:
1) How do I setup the connection string to connect to a database that
is not located in the standard C:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\Data location?
2) Is there a way to setup the security on the backup folder during
setup to allow the SQLServer2005MSSQLUser write access? I was getting
access denied running the BACKUP DATABASE db TO DISK sql statement.