Solved

Data types in VB.net do not match up with ones in MSDE

Posted on 2004-08-25
5
175 Views
Last Modified: 2010-04-23
I am trying to match my data type in vb to the data structure I am setting up in MSDE.  I am using ASP.net WebMatrix to create the database in MSDE.  In my vb.net program I Dim my variables to Int16, Boolean, and String.  What should I match them to in MSDE.  All I have to choose from is Int, Number, VarChar, Char, no Boolean exist.

Thanks
Kenny
0
Comment
Question by:kwh3856
  • 4
5 Comments
 
LVL 3

Accepted Solution

by:
DJ_Back-Q earned 500 total points
ID: 11894577
Int16 = Int
Boolean = Bit (this will be either 0 or 1, convert it using ctype)
String = VarChar


Andre,

MCSD
0
 
LVL 3

Expert Comment

by:DJ_Back-Q
ID: 11894588
Also depending on the version you have, there is also a text field type now, you can use this instead of varchar or nvarchar.
0
 
LVL 3

Expert Comment

by:DJ_Back-Q
ID: 11894606
Ho and once again, Int16 would also fit in smallint (I always forget about this type)
0
 

Author Comment

by:kwh3856
ID: 11894714
Thanks....I appreciate the quick response.

Kenny
0
 
LVL 3

Expert Comment

by:DJ_Back-Q
ID: 11894721
Always glad to help
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question