Free database = MySQL? But access IS the easiest to use with VB.NET IMHO. Access 2007 is shit btw)
For a good book rto go from VB6 to .NET whoch covers some very basic DB stuff get "Visual Basic 2005 Step By Step" By Michael Halvorson of Microsoft Press. Highly reccomend.
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
You can only use SQL Express for a limited amount of clients i think (3?)
And yeah, VB 2005 Step By Step is an awesome book. Once you get to grips with .NET then you may also be inrerested in a book in the same series called ADO.NET which is everything you need to know about databases
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
:)
later it gets into an exampke database for a (gym?) built in access. Its a good intro to the server explorer and other database tools
2 things to be aware of though. I dont think the express version has the dataform wizard and you will need visual web developer express to the web (asp.net) chapter
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
Rnd generates a decimal value between 0 and 1 so you times it by 10 to make it between 1 and 10 , if you know what i mean
You can install SQL express / MSDN libary later through add/remove programs
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
Sort of. Heres an example
Rnd() = a number between 0 and 1 with SEVERAL decimal places
Using Int(Rnd *10 ) returns integer (whole) number between 1 and 9 (because of the way it is rounded)
thats why sometimes if you want a number between 1 and 10 you see people adding 1 to it
use Cdbl instead of Cint if you want whole numbers with A LOT of decimal places (Cdbl is a double floating point value)
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
Why would .9999999 as Rnd() be rounded to 9
because it doesnt technucally round up, what changind it to an int does is lop off the decimas
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
thats what cint means
Cint = convert to int
VB will you let you get away with it by default but you really shouldnt do somthing like put an integer into a text box as it is a string
you should use Cstr to convert to string
e.g textbox2.text = Cstr(some number)
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
the easy way to know waht i mean is to make a project then go into thye project options (i think in express you double click my project and choose the debug tab) and then set OPTION STRICT to ON. It will then give you warnings if you do not have the right variable conversions
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
>You can only use SQL Express for a limited amount of clients i think (3?)
Really?
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
If you could use it on a large scale then microsoft would make no money from the rel sql. MSDE was limited to 8 and sql express is limited to 5 concurrent users.
it is also limited to:
-- Support for only 1 CPU. In systems with multiple CPUs, Express will only bind to one CPU at a time, and it cannot run queries in parallel.
-- 1 GB RAM. Express cannot use more than 1 GB of RAM at a time for queries and data pages. The program's own memory footprint is not counted.
-- 4 GB maximum database size. No one database in Express can be larger than 4 GB, but there is no limit on the number of databases you can use in Express.
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601