Here we will see how to attach an intrinsic database in a LightSwitch Application (Visual C#) in Visual Studio 2012.
The following is the procedure to attach an intrinsic database.
Step 1Open the Solution Explorer.Step 2In the Solution Explorer, right-click on the Server and choose "Add Table".Step 3The table appears.Step 4Go to SQL Server Management Studio (SSMS) and right-click on it and select "Run as Administrator".
Step 5The SSMS will open. Provide UserName and word to connect to the server.Step 6Now go to Object Explorer and right-click on the database and select "Attach".The Attach Database dialog box will appear.Click on the "Add" Button and the Locate Database File dialog box will appear by which you can locate your .mdf database file.Step 7The File Name along with its path will appear in the Attach DataBase dialog box.As we click "OK" the table will appear in the database.
Printing in C# Made Easy