I have searched high and low for weeks but cannot figure out how to enable FILESTREAMs in SQL Server when installed as a prerequisite to a Visual Stuido "oneclick" application.
Enabling FILESTREAM requires a lot of point and click operations through TWO programs: SQL Server Management Studio and SQL Server Configuration Manager.
Can someone please show me how to enable FILESTREAM upon install of a "oneclick" application?
To be more specific, I want to:
- Create a C# Windows Forms Application
- Right click on the project and select properties
- Select the Publish tab
- Select SQL Server Express 2012 as a prerequisite to the application
- Publish the application using the "How will users install the application? = From a CD-ROM or DVD-ROM" (this produces setup.exe which will install the application and SQL Server Express 2012 on a target machine).
- Install the application on the target machine by running setup.exe.
- The result of the install will be an installed application and an instance of SQL Server 2012 Express running as SQLEXPRESS with FILESTREAM enabled.
I see that this question has been asked before but it has never been fully answered. Simply running an SQL query to enable FILESTREAM is not enough. There is a second part which would be handled by:
- manually installing SQL Server Configuration Manager
- manually finding the SQLEXPRESS instance
- manually enabling FILESTREAM
- manually restarting the SQLEXPRESS instance
Manual operations are not acceptable.
Thank you very much for your time and sorry for the long winded question.