I've seen a few posts on running SQL Server stored procedures from within Lightswitch but what I would like to be able to do is:
- Create a LightSwitch application (along with its own database)
- Connect to that database from SQL Server Management Studio
- Create one or many stored procedures w/in that database
- Possibly schedule these stored procedures to run daily
So far, I have gotten hung up on step 2 where I'm trying to attach to the Lightswitch ApplicationDatabase.mdf. I get the error below, apparently because there is no associated log file (.ldf).
I understand that maybe it is not a best practice to be placing stored procedures in the LightSwitch generated database and appreciate input along these lines as well.
Thanks,
Keith
Error Message: "Unable to open the physical file "C:\Documents and Settings\keithm\My Documents\Visual Studio 2010\Projects\Application13\Application13\Bin\Data\Temp\ApplicationDatabase_log.LDF". Operating system error 2: "2(The system cannot find the file specified.)". (Microsoft SQL Server, Error: 5120)"