Microsoft
Software
Hardware
Network
Question : MS Access GetOleDbSchemaTable DATA_TYPES and COLUMN_FLAGS questions
I am trying to get the Schema information from an MS Access database using GetOleDbSchemaTable method. The data that is returned does not match up with what is shown by Access. Example the Categories table from Northwind
Category table in Design View inside access
CategoryID - Autonumber (Long Integer)
CategoryName - Text(15)
Description - Memo
Picture - OLE Object
Category table from GetOleDbSchemaTable(COLUMN
S schema joined with PROVIDER_TYPES schema)
CategoryID - Long
CategoryName - VarChar(15)
Description - LongText
Picture - BigBinary or LongBinary
2 Questions:
1. Is there another method to get the data types, that will result in the "correct" naming of the data types?
2. The autonumber field is not identified in the columns schema, the COLUMN_FLAGS field appears to be a bitmask that includes this information as well as other info. Is there a breakdown of the COLUMN_FLAGS field somewhere that lists all the different values stored here?
Answer : MS Access GetOleDbSchemaTable DATA_TYPES and COLUMN_FLAGS questions
Sorry, in addition to being a smart ass :) I forgot to include the references
for examples of GetOleDbSchemaTable:
http://support.microsoft.c
om/default
.aspx?scid
=kb;en-
us;
309488
for COLUMN Rowset:
http://msdn.microsoft.com/
library/de
fault.asp?
url=/libra
ry/
en-us/o
ledb/htm/o
ledbcolumn
s_rowset.a
sp
for the COLUMN_FLAGS:
http://msdn.microsoft.com/
library/de
fault.asp?
url=/libra
ry/
en-us/o
ledb/htm/o
ledbicolum
nsinfo__ge
tcolumninf
o.asp
Random Solutions
SQL DateTime conversion
Outlook SP3 blocks attachments
Dicom to Jpeg Image Conversion
Installing ISA Server 2004, guide, walkthrough or step by step
HOWTO: Programatically Configure Error Pages Features Settings in IIS 7.0
Filter, Add New Sheet, Delete All Sheets
IF EXISTS versus IF NOT EXISTS problem.
SBS 2003 drops *most* Internet connections every three hours
Does CMap support multi-threading?
Folders being created - Outlook Calendar, Outlook Contacts