Click here to Skip to main content
15,894,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Updated 20-Jan-13 21:22pm
v2

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
 
Share this answer
 
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.
 
Share this answer
 
This link could also be useful for you.

A Beginner's Tutorial for Understanding ADO.NET[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900