这是我用来连接我的sybase数据库的代码:
Dim DefConn As New SAConnection("UID=" + SQLUser + ";PWD=" + SQLPass + ";ENG=" + Database_Txt.Text + ";LINKS=tcpip(host=" + Server_Txt.Text + ";DoBroadcast=none)")
Dim Executer As New SADataAdapter(SQLStatement_Txt.Text, DefConn)
Dim DataSet As New DataSet
DefConn.Open()
Executer.Fill(DataSet, "1")
Results_DtaGridView.DataSource = DataSet.Tables("1")
ResultsPrivate_DtaGridView.DataSource = DataSet.Tables("1")
DefConn.Close()
当我使用“select * from table”时,这是有效的,但出于某种原因,当我尝试运行“Show tables”或“Describe table”表名“等命令时,它们不起作用。有什么想法吗?