欧美久久天天综合香蕉伊,h片在线免费观看,九九欧美,欧美1区2区3区,日本在线不卡一区,国产视频久久久,91久久久久久久

2023信創(chuàng)獨(dú)角獸企業(yè)100強(qiáng)
全世界各行各業(yè)聯(lián)合起來,internet一定要實(shí)現(xiàn)!

如何確定有多少人登陸數(shù)據(jù)庫(kù)

2004-02-11 eNet&Ciweek

  Sub ShowUserRosterMultipleUsers()

   Dim cn As New ADODB.Connection

   Dim cn2 As New ADODB.Connection

   Dim rs As New ADODB.Recordset

   Dim i, j As Long

    

   cn.Provider = "Microsoft.Jet.OLEDB.4.0"

   cn.Open "Data Source=c:\Northwind.mdb"

  

   cn2.Open "Provider=Microsoft.Jet.OLEDB.4.0;" _

   & "Data Source=c:\Northwind.mdb"

  

   ' The user roster is exposed as a provider-specific schema rowset

   ' in the Jet 4 OLE DB provider. You have to use a GUID to

   ' reference the schema, as provider-specific schemas are not

   ' listed in ADO's type library for schema rowsets

  

   Set rs = cn.OpenSchema(adSchemaProviderSpecific, _

   , "{947bb102-5d43-11d1-bdbf-00c04fb92675}")

  

   'Output the list of all users in the current database.

  

   Debug.Print rs.Fields(0).Name, "", rs.Fields(1).Name, _

   "", rs.Fields(2).Name, rs.Fields(3).Name

  

   While Not rs.EOF

   Debug.Print rs.Fields(0), rs.Fields(1), _

   rs.Fields(2), rs.Fields(3)

   rs.MoveNext

   Wend

    End Sub

相關(guān)頻道: eNews

您對(duì)本文或本站有任何意見,請(qǐng)?jiān)谙路教峤唬x謝!

投稿信箱:tougao@enet16.com