Database coupling problem

xiaoxiao2021-03-02  63

I now use VB to write a C / S structure program. I wrote the program into the module, but how to read something in the database in the program? The join code is as follows:

Public Con As New Connect ....

Sub main () Dim str As String connact = server.CreateObject ( "adodb.connection") connact.ConnectionString = "provider = sqloledb.1; data source = huacai12;. Initial catalog = test; user id = sa; password = sa Database = Database name "'This is the connection method of SQL

Con. open frmlogin.shownd sublogin.shownd Sub

I have to use a text box to implement query database functions. Is it using a similar statement to perform this feature.

转载请注明原文地址:https://www.9cbs.com/read-31611.html

New Post(0)