When we make a student management system, there are three things that must be done accurately. 1 The code is written correctly. 2. The ODBC configuration is correct . It gains knowledge . 3. The database connection is completed.
Below I will give the connection steps in detail.
One, open SQL Sever
2. New database
Right-click the database and click New.
Create a database named student
Three, change the password
Set the sa password to "123456" in the "Property General", select "Grant" and "Enabled" in the "Status".
One thing to note is that in your code, you must log in with the database login username and The password is the same, otherwise there will be a "91" problem~