From the course: ASP.NET Web Forms Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Creating a new database - ASP.NET Tutorial
From the course: ASP.NET Web Forms Essential Training
Creating a new database
- [Instructor] So, now we are back in Visual Studio. And what we want to do, we want to create a database and, as I mentioned, we already have installed on our machine the local DB version of SQL Server. And when we do that, we have different options, so one option would be to go in the Solution and inside the App_Data, which if you remember I mentioned in the first module that this is the one where we are putting the databases and it's the only one we have the write rights. So, I can go in here and say add Add, New Item. When I'm looking at the kind of new items that I can add, I can say I want to add a data and the kind of data I want to add, it's a SQL Server Database. However, keep in mind that this database, it's actually a database that is only local to my application. So, this won't be a database generally available for everyone on this machine. So, let's call that MessageDB.mdf. I would say Add and this will create automatically an empty database file for me that I can start…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.