|
-
July 27th, 2002, 09:05 PM
#1
Size of OleDbType Fields
How do you figure out the different field sizes for OleDbType?
OleDbType.Integer is 4
OleDbType.VarChar is whatever the string length is
but what about the Date, Decimal, Numeric and all the other available types? I tried sizeof() but it only works on classes, not fields. Anyone have any ideas?
-
August 7th, 2002, 05:52 PM
#2
Re: Size of OleDbType Fields
Originally posted by dvlpr
How do you figure out the different field sizes for OleDbType?
OleDbType.Integer is 4
OleDbType.VarChar is whatever the string length is
but what about the Date, Decimal, Numeric and all the other available types? I tried sizeof() but it only works on classes, not fields. Anyone have any ideas?
Have you tried SizeOf(System.DateTime) for OleDbType.Date? If you read the following link, it tells you what each of various OleDbType's map too.
http://msdn.microsoft.com/library/de...ClassTopic.asp
I hope this helps you out.
-
December 15th, 2007, 01:38 PM
#3
Re: Size of OleDbType Fields
Won't someone come up with an answer to this post. I have the same problem. I cannot find the correct size for the OleDbType.Date. In a few days time, I will have problems with the others.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|