adojavas.inc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521
  1. <%
  2. //--------------------------------------------------------------------
  3. // Microsoft ADO
  4. //
  5. // Copyright (c) 1996-1998 Microsoft Corporation.
  6. //
  7. //
  8. //
  9. // ADO constants include file for JavaScript
  10. //
  11. //--------------------------------------------------------------------
  12. //---- CursorTypeEnum Values ----
  13. var adOpenForwardOnly = 0;
  14. var adOpenKeyset = 1;
  15. var adOpenDynamic = 2;
  16. var adOpenStatic = 3;
  17. //---- CursorOptionEnum Values ----
  18. var adHoldRecords = 0x00000100;
  19. var adMovePrevious = 0x00000200;
  20. var adAddNew = 0x01000400;
  21. var adDelete = 0x01000800;
  22. var adUpdate = 0x01008000;
  23. var adBookmark = 0x00002000;
  24. var adApproxPosition = 0x00004000;
  25. var adUpdateBatch = 0x00010000;
  26. var adResync = 0x00020000;
  27. var adNotify = 0x00040000;
  28. var adFind = 0x00080000;
  29. var adSeek = 0x00400000;
  30. var adIndex = 0x00800000;
  31. //---- LockTypeEnum Values ----
  32. var adLockReadOnly = 1;
  33. var adLockPessimistic = 2;
  34. var adLockOptimistic = 3;
  35. var adLockBatchOptimistic = 4;
  36. //---- ExecuteOptionEnum Values ----
  37. var adAsyncExecute = 0x00000010;
  38. var adAsyncFetch = 0x00000020;
  39. var adAsyncFetchNonBlocking = 0x00000040;
  40. var adExecuteNoRecords = 0x00000080;
  41. var adExecuteStream = 0x00000400;
  42. //---- ConnectOptionEnum Values ----
  43. var adAsyncConnect = 0x00000010;
  44. //---- ObjectStateEnum Values ----
  45. var adStateClosed = 0x00000000;
  46. var adStateOpen = 0x00000001;
  47. var adStateConnecting = 0x00000002;
  48. var adStateExecuting = 0x00000004;
  49. var adStateFetching = 0x00000008;
  50. //---- CursorLocationEnum Values ----
  51. var adUseServer = 2;
  52. var adUseClient = 3;
  53. //---- DataTypeEnum Values ----
  54. var adEmpty = 0;
  55. var adTinyInt = 16;
  56. var adSmallInt = 2;
  57. var adInteger = 3;
  58. var adBigInt = 20;
  59. var adUnsignedTinyInt = 17;
  60. var adUnsignedSmallInt = 18;
  61. var adUnsignedInt = 19;
  62. var adUnsignedBigInt = 21;
  63. var adSingle = 4;
  64. var adDouble = 5;
  65. var adCurrency = 6;
  66. var adDecimal = 14;
  67. var adNumeric = 131;
  68. var adBoolean = 11;
  69. var adError = 10;
  70. var adUserDefined = 132;
  71. var adVariant = 12;
  72. var adIDispatch = 9;
  73. var adIUnknown = 13;
  74. var adGUID = 72;
  75. var adDate = 7;
  76. var adDBDate = 133;
  77. var adDBTime = 134;
  78. var adDBTimeStamp = 135;
  79. var adBSTR = 8;
  80. var adChar = 129;
  81. var adVarChar = 200;
  82. var adLongVarChar = 201;
  83. var adWChar = 130;
  84. var adVarWChar = 202;
  85. var adLongVarWChar = 203;
  86. var adBinary = 128;
  87. var adVarBinary = 204;
  88. var adLongVarBinary = 205;
  89. var adChapter = 136;
  90. var adFileTime = 64;
  91. var adPropVariant = 138;
  92. var adVarNumeric = 139;
  93. var adArray = 0x2000;
  94. //---- FieldAttributeEnum Values ----
  95. var adFldMayDefer = 0x00000002;
  96. var adFldUpdatable = 0x00000004;
  97. var adFldUnknownUpdatable = 0x00000008;
  98. var adFldFixed = 0x00000010;
  99. var adFldIsNullable = 0x00000020;
  100. var adFldMayBeNull = 0x00000040;
  101. var adFldLong = 0x00000080;
  102. var adFldRowID = 0x00000100;
  103. var adFldRowVersion = 0x00000200;
  104. var adFldCacheDeferred = 0x00001000;
  105. var adFldIsChapter = 0x00002000;
  106. var adFldNegativeScale = 0x00004000;
  107. var adFldKeyColumn = 0x00008000;
  108. var adFldIsRowURL = 0x00010000;
  109. var adFldIsDefaultStream = 0x00020000;
  110. var adFldIsCollection = 0x00040000;
  111. //---- EditModeEnum Values ----
  112. var adEditNone = 0x0000;
  113. var adEditInProgress = 0x0001;
  114. var adEditAdd = 0x0002;
  115. var adEditDelete = 0x0004;
  116. //---- RecordStatusEnum Values ----
  117. var adRecOK = 0x0000000;
  118. var adRecNew = 0x0000001;
  119. var adRecModified = 0x0000002;
  120. var adRecDeleted = 0x0000004;
  121. var adRecUnmodified = 0x0000008;
  122. var adRecInvalid = 0x0000010;
  123. var adRecMultipleChanges = 0x0000040;
  124. var adRecPendingChanges = 0x0000080;
  125. var adRecCanceled = 0x0000100;
  126. var adRecCantRelease = 0x0000400;
  127. var adRecConcurrencyViolation = 0x0000800;
  128. var adRecIntegrityViolation = 0x0001000;
  129. var adRecMaxChangesExceeded = 0x0002000;
  130. var adRecObjectOpen = 0x0004000;
  131. var adRecOutOfMemory = 0x0008000;
  132. var adRecPermissionDenied = 0x0010000;
  133. var adRecSchemaViolation = 0x0020000;
  134. var adRecDBDeleted = 0x0040000;
  135. //---- GetRowsOptionEnum Values ----
  136. var adGetRowsRest = -1;
  137. //---- PositionEnum Values ----
  138. var adPosUnknown = -1;
  139. var adPosBOF = -2;
  140. var adPosEOF = -3;
  141. //---- BookmarkEnum Values ----
  142. var adBookmarkCurrent = 0;
  143. var adBookmarkFirst = 1;
  144. var adBookmarkLast = 2;
  145. //---- MarshalOptionsEnum Values ----
  146. var adMarshalAll = 0;
  147. var adMarshalModifiedOnly = 1;
  148. //---- AffectEnum Values ----
  149. var adAffectCurrent = 1;
  150. var adAffectGroup = 2;
  151. var adAffectAllChapters = 4;
  152. //---- ResyncEnum Values ----
  153. var adResyncUnderlyingValues = 1;
  154. var adResyncAllValues = 2;
  155. //---- CompareEnum Values ----
  156. var adCompareLessThan = 0;
  157. var adCompareEqual = 1;
  158. var adCompareGreaterThan = 2;
  159. var adCompareNotEqual = 3;
  160. var adCompareNotComparable = 4;
  161. //---- FilterGroupEnum Values ----
  162. var adFilterNone = 0;
  163. var adFilterPendingRecords = 1;
  164. var adFilterAffectedRecords = 2;
  165. var adFilterFetchedRecords = 3;
  166. var adFilterConflictingRecords = 5;
  167. //---- SearchDirectionEnum Values ----
  168. var adSearchForward = 1;
  169. var adSearchBackward = -1;
  170. //---- PersistFormatEnum Values ----
  171. var adPersistADTG = 0;
  172. var adPersistXML = 1;
  173. //---- StringFormatEnum Values ----
  174. var adClipString = 2;
  175. //---- ConnectPromptEnum Values ----
  176. var adPromptAlways = 1;
  177. var adPromptComplete = 2;
  178. var adPromptCompleteRequired = 3;
  179. var adPromptNever = 4;
  180. //---- ConnectModeEnum Values ----
  181. var adModeUnknown = 0;
  182. var adModeRead = 1;
  183. var adModeWrite = 2;
  184. var adModeReadWrite = 3;
  185. var adModeShareDenyRead = 4;
  186. var adModeShareDenyWrite = 8;
  187. var adModeShareExclusive = 0xc;
  188. var adModeShareDenyNone = 0x10;
  189. var adModeRecursive = 0x400000;
  190. //---- RecordCreateOptionsEnum Values ----
  191. var adCreateCollection = 0x00002000;
  192. var adCreateStructDoc = 0x80000000;
  193. var adCreateNonCollection = 0x00000000;
  194. var adOpenIfExists = 0x02000000;
  195. var adCreateOverwrite = 0x04000000;
  196. var adFailIfNotExists = -1;
  197. //---- RecordOpenOptionsEnum Values ----
  198. var adOpenRecordUnspecified = -1;
  199. var adOpenOutput = 0x00800000;
  200. var adOpenAsync = 0x00001000;
  201. var adDelayFetchStream = 0x00004000;
  202. var adDelayFetchFields = 0x00008000;
  203. var adOpenExecuteCommand = 0x00010000;
  204. //---- IsolationLevelEnum Values ----
  205. var adXactUnspecified = 0xffffffff;
  206. var adXactChaos = 0x00000010;
  207. var adXactReadUncommitted = 0x00000100;
  208. var adXactBrowse = 0x00000100;
  209. var adXactCursorStability = 0x00001000;
  210. var adXactReadCommitted = 0x00001000;
  211. var adXactRepeatableRead = 0x00010000;
  212. var adXactSerializable = 0x00100000;
  213. var adXactIsolated = 0x00100000;
  214. //---- XactAttributeEnum Values ----
  215. var adXactCommitRetaining = 0x00020000;
  216. var adXactAbortRetaining = 0x00040000;
  217. //---- PropertyAttributesEnum Values ----
  218. var adPropNotSupported = 0x0000;
  219. var adPropRequired = 0x0001;
  220. var adPropOptional = 0x0002;
  221. var adPropRead = 0x0200;
  222. var adPropWrite = 0x0400;
  223. //---- ErrorValueEnum Values ----
  224. var adErrProviderFailed = 0xbb8;
  225. var adErrInvalidArgument = 0xbb9;
  226. var adErrOpeningFile = 0xbba;
  227. var adErrReadFile = 0xbbb;
  228. var adErrWriteFile = 0xbbc;
  229. var adErrNoCurrentRecord = 0xbcd;
  230. var adErrIllegalOperation = 0xc93;
  231. var adErrCantChangeProvider = 0xc94;
  232. var adErrInTransaction = 0xcae;
  233. var adErrFeatureNotAvailable = 0xcb3;
  234. var adErrItemNotFound = 0xcc1;
  235. var adErrObjectInCollection = 0xd27;
  236. var adErrObjectNotSet = 0xd5c;
  237. var adErrDataConversion = 0xd5d;
  238. var adErrObjectClosed = 0xe78;
  239. var adErrObjectOpen = 0xe79;
  240. var adErrProviderNotFound = 0xe7a;
  241. var adErrBoundToCommand = 0xe7b;
  242. var adErrInvalidParamInfo = 0xe7c;
  243. var adErrInvalidConnection = 0xe7d;
  244. var adErrNotReentrant = 0xe7e;
  245. var adErrStillExecuting = 0xe7f;
  246. var adErrOperationCancelled = 0xe80;
  247. var adErrStillConnecting = 0xe81;
  248. var adErrInvalidTransaction = 0xe82;
  249. var adErrUnsafeOperation = 0xe84;
  250. var adwrnSecurityDialog = 0xe85;
  251. var adwrnSecurityDialogHeader = 0xe86;
  252. var adErrIntegrityViolation = 0xe87;
  253. var adErrPermissionDenied = 0xe88;
  254. var adErrDataOverflow = 0xe89;
  255. var adErrSchemaViolation = 0xe8a;
  256. var adErrSignMismatch = 0xe8b;
  257. var adErrCantConvertvalue = 0xe8c;
  258. var adErrCantCreate = 0xe8d;
  259. var adErrColumnNotOnThisRow = 0xe8e;
  260. var adErrURLIntegrViolSetColumns = 0xe8f;
  261. var adErrURLDoesNotExist = 0xe8f;
  262. var adErrTreePermissionDenied = 0xe90;
  263. var adErrInvalidURL = 0xe91;
  264. var adErrResourceLocked = 0xe92;
  265. var adErrResourceExists = 0xe93;
  266. var adErrCannotComplete = 0xe94;
  267. var adErrVolumeNotFound = 0xe95;
  268. var adErrOutOfSpace = 0xe96;
  269. var adErrResourceOutOfScope = 0xe97;
  270. var adErrUnavailable = 0xe98;
  271. var adErrURLNamedRowDoesNotExist = 0xe99;
  272. var adErrDelResOutOfScope = 0xe9a;
  273. var adErrPropInvalidColumn = 0xe9b;
  274. var adErrPropInvalidOption = 0xe9c;
  275. var adErrPropInvalidValue = 0xe9d;
  276. var adErrPropConflicting = 0xe9e;
  277. var adErrPropNotAllSettable = 0xe9f;
  278. var adErrPropNotSet = 0xea0;
  279. var adErrPropNotSettable = 0xea1;
  280. var adErrPropNotSupported = 0xea2;
  281. var adErrCatalogNotSet = 0xea3;
  282. var adErrCantChangeConnection = 0xea4;
  283. var adErrFieldsUpdateFailed = 0xea5;
  284. var adErrDenyNotSupported = 0xea6;
  285. var adErrDenyTypeNotSupported = 0xea7;
  286. var adErrProviderNotSpecified = 0xea9;
  287. var adErrConnectionStringTooLong = 0xeaa;
  288. //---- ParameterAttributesEnum Values ----
  289. var adParamSigned = 0x0010;
  290. var adParamNullable = 0x0040;
  291. var adParamLong = 0x0080;
  292. //---- ParameterDirectionEnum Values ----
  293. var adParamUnknown = 0x0000;
  294. var adParamInput = 0x0001;
  295. var adParamOutput = 0x0002;
  296. var adParamInputOutput = 0x0003;
  297. var adParamReturnValue = 0x0004;
  298. //---- CommandTypeEnum Values ----
  299. var adCmdUnknown = 0x0008;
  300. var adCmdText = 0x0001;
  301. var adCmdTable = 0x0002;
  302. var adCmdStoredProc = 0x0004;
  303. var adCmdFile = 0x0100;
  304. var adCmdTableDirect = 0x0200;
  305. //---- EventStatusEnum Values ----
  306. var adStatusOK = 0x0000001;
  307. var adStatusErrorsOccurred = 0x0000002;
  308. var adStatusCantDeny = 0x0000003;
  309. var adStatusCancel = 0x0000004;
  310. var adStatusUnwantedEvent = 0x0000005;
  311. //---- EventReasonEnum Values ----
  312. var adRsnAddNew = 1;
  313. var adRsnDelete = 2;
  314. var adRsnUpdate = 3;
  315. var adRsnUndoUpdate = 4;
  316. var adRsnUndoAddNew = 5;
  317. var adRsnUndoDelete = 6;
  318. var adRsnRequery = 7;
  319. var adRsnResynch = 8;
  320. var adRsnClose = 9;
  321. var adRsnMove = 10;
  322. var adRsnFirstChange = 11;
  323. var adRsnMoveFirst = 12;
  324. var adRsnMoveNext = 13;
  325. var adRsnMovePrevious = 14;
  326. var adRsnMoveLast = 15;
  327. //---- SchemaEnum Values ----
  328. var adSchemaProviderSpecific = -1;
  329. var adSchemaAsserts = 0;
  330. var adSchemaCatalogs = 1;
  331. var adSchemaCharacterSets = 2;
  332. var adSchemaCollations = 3;
  333. var adSchemaColumns = 4;
  334. var adSchemaCheckConstraints = 5;
  335. var adSchemaConstraintColumnUsage = 6;
  336. var adSchemaConstraintTableUsage = 7;
  337. var adSchemaKeyColumnUsage = 8;
  338. var adSchemaReferentialConstraints = 9;
  339. var adSchemaTableConstraints = 10;
  340. var adSchemaColumnsDomainUsage = 11;
  341. var adSchemaIndexes = 12;
  342. var adSchemaColumnPrivileges = 13;
  343. var adSchemaTablePrivileges = 14;
  344. var adSchemaUsagePrivileges = 15;
  345. var adSchemaProcedures = 16;
  346. var adSchemaSchemata = 17;
  347. var adSchemaSQLLanguages = 18;
  348. var adSchemaStatistics = 19;
  349. var adSchemaTables = 20;
  350. var adSchemaTranslations = 21;
  351. var adSchemaProviderTypes = 22;
  352. var adSchemaViews = 23;
  353. var adSchemaViewColumnUsage = 24;
  354. var adSchemaViewTableUsage = 25;
  355. var adSchemaProcedureParameters = 26;
  356. var adSchemaForeignKeys = 27;
  357. var adSchemaPrimaryKeys = 28;
  358. var adSchemaProcedureColumns = 29;
  359. var adSchemaDBInfoKeywords = 30;
  360. var adSchemaDBInfoLiterals = 31;
  361. var adSchemaCubes = 32;
  362. var adSchemaDimensions = 33;
  363. var adSchemaHierarchies = 34;
  364. var adSchemaLevels = 35;
  365. var adSchemaMeasures = 36;
  366. var adSchemaProperties = 37;
  367. var adSchemaMembers = 38;
  368. var adSchemaTrustees = 39;
  369. var adSchemaFunctions = 40;
  370. var adSchemaActions = 41;
  371. var adSchemaCommands = 42;
  372. var adSchemaSets = 43;
  373. //---- FieldStatusEnum Values ----
  374. var adFieldOK = 0;
  375. var adFieldCantConvertValue = 2;
  376. var adFieldIsNull = 3;
  377. var adFieldTruncated = 4;
  378. var adFieldSignMismatch = 5;
  379. var adFieldDataOverflow = 6;
  380. var adFieldCantCreate = 7;
  381. var adFieldUnavailable = 8;
  382. var adFieldPermissionDenied = 9;
  383. var adFieldIntegrityViolation = 10;
  384. var adFieldSchemaViolation = 11;
  385. var adFieldBadStatus = 12;
  386. var adFieldDefault = 13;
  387. var adFieldIgnore = 15;
  388. var adFieldDoesNotExist = 16;
  389. var adFieldInvalidURL = 17;
  390. var adFieldResourceLocked = 18;
  391. var adFieldResourceExists = 19;
  392. var adFieldCannotComplete = 20;
  393. var adFieldVolumeNotFound = 21;
  394. var adFieldOutOfSpace = 22;
  395. var adFieldCannotDeleteSource = 23;
  396. var adFieldReadOnly = 24;
  397. var adFieldResourceOutOfScope = 25;
  398. var adFieldAlreadyExists = 26;
  399. var adFieldPendingInsert = 0x10000;
  400. var adFieldPendingDelete = 0x20000;
  401. var adFieldPendingChange = 0x40000;
  402. var adFieldPendingUnknown = 0x80000;
  403. var adFieldPendingUnknownDelete = 0x100000;
  404. //---- SeekEnum Values ----
  405. var adSeekFirstEQ = 0x1;
  406. var adSeekLastEQ = 0x2;
  407. var adSeekAfterEQ = 0x4;
  408. var adSeekAfter = 0x8;
  409. var adSeekBeforeEQ = 0x10;
  410. var adSeekBefore = 0x20;
  411. //---- ADCPROP_UPDATECRITERIA_ENUM Values ----
  412. var adCriteriaKey = 0;
  413. var adCriteriaAllCols = 1;
  414. var adCriteriaUpdCols = 2;
  415. var adCriteriaTimeStamp = 3;
  416. //---- ADCPROP_ASYNCTHREADPRIORITY_ENUM Values ----
  417. var adPriorityLowest = 1;
  418. var adPriorityBelowNormal = 2;
  419. var adPriorityNormal = 3;
  420. var adPriorityAboveNormal = 4;
  421. var adPriorityHighest = 5;
  422. //---- ADCPROP_AUTORECALC_ENUM Values ----
  423. var adRecalcUpFront = 0;
  424. var adRecalcAlways = 1;
  425. //---- ADCPROP_UPDATERESYNC_ENUM Values ----
  426. var adResyncNone = 0;
  427. var adResyncAutoIncrement = 1;
  428. var adResyncConflicts = 2;
  429. var adResyncUpdates = 4;
  430. var adResyncInserts = 8;
  431. var adResyncAll = 15;
  432. //---- MoveRecordOptionsEnum Values ----
  433. var adMoveUnspecified = -1;
  434. var adMoveOverWrite = 1;
  435. var adMoveDontUpdateLinks = 2;
  436. var adMoveAllowEmulation = 4;
  437. //---- CopyRecordOptionsEnum Values ----
  438. var adCopyUnspecified = -1;
  439. var adCopyOverWrite = 1;
  440. var adCopyAllowEmulation = 4;
  441. var adCopyNonRecursive = 2;
  442. //---- StreamTypeEnum Values ----
  443. var adTypeBinary = 1;
  444. var adTypeText = 2;
  445. //---- LineSeparatorEnum Values ----
  446. var adLF = 10;
  447. var adCR = 13;
  448. var adCRLF = -1;
  449. //---- StreamOpenOptionsEnum Values ----
  450. var adOpenStreamUnspecified = -1;
  451. var adOpenStreamAsync = 1;
  452. var adOpenStreamFromRecord = 4;
  453. //---- StreamWriteEnum Values ----
  454. var adWriteChar = 0;
  455. var adWriteLine = 1;
  456. //---- SaveOptionsEnum Values ----
  457. var adSaveCreateNotExist = 1;
  458. var adSaveCreateOverWrite = 2;
  459. //---- FieldEnum Values ----
  460. var adDefaultStream = -1;
  461. var adRecordURL = -2;
  462. //---- StreamReadEnum Values ----
  463. var adReadAll = -1;
  464. var adReadLine = -2;
  465. //---- RecordTypeEnum Values ----
  466. var adSimpleRecord = 0;
  467. var adCollectionRecord = 1;
  468. var adStructDoc = 2;
  469. %>