Last video, we did what we usually do, we wrote SQL scripts to accomplish tasks. Now in this video, we'll be looking at how we can use the power of our SQL Server Management Studio to do the same functionality without us needing to write a line of code or SQL. So we are back to our similar screen, we have no script code here. But then we do have you know Object Explorer or table so we can just right click our table, and then we can see edit top 200 rows. Now when we click that, we see a tabular format, like what we were describing from the earlier parts of these videos, showing us all of the data and the respective columns that these data points are in. So we see one we didn't put any IDs into the system, or pontil.
No, and we see that we have IDs going on column D, we skipped tool, because remember, we tried to insert a second record and it had an arrow. So the auto increment or said or attempted second record was there, it failed. But two is no longer a valid number to use in uniquely identifying anything. So it skipped two, but then each other successful one, but its own ID value. So that is the point of using that identity attributes. Secondly, you can see that each last name and first name went in so it really didn't matter the order that we put the code, we put the columns and then put the data in the fact is the data should have lined up with each column and the date of births.
And as I expand this, and you see that because we're using date time, even though we didn't specify all we did was specify the year month and day, it still appends a time value on it. So you actually use this time, date time value. If you need to keep track of time that exact point in time something happened, then the time is very ideal for that. And then we have the enrollment, which is similar, but then we see that we have some with values, and some with notes. So once again, because we made it a nullable column, then we see that we were able to insert some records with no value and insert some with values. Now, you may have noticed that I was actually able to click in the column and it became editable.
And if you took note of that, then that's excellent. When you are in this mode, it literally said edit top 200. So it ran a small query, and it got the top 200 rows and it gave us a forum where we can actually change or add new ones if we want. So first we're going to add new rules. So this new Students, I'm going to use my last name, and I have a friend called Artemis. And then that person's date of birth is 2001, the ninth month, the fifth day.
And I'm going to actually put in an invalid value here for the date of birth. So that's the 15th. Day, we all know, at least in our Western calendar, there's no 15th day, and I'm going to press enter, which will trigger the same, and then we see here that we get an error message, the value in this cell is not valid. So it's telling us go back to the drawing board, there's something wrong, so I'll just edit it. And I'll just take off that zero out of those, press Enter. And you'll see that it just falls in line those red icons disappear.
And we have a 12th record Williams article. So you can actually use this view to just put in your records. If it is that you don't want to write the script. Of course the script is more fluid Because you can actually save the script and share it and execute it on another machine as well. Whereas this one it, you have to be on that particular machine in that particular database to fill it out. So this is more manual for me, the script is more automated because I can always tweak that and share it.
So that's how you will both inserting data in your data tables using the editor. You can go ahead and insert more records and you can experiment with inserting more records in the courses table.