Const strSQL1 As String = "select……"
Const strSQL2 As String = "select……"
Const strCNN As String = "initial catalog=nzdb;user id=sa;password=neary"
Dim myDA As New SqlClient.SqlDataAdapter(strSQL1, strCNN)
Dim myDS As New DataSet()
With myDA
.Fill(myDS, "dbStat")
End With
myDA = new SqlClient.SqlDataAdapter(strSQL2, strCNN)
With myDA
.Fill(myDS, "dbStat2")
End With
Const strSQL2 As String = "select……"
Const strCNN As String = "initial catalog=nzdb;user id=sa;password=neary"
Dim myDA As New SqlClient.SqlDataAdapter(strSQL1, strCNN)
Dim myDS As New DataSet()
With myDA
.Fill(myDS, "dbStat")
End With
myDA = new SqlClient.SqlDataAdapter(strSQL2, strCNN)
With myDA
.Fill(myDS, "dbStat2")
End With
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货