Click here to Skip to main content
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 21:06pm
Edited 20-Jan-13 21: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 OriginalGriff 554
1 Gihan Liyanage 338
2 RyanDev 258
3 Sergey Alexandrovich Kryukov 248
4 ChauhanAjay 220
0 Sergey Alexandrovich Kryukov 8,936
1 OriginalGriff 7,891
2 CPallini 2,603
3 Richard MacCutchan 2,121
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 21 Jan 2013
Copyright © CodeProject, 1999-2014
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