Click here to Skip to main content
11,495,319 members (36,568 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: SQL database VB.NET
Hey all,

I'm trying to create a game for myself (and learn to program a bit), and I want to learn how to use SQL queries to get information from a database. I'll use that information to set a custom object's variables.

All I have to do now is:
- create the database.
- learn how to have my program get information from that database.

I've tried searching the web, but I don't really know what to search for...

Please point me in the right direction.

I'm using Visual Basic 2010 Express.
I think I can learn enough about SQL from w3schools.
I want my database to contain the variables for 1499 objects, each object has 20-30 variables. (I still have to figure out how many :P .)

Help would be greatly appreciated!

EDIT:
Thanks for the responses, seems I've got a lot of reading to do.
Posted 20-Jan-13 22:06pm
Edited 20-Jan-13 22:22pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Short answer is: use ADO.NET:
http://en.wikipedia.org/wiki/ADO.NET[^],
http://msdn.microsoft.com/en-us/library/aa286484.aspx[^].

I usually recommend this short by very informative CodeProject article to get started: Using ADO.NET for beginners[^].

—SA
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

A long way to travel-
You have to learn about the connection string for database and Data retrieval and processing in VB.net .
Its better if you start with ADO.net, here is an article For beginners-

Using ADO.NET for beginners[^]

I think the above article is enough for beginning, rest you can explore later.

Hope it helps.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

This link could also be useful for you.

A Beginner's Tutorial for Understanding ADO.NET[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Dnyaneshwar@Pune 692
1 CHill60 318
2 Sascha Lefèvre 280
3 Sergey Alexandrovich Kryukov 245
4 Nakul Chaudhari 236
0 Sergey Alexandrovich Kryukov 10,307
1 OriginalGriff 8,821
2 Sascha Lefèvre 3,889
3 Maciej Los 3,412
4 Richard Deeming 2,560


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 21 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100