Articles → LIGHT SWITCH 2011 → Intrinsic Database In Lightswitch 2011
Intrinsic Database In Lightswitch 2011
Software Requirement
- Visual studio 2010 is installed on your machine.
- Visual Studio 2010 service pack 1 is installed on your machine.
- Microsoft Visual Studio Light switch 2011 is installed on your machine.
- Silverlight runtime version 4 or 5 is installed on your machine
Prerequisite Knowledge
- How to create a new project using visual studio?
- Basic knowledge about SQL server and its objects like tables etc
- What are screens and entities in lightswitch?
- How to create a screen in lightswitch application?
Steps Of Execution
- Create a new project
- Add table in the project
- How to connect to intrinsic database
- Check intrinsic database
Create A New Project
Click to Enlarge
Add Table In The Project
Click to Enlarge
How To Connect To Intrinsic Database
Click to Enlarge
- First of all open SSMS in administrator mode. You can do that by right click on SSMS icon and select ‘Run as administrator’
Click to Enlarge
- Once you click on the option a popup appears asking you for your confirmation. Click on Yes and your SSMS opens in an administrative mode.
- Once you open the database right click on the database and click on Attach as shown in figure below
Click to Enlarge
- A pop up window appears to select the mdf file. Select the file from ‘$(projectdir)\bin\data ‘ location as mentioned in last section.
- Once you select the file a database is added in your list.
Check Intrinsic Database
Click to Enlarge