Hallo Liste,
ich habe folgende Frage:
Ich m�chte in einer MS-SQL-Server Datenbank aus einer bestimmten Tabelle
bestimmte Eigenschaften der Tabellenspalten ermitteln.
Dazu folgendes Script:
<%
dim conn
dim rs
dim prop
dim strSQL
const dbalias = "Datenbankalias"
const dbuser = "Username"
const dbpwd = "Passwort"
set conn = Server.CreateObject("ADODB.Connection")
conn.open dbalias, dbuser, dbpwd
strSQL = "SQL-Anweisung"
set rs = Server.CreateObject("ADODB.Recordset")
rs.CursorType = 1
rs.CursorLocation = 1
rs.LockType = 1
rs.Open strSQL, conn
for each prop in rs.Fields.Item(0).Properties
response.write(prop.name)
response.write("=")
response.write(prop.value)
response.write("<br>")
next
rs.Close
set rs = Nothing
conn.Close
set conn = nothing
%>
Hier das Resultat:
BASECATALOGNAME=eshop_developer
BASECOLUMNNAME=productid
BASESCHEMANAME=
BASETABLENAME=products
CLSID=
COLLATINGSEQUENCE=
COMPUTEMODE=
DATETIMEPRECISION=
DEFAULTVALUE=
DOMAINCATALOG=
DOMAINSCHEMA=
DOMAINNAME=
HASDEFAULT=
ISAUTOINCREMENT=True
ISCASESENSITIVE=False
ISSEARCHABLE=3
ISUNIQUE=
OCTETLENGTH=
KEYCOLUMN=False
OPTIMIZE=False
Mich interssiert nun die einzelnen Eigenschaft und ihre Werte. In der
ADO-Dokumentation konnte ich keine Informationen dar�ber finden, welche
Werte welche Bedeutung haben! Kann mir einer dabei helfen?
Vielen Dank!
Michael.
| [aspdedatabase] als [email protected] subscribed
| http://www.aspgerman.com/archiv/aspdedatabase/ = Listenarchiv
| Sie k�nnen sich unter folgender URL an- und abmelden:
| http://www.aspgerman.com/aspgerman/listen/anmelden/aspdedatabase.asp