asp我也搞得定!呵呵 :)
下面是例子
Set cnn1 = New ADODB.Connection
strCnn = "Provider=sqloledb;" & _
"Data Source=srv;Initial Catalog=pubs;User Id=sa;Password=; "
cnn1.Open strCnn
Set rstSchema = cnn1.OpenSchema(adSchemaTables)
Do Until rstSchema.EOF
response.write "Table name: " & _
rstSchema!TABLE_NAME & '----'& _
"Table type: " & rstSchema!TABLE_TYPE & '<br>'
rstSchema.MoveNext
Loop
别奇怪rstSchema!TABLE_NAME这个表示方法,这是人家规定的
本来这个程序用在vb里,我修改了一下应该能用在asp里了!