Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-08-25
5
Medium Priority
?
177 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 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

886 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