Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

SQL Express command


3 replies to this topic

kittu_s

kittu_s
  • Members
  • 14 posts

Posted 19 October 2005 - 17:21


We have a requirement that our setup should attach a database at the end of the installation. We are using SQL express 2005.
I am executing "osql -E -S <servername> -q "sp_attach_db <dbname>,<mdf file path>"" in a custom action.
while execuiting this command it will create a LDF log file. At this moment if i give mdf path other than windows temp folder it is failes with message "Acess denied"

Please suggest if any alternatives

Thanks
Krishna.s

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 20 October 2005 - 20:38

Are you logged on as administrator when running the setup?

kittu_s

kittu_s
  • Members
  • 14 posts

Posted 21 October 2005 - 09:03

Thanks a log Stefan

Yes we logged as Administrator. Is there any settings need to do in the setup for prviliges?



Thanks
krishna.s

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 23 October 2005 - 15:10

I don't know the permission system of SQL Express 2005, sorry.