You can view the connection string for the SampleDatabase.mdf file by opening the Properties window of the data connection: On the Choose your Database Objects page, you'll see a message that says the database doesn't contain any objects. On the Save the Connection String to the Application Configuration File page, choose Next. On the Choose Your Data Connection page, select the SampleDatabase.mdf file in the drop-down list, and then choose Next. On the Choose a Database Model page, choose Next to accept the default (Dataset). On the Choose a Data Source Type page, choose Database and then choose Next. The Data Source Configuration Wizard opens. In the Data Sources window, select Add New Data Source. If the Data Sources window isn't open, open it by pressing Shift+ Alt+ D or selecting View > Other Windows > Data Sources on the menu bar. Name the database SampleDatabase, and then click Add. In the list of item templates, scroll down and select Service-based Database. On the menu bar, select Project > Add New Item. Create a project and a local database fileĬreate a new Windows Forms App (.NET Framework) project and name it SampleDatabaseWalkthrough. NET Framework Windows Forms projects, not to. The procedures in this article apply only to.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |