Permission problems with sp_attach_db during installation


 

i install sql express silently.

 

then try following

 

-s .\instance -q "sp_attach_db 'attach_as_name', 'c:\program files\app_name\sqldata\app_db.mdf'"

 

this works...sometimes. many times wll permissions error on folder "c:\program files\app_name". if go , give "everyone" "full permission" folder...it works fine.

 

my questions are:

1) system users need access (and @ level) folder attach? because giving full access bad.

 

2) there better method deploying populated database application this?

sql service account needs modify privilege on "c:\program files\app_name\sqldata\" path. if running in local system account make sure system or nt authority \ system has modify privilege on path


SQL Server  >  SQL Server Express



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........