Student Management System (VB)-Connect to the database

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

Insert picture description here

2. New database

Right-click the database and click New.
Create a database named student
Insert picture description here

Three, change the password

Set the sa password to "123456" in the "Property General", select "Grant" and "Enabled" in the "Status".
Insert picture description here
Insert picture description here
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~

Guess you like

Origin blog.csdn.net/aqiuisme/article/details/110633282