If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Can anyone help me with a database question?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-06-08, 16:34
moss2076 moss2076 is offline
Registered User
 
Join Date: Aug 2004
Posts: 344
Can anyone help me with a database question?

Hello I need some advice/guidance regarding designing a basic database with SQL Server and using Visual Studio 2008.

I have designed databases in Access before and used VBA for simple coding like messages. I am now wanting to start learning designing databases via SQL Server and Visual Studio.

I have designed a simple two-table relational database in sql server and used Visual Studio as the front end and have placed the two related tables on a form, and can navigate, update, delete and save the related records via the automatic Binding Navigator which Visual Studio places on the form.

Now is the part where I am getting stuck and need some help on which way to go to learn more...

I want to place my OWN buttons on the form to allow Deleting, Adding, Saving etc of the records in the two tables. I am unsure whether it is Visual Basic code I need to learn to do this, or if it is SQL code which I need to learn. Or is it a combination of both? I dont want to rely on the binding navigator as I cannot position each icon where I want. And I cannot even find the code for the navigator. I really need some help.

Can someone help me and point me in the right direction with any websites or books which I can learn from? I would be very greatful!
Reply With Quote
  #2 (permalink)  
Old 04-06-08, 19:02
m42 m42 is offline
Registered User
 
Join Date: Apr 2008
Posts: 29
That's in VB domain...
Reply With Quote
  #3 (permalink)  
Old 04-07-08, 00:54
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Its in both domains.
You should write stores procedures in SQL to edit the data, and then call those stored procedures from your application code.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #4 (permalink)  
Old 04-07-08, 07:44
m42 m42 is offline
Registered User
 
Join Date: Apr 2008
Posts: 29
True blindman, i was referring only to the "My own controls" section :P
Reply With Quote
  #5 (permalink)  
Old 04-07-08, 09:18
moss2076 moss2076 is offline
Registered User
 
Join Date: Aug 2004
Posts: 344
Thankyou for your replies, I will try doing some more research. Does anyone have any links already which might help and point me in the right direction?
Reply With Quote
  #6 (permalink)  
Old 04-07-08, 09:23
moss2076 moss2076 is offline
Registered User
 
Join Date: Aug 2004
Posts: 344
Thankyou for your replies, I will try doing some more research. Does anyone have any links already which might help and point me in the right direction?
Reply With Quote
  #7 (permalink)  
Old 04-08-08, 08:55
moss2076 moss2076 is offline
Registered User
 
Join Date: Aug 2004
Posts: 344
Can anyone recommend any links or books which a beginner to databases with VB and SQL which I may find useful?
Reply With Quote
  #8 (permalink)  
Old 04-08-08, 08:58
Thrasymachus Thrasymachus is offline
SQL Server Street Fighter
 
Join Date: Nov 2004
Location: Down The Rabbit Hole
Posts: 7,979
I am a big fan of the O'Reilly books, selections from Microsoft Press, and the w3schools website is always good to pick things up fast.
__________________
software development is where smart people go to waste their lives
Reply With Quote
  #9 (permalink)  
Old 04-09-08, 19:57
loquin loquin is offline
Super Moderator
 
Join Date: Jun 2004
Location: Arizona, USA
Posts: 1,797
Start with this ADO Tutorial.
__________________
Lou
使大吃一惊
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert

Reply With Quote
  #10 (permalink)  
Old 04-10-08, 14:28
moss2076 moss2076 is offline
Registered User
 
Join Date: Aug 2004
Posts: 344
I have researched until im blue in the face on google and purchased a book called Beginning VB 2008 Databases and I STILL cannot find what I am looking for.

It is so frustrating! The book has examples on how to create a form in VB, connect to a SQL Server Database and delete, update etc but only from pre-defined sql code eg customer id ="cust001".

All I want to do is update, delete and navigate a simple 2 table related SQL Server Database via a VB form. I want the for to display both related tables of customers and orders and add a few buttons on the form to add, delete, update and navigate through the rows.

But all the examples I find just do not show me how to do this. It is soooo frustrating!
Reply With Quote
  #11 (permalink)  
Old 04-10-08, 16:13
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Try posting your question in the VB forum:
http://www.dbforums.com/visual-basic/
Be sure to include details, as well as any code that you have tried.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On