INFO: OS/2 SQL Server Run-Time and OS Error CodesID: Q116401
|
Microsoft SQL Server for OS/2 will sometimes put either C run-time errors or OS/2 errors into the SQL Server error log. This article gives a brief description of the error codes.
A C program compiled under Microsoft C for OS/2 can encounter either C run-time errors or operating system errors while it is running. C run-time errors are included from the OS/2 Microsoft C compiler's ERRNO.H file, and the operating system errors are included from BSEERR.H. SQL Server version 4.2 for OS/2 can encounter either class of error. If it encounters a C run-time error, it places a message similar to the following in the error log:
If SQL Server encounters an operating system error, it places a message in the error log similar to:Kernel C runtime error 12 in module
S:\dbms\os2\ksource\alarm\sysclk.c at line 344.
One point of confusion could come from the reference to a module on the S: drive. This is a reference from the source tree used to build the SQL Server executables at Microsoft; it has no relation to any directories on any customer site's server. This information is of no direct use unless the problem has been referred to Microsoft technical support where it could provide the support professional with additional information on the problem.Kernel OS/2 error 8 in module
S:\dbms\os2\ksource\strmio\net.c at line 953.
helpmsg sys012
Error Text
----- -----------------------------------
0 No error
1 Operation not permitted
2 No such file or directory
3 No such process
4 Interrupted function call
5 Input/output error
6 No such device or address
7 Arg list too long
8 Exec format error
9 Bad file descriptor
10 No child processes
11 Resource temporarily unavailable
12 Not enough space
13 Permission denied
14 Bad address
16 Resource device
17 File exists
18 Improper link
19 No such device
20 Not a directory
21 Is a directory
22 Invalid argument
23 Too many open files in system
24 Too many open files
25 Inappropriate I/O control operation
27 File too large
28 No space left on device
29 Invalid seek
30 Read-only file system
31 Too many links
32 Broken pipe
33 Domain error
34 Result too large
36 Resource deadlock avoided
38 Filename too long
39 No locks available
40 Function not implemented
41 Directory not empty
42 Illegal byte sequence
Error Text
----- -------------------------------
0 NO_ERROR
1 ERROR_INVALID_FUNCTION
2 ERROR_FILE_NOT_FOUND
3 ERROR_PATH_NOT_FOUND
4 ERROR_TOO_MANY_OPEN_FILES
5 ERROR_ACCESS_DENIED
6 ERROR_INVALID_HANDLE
7 ERROR_ARENA_TRASHED
8 ERROR_NOT_ENOUGH_MEMORY
9 ERROR_INVALID_BLOCK
10 ERROR_BAD_ENVIRONMENT
11 ERROR_BAD_FORMAT
12 ERROR_INVALID_ACCESS
13 ERROR_INVALID_DATA
14 RESERVED
15 ERROR_INVALID_DRIVE
16 ERROR_CURRENT_DIRECTORY
17 ERROR_NOT_SAME_DEVICE
18 ERROR_NO_MORE_FILES
19 ERROR_WRITE_PROTECT
20 ERROR_BAD_UNIT
21 ERROR_NOT_READY
22 ERROR_BAD_COMMAND
23 ERROR_CRC
24 ERROR_BAD_LENGTH
25 ERROR_SEEK
26 ERROR_NOT_DOS_DISK
27 ERROR_SECTOR_NOT_FOUND
28 ERROR_OUT_OF_PAPER
29 ERROR_WRITE_FAULT
30 ERROR_READ_FAULT
31 ERROR_GEN_FAILURE
32 ERROR_SHARING_VIOLATION
33 ERROR_LOCK_VIOLATION
34 ERROR_WRONG_DISK
35 ERROR_FCB_UNAVAILABLE
36 ERROR_SHARING_BUFFER_EXCEEDED
50 ERROR_NOT_SUPPORTED
51 ERROR_REM_NOT_LIST
52 ERROR_DUP_NAME
53 ERROR_BAD_NETPATH
54 ERROR_NETWORK_BUSY
55 ERROR_DEV_NOT_EXIST
56 ERROR_TOO_MANY_CMDS
57 ERROR_ADAP_HDW_ERR
58 ERROR_BAD_NET_RESP
59 ERROR_UNEXP_NET_ERR
60 ERROR_BAD_REM_ADAP
61 ERROR_PRINTQ_FULL
62 ERROR_NO_SPOOL_SPACE
63 ERROR_PRINT_CANCELLED
64 ERROR_NETNAME_DELETED
65 ERROR_NETWORK_ACCESS_DENIED
66 ERROR_BAD_DEV_TYPE
67 ERROR_BAD_NET_NAME
68 ERROR_TOO_MANY_NAMES
69 ERROR_TOO_MANY_SESS
70 ERROR_SHARING_PAUSED
71 ERROR_REQ_NOT_ACCEP
72 ERROR_REDIR_PAUSED
80 ERROR_FILE_EXISTS
81 ERROR_DUP_FCB
82 ERROR_CANNOT_MAKE
83 ERROR_FAIL_I24
84 ERROR_OUT_OF_STRUCTURES
85 ERROR_ALREADY_ASSIGNED
86 ERROR_INVALID_PASSWORD
87 ERROR_INVALID_PARAMETER
88 ERROR_NET_WRITE_FAULT
89 ERROR_NO_PROC_SLOTS
90 ERROR_NOT_FROZEN
91 ERR_TSTOVFL
92 ERR_TSTDUP
93 ERROR_NO_ITEMS
95 ERROR_INTERRUPT
99 ERROR_DEVICE_IN_USE
100 ERROR_TOO_MANY_SEMAPHORES
101 ERROR_EXCL_SEM_ALREADY_OWNED
102 ERROR_SEM_IS_SET
103 ERROR_TOO_MANY_SEM_REQUESTS
104 ERROR_INVALID_AT_INTERRUPT_TIME
105 ERROR_SEM_OWNER_DIED
106 ERROR_SEM_USER_LIMIT
107 ERROR_DISK_CHANGE
108 ERROR_DRIVE_LOCKED
109 ERROR_BROKEN_PIPE
110 ERROR_OPEN_FAILED
111 ERROR_BUFFER_OVERFLOW
112 ERROR_DISK_FULL
113 ERROR_NO_MORE_SEARCH_HANDLES
114 ERROR_INVALID_TARGET_HANDLE
115 ERROR_PROTECTION_VIOLATION
116 ERROR_VIOKBD_REQUEST
117 ERROR_INVALID_CATEGORY
118 ERROR_INVALID_VERIFY_SWITCH
119 ERROR_BAD_DRIVER_LEVEL
120 ERROR_CALL_NOT_IMPLEMENTED
121 ERROR_SEM_TIMEOUT
122 ERROR_INSUFFICIENT_BUFFER
123 ERROR_INVALID_NAME
124 ERROR_INVALID_LEVEL
125 ERROR_NO_VOLUME_LABEL
126 ERROR_MOD_NOT_FOUND
127 ERROR_PROC_NOT_FOUND
128 ERROR_WAIT_NO_CHILDREN
129 ERROR_CHILD_NOT_COMPLETE
130 ERROR_DIRECT_ACCESS_HANDLE
131 ERROR_NEGATIVE_SEEK
132 ERROR_SEEK_ON_DEVICE
133 ERROR_IS_JOIN_TARGET
134 ERROR_IS_JOINED
135 ERROR_IS_SUBSTED
136 ERROR_NOT_JOINED
137 ERROR_NOT_SUBSTED
138 ERROR_JOIN_TO_JOIN
139 ERROR_SUBST_TO_SUBST
140 ERROR_JOIN_TO_SUBST
141 ERROR_SUBST_TO_JOIN
142 ERROR_BUSY_DRIVE
143 ERROR_SAME_DRIVE
144 ERROR_DIR_NOT_ROOT
145 ERROR_DIR_NOT_EMPTY
146 ERROR_IS_SUBST_PATH
147 ERROR_IS_JOIN_PATH
148 ERROR_PATH_BUSY
149 ERROR_IS_SUBST_TARGET
150 ERROR_SYSTEM_TRACE
151 ERROR_INVALID_EVENT_COUNT
152 ERROR_TOO_MANY_MUXWAITERS
153 ERROR_INVALID_LIST_FORMAT
154 ERROR_LABEL_TOO_LONG
155 ERROR_TOO_MANY_TCBS
156 ERROR_SIGNAL_REFUSED
157 ERROR_DISCARDED
158 ERROR_NOT_LOCKED
159 ERROR_BAD_THREADID_ADDR
160 ERROR_BAD_ARGUMENTS
161 ERROR_BAD_PATHNAME
162 ERROR_SIGNAL_PENDING
163 ERROR_UNCERTAIN_MEDIA
164 ERROR_MAX_THRDS_REACHED
165 ERROR_MONITORS_NOT_SUPPORTED
166 ERROR_UNC_DRIVER_NOT_INSTALLED
167 ERROR_LOCK_FAILED
168 ERROR_SWAPIO_FAILED
169 ERROR_SWAPIN_FAILED
170 ERROR_BUSY
180 ERROR_INVALID_SEGMENT_NUMBER
181 ERROR_INVALID_CALLGATE
182 ERROR_INVALID_ORDINAL
183 ERROR_ALREADY_EXISTS
184 ERROR_NO_CHILD_PROCESS
185 ERROR_CHILD_ALIVE_NOWAIT
186 ERROR_INVALID_FLAG_NUMBER
187 ERROR_SEM_NOT_FOUND
188 ERROR_INVALID_STARTING_CODESEG
189 ERROR_INVALID_STACKSEG
190 ERROR_INVALID_MODULETYPE
191 ERROR_INVALID_EXE_SIGNATURE
192 ERROR_EXE_MARKED_INVALID
193 ERROR_BAD_EXE_FORMAT
194 ERROR_ITERATED_DATA_EXCEEDS_64K
195 ERROR_INVALID_MINALLOCSIZE
196 ERROR_DYNLINK_FROM_INVALID_RING
197 ERROR_IOPL_NOT_ENABLED
198 ERROR_INVALID_SEGDPL
199 ERROR_AUTODATASEG_EXCEEDS_64k
200 ERROR_RING2SEG_MUST_BE_MOVABLE
201 ERROR_RELOC_CHAIN_XEEDS_SEGLIM
202 ERROR_INFLOOP_IN_RELOC_CHAIN
203 ERROR_ENVVAR_NOT_FOUND
204 ERROR_NOT_CURRENT_CTRY
205 ERROR_NO_SIGNAL_SENT
206 ERROR_FILENAME_EXCED_RANGE
207 ERROR_RING2_STACK_IN_USE
208 ERROR_META_EXPANSION_TOO_LONG
209 ERROR_INVALID_SIGNAL_NUMBER
210 ERROR_THREAD_1_INACTIVE
211 ERROR_INFO_NOT_AVAIL
212 ERROR_LOCKED
213 ERROR_BAD_DYNALINK
214 ERROR_TOO_MANY_MODULES
215 ERROR_NESTING_NOT_ALLOWED
216 ERROR_CANNOT_SHRINK
217 ERROR_ZOMBIE_PROCESS
218 ERROR_STACK_IN_HIGH_MEMORY
219 ERROR_INVALID_EXITROUTINE_RING
220 ERROR_GETBUF_FAILED
221 ERROR_FLUSHBUF_FAILED
222 ERROR_TRANSFER_TOO_LONG
228 ERROR_NO_CHILDREN
229 ERROR_INVALID_SCREEN_GROUP
Error codes 230 - 249 are reserved
230 ERROR_BAD_PIPE
231 ERROR_PIPE_BUSY
232 ERROR_NO_DATA
233 ERROR_PIPE_NOT_CONNECTED
234 ERROR_MORE_DATA
240 ERROR_VC_DISCONNECTED
250 ERROR_CIRCULARITY_REQUESTED
251 ERROR_DIRECTORY_IN_CDS
252 ERROR_INVALID_FSD_NAME
253 ERROR_INVALID_PATH
254 ERROR_INVALID_EA_NAME
255 ERROR_EA_LIST_INCONSISTENT
256 ERROR_EA_LIST_TOO_LONG
257 ERROR_NO_META_MATCH
258 ERROR_FINDNOTIFY_TIMEOUT
259 ERROR_NO_MORE_ITEMS
260 ERROR_SEARCH_STRUC_REUSED
261 ERROR_CHAR_NOT_FOUND
262 ERROR_TOO_MUCH_STACK
263 ERROR_INVALID_ATTR
264 ERROR_INVALID_STARTING_RING
265 ERROR_INVALID_DLL_INIT_RING
266 ERROR_CANNOT_COPY
267 ERROR_DIRECTORY
268 ERROR_OPLOCKED_FILE
269 ERROR_OPLOCK_THREAD_EXISTS
270 ERROR_VOLUME_CHANGED
271 ERROR_FINDNOTIFY_HANDLE_IN_USE
272 ERROR_FINDNOTIFY_HANDLE_CLOSED
273 ERROR_NOTIFY_OBJECT_REMOVED
274 ERROR_ALREADY_SHUTDOWN
275 ERROR_EAS_DIDNT_FIT
276 ERROR_EA_FILE_CORRUPT
277 ERROR_EA_TABLE_FULL
278 ERROR_INVALID_EA_HANDLE
279 ERROR_NO_CLUSTER
280 ERROR_CREATE_EA_FILE
281 ERROR_CANNOT_OPEN_EA_FILE
303 ERROR_INVALID_PROCID
304 ERROR_INVALID_PDELTA
305 ERROR_NOT_DESCENDANT
306 ERROR_NOT_SESSION_MANAGER
307 ERROR_INVALID_PCLASS
308 ERROR_INVALID_SCOPE
309 ERROR_INVALID_THREADID
310 ERROR_DOSSUB_SHRINK
311 ERROR_DOSSUB_NOMEM
312 ERROR_DOSSUB_OVERLAP
313 ERROR_DOSSUB_BADSIZE
314 ERROR_DOSSUB_BADFLAG
315 ERROR_DOSSUB_BADSELECTOR
316 ERROR_MR_MSG_TOO_LONG
317 ERROR_MR_MID_NOT_FOUND
318 ERROR_MR_UN_ACC_MSGF
319 ERROR_MR_INV_MSGF_FORMAT
320 ERROR_MR_INV_IVCOUNT
321 ERROR_MR_UN_PERFORM
322 ERROR_TS_WAKEUP
323 ERROR_TS_SEMHANDLE
324 ERROR_TS_NOTIMER
326 ERROR_TS_HANDLE
327 ERROR_TS_DATETIME
328 ERROR_SYS_INTERNAL
329 ERROR_QUE_CURRENT_NAME
330 ERROR_QUE_PROC_NOT_OWNED
331 ERROR_QUE_PROC_OWNED
332 ERROR_QUE_DUPLICATE
333 ERROR_QUE_ELEMENT_NOT_EXIST
334 ERROR_QUE_NO_MEMORY
335 ERROR_QUE_INVALID_NAME
336 ERROR_QUE_INVALID_PRIORITY
337 ERROR_QUE_INVALID_HANDLE
338 ERROR_QUE_LINK_NOT_FOUND
339 ERROR_QUE_MEMORY_ERROR
340 ERROR_QUE_PREV_AT_END
341 ERROR_QUE_PROC_NO_ACCESS
342 ERROR_QUE_EMPTY
343 ERROR_QUE_NAME_NOT_EXIST
344 ERROR_QUE_NOT_INITIALIZED
345 ERROR_QUE_UNABLE_TO_ACCESS
346 ERROR_QUE_UNABLE_TO_ADD
347 ERROR_QUE_UNABLE_TO_INIT
349 ERROR_VIO_INVALID_MASK
350 ERROR_VIO_PTR
351 ERROR_VIO_APTR
352 ERROR_VIO_RPTR
353 ERROR_VIO_CPTR
354 ERROR_VIO_LPTR
355 ERROR_VIO_MODE
356 ERROR_VIO_WIDTH
357 ERROR_VIO_ATTR
358 ERROR_VIO_ROW
359 ERROR_VIO_COL
360 ERROR_VIO_TOPROW
361 ERROR_VIO_BOTROW
362 ERROR_VIO_RIGHTCOL
363 ERROR_VIO_LEFTCOL
364 ERROR_SCS_CALL
365 ERROR_SCS_VALUE
366 ERROR_VIO_WAIT_FLAG
367 ERROR_VIO_UNLOCK
368 ERROR_SGS_NOT_SESSION_MGR
369 ERROR_SMG_INVALID_SGID
369 ERROR_SMG_INVALID_SESSION_ID
370 ERROR_SMG_NOSG
370 ERROR_SMG_NO_SESSIONS
371 ERROR_SMG_GRP_NOT_FOUND
371 ERROR_SMG_SESSION_NOT_FOUND
372 ERROR_SMG_SET_TITLE
373 ERROR_KBD_PARAMETER
374 ERROR_KBD_NO_DEVICE
375 ERROR_KBD_INVALID_IOWAIT
376 ERROR_KBD_INVALID_LENGTH
377 ERROR_KBD_INVALID_ECHO_MASK
378 ERROR_KBD_INVALID_INPUT_MASK
379 ERROR_MON_INVALID_PARMS
380 ERROR_MON_INVALID_DEVNAME
381 ERROR_MON_INVALID_HANDLE
382 ERROR_MON_BUFFER_TOO_SMALL
383 ERROR_MON_BUFFER_EMPTY
384 ERROR_MON_DATA_TOO_LARGE
385 ERROR_MOUSE_NO_DEVICE
386 ERROR_MOUSE_INV_HANDLE
387 ERROR_MOUSE_INV_PARMS
388 ERROR_MOUSE_CANT_RESET
389 ERROR_MOUSE_DISPLAY_PARMS
390 ERROR_MOUSE_INV_MODULE
391 ERROR_MOUSE_INV_ENTRY_PT
392 ERROR_MOUSE_INV_MASK
393 NO_ERROR_MOUSE_NO_DATA
394 NO_ERROR_MOUSE_PTR_DRAWN
395 ERROR_INVALID_FREQUENCY
396 ERROR_NLS_NO_COUNTRY_FILE
397 ERROR_NLS_OPEN_FAILED
398 ERROR_NLS_NO_CTRY_CODE
398 ERROR_NO_COUNTRY_OR_CODEPAGE
399 ERROR_NLS_TABLE_TRUNCATED
400 ERROR_NLS_BAD_TYPE
401 ERROR_NLS_TYPE_NOT_FOUND
402 ERROR_VIO_SMG_ONLY
403 ERROR_VIO_INVALID_ASCIIZ
404 ERROR_VIO_DEREGISTER
405 ERROR_VIO_NO_POPUP
406 ERROR_VIO_EXISTING_POPUP
407 ERROR_KBD_SMG_ONLY
408 ERROR_KBD_INVALID_ASCIIZ
409 ERROR_KBD_INVALID_MASK
410 ERROR_KBD_REGISTER
411 ERROR_KBD_DEREGISTER
412 ERROR_MOUSE_SMG_ONLY
413 ERROR_MOUSE_INVALID_ASCIIZ
414 ERROR_MOUSE_INVALID_MASK
415 ERROR_MOUSE_REGISTER
416 ERROR_MOUSE_DEREGISTER
417 ERROR_SMG_BAD_ACTION
418 ERROR_SMG_INVALID_CALL
419 ERROR_SCS_SG_NOTFOUND
420 ERROR_SCS_NOT_SHELL
421 ERROR_VIO_INVALID_PARMS
422 ERROR_VIO_FUNCTION_OWNED
423 ERROR_VIO_RETURN
424 ERROR_SCS_INVALID_FUNCTION
425 ERROR_SCS_NOT_SESSION_MGR
426 ERROR_VIO_REGISTER
427 ERROR_VIO_NO_MODE_THREAD
428 ERROR_VIO_NO_SAVE_RESTORE_THD
429 ERROR_VIO_IN_BG
430 ERROR_VIO_ILLEGAL_DURING_POPUP
431 ERROR_SMG_NOT_BASESHELL
432 ERROR_SMG_BAD_STATUSREQ
433 ERROR_QUE_INVALID_WAIT
434 ERROR_VIO_LOCK
435 ERROR_MOUSE_INVALID_IOWAIT
436 ERROR_VIO_INVALID_HANDLE
437 ERROR_VIO_ILLEGAL_DURING_LOCK
438 ERROR_VIO_INVALID_LENGTH
439 ERROR_KBD_INVALID_HANDLE
440 ERROR_KBD_NO_MORE_HANDLE
441 ERROR_KBD_CANNOT_CREATE_KCB
442 ERROR_KBD_CODEPAGE_LOAD_INCOMPL
443 ERROR_KBD_INVALID_CODEPAGE_ID
444 ERROR_KBD_NO_CODEPAGE_SUPPORT
445 ERROR_KBD_FOCUS_REQUIRED
446 ERROR_KBD_FOCUS_ALREADY_ACTIVE
447 ERROR_KBD_KEYBOARD_BUSY
448 ERROR_KBD_INVALID_CODEPAGE
449 ERROR_KBD_UNABLE_TO_FOCUS
450 ERROR_SMG_SESSION_NON_SELECT
451 ERROR_SMG_SESSION_NOT_FOREGRND
452 ERROR_SMG_SESSION_NOT_PARENT
453 ERROR_SMG_INVALID_START_MODE
454 ERROR_SMG_INVALID_RELATED_OPT
455 ERROR_SMG_INVALID_BOND_OPTION
456 ERROR_SMG_INVALID_SELECT_OPT
457 ERROR_SMG_START_IN_BACKGROUND
458 ERROR_SMG_INVALID_STOP_OPTION
459 ERROR_SMG_BAD_RESERVE
460 ERROR_SMG_PROCESS_NOT_PARENT
461 ERROR_SMG_INVALID_DATA_LENGTH
462 ERROR_SMG_NOT_BOUND
463 ERROR_SMG_RETRY_SUB_ALLOC
464 ERROR_KBD_DETACHED
465 ERROR_VIO_DETACHED
466 ERROR_MOU_DETACHED
467 ERROR_VIO_FONT
468 ERROR_VIO_USER_FONT
469 ERROR_VIO_BAD_CP
470 ERROR_VIO_NO_CP
471 ERROR_VIO_NA_CP
472 ERROR_INVALID_CODE_PAGE
473 ERROR_CPLIST_TOO_SMALL
474 ERROR_CP_NOT_MOVED
475 ERROR_MODE_SWITCH_INIT
476 ERROR_CODE_PAGE_NOT_FOUND
477 ERROR_UNEXPECTED_SLOT_RETURNED
478 ERROR_SMG_INVALID_TRACE_OPTION
479 ERROR_VIO_INTERNAL_RESOURCE
480 ERROR_VIO_SHELL_INIT
481 ERROR_SMG_NO_HARD_ERRORS
482 ERROR_CP_SWITCH_INCOMPLETE
483 ERROR_VIO_TRANSPARENT_POPUP
484 ERROR_CRITSEC_OVERFLOW
485 ERROR_CRITSEC_UNDERFLOW
486 ERROR_VIO_BAD_RESERVE
487 ERROR_INVALID_ADDRESS
488 ERROR_ZERO_SELECTORS_REQUESTED
489 ERROR_NOT_ENOUGH_SELECTORS_AVA
490 ERROR_INVALID_SELECTOR
491 ERROR_SMG_INVALID_PROGRAM_TYPE
492 ERROR_SMG_INVALID_PGM_CONTROL
493 ERROR_SMG_INVALID_INHERIT_OPT
494 ERROR_VIO_EXTENDED_SG
495 ERROR_VIO_NOT_PRES_MGR_SG
496 ERROR_VIO_SHIELD_OWNED
497 ERROR_VIO_NO_MORE_HANDLES
498 ERROR_VIO_SEE_ERROR_LOG
499 ERROR_VIO_ASSOCIATED_DC
500 ERROR_KBD_NO_CONSOLE
501 ERROR_MOUSE_NO_CONSOLE
502 ERROR_MOUSE_INVALID_HANDLE
503 ERROR_SMG_INVALID_DEBUG_PARMS
504 ERROR_KBD_EXTENDED_SG
505 ERROR_MOU_EXTENDED_SG
506 ERROR_SMG_INVALID_ICON_FILE
Additional query words: os/2
Keywords : kbother SSrvServer
Version : OS/2:4.2
Platform : OS/2
Issue type : kbinfo
Last Reviewed: June 30, 1999