Re: Inserting and retrieving values
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Thu, 17 Jan 2008 16:19:04 -0500
Keon wrote:
I am trying to figure out the following information when storing some
info to the database, I don't know how to do this and therefore I am
stuck.
When you post this to the appropriate newsgroup (see below) you will
need to tell people what type and version of database you are using.
Your question cannot be answered without knowing this.
I am going to try and explain this to the best of my ability.
I have two tables in my db, my first table I am writing the following
information to it.
ex....
// table one
FieldID, fName, lName, Address, State, Zip;
// table two
ParentID, Data;
// FieldID is an auto generated int field
FieldID.Value = 0;
fName.Value = "Jim";
lName.Value = "Anderson";
Address.Value = "747 Quarry Rd";
State.Value = "GH";
Zip.Value = "83920";
cmd.ExecuteNonQuery();
There was no way for you to know it (except maybe by browsing through
some of the previous questions in this newsgroup before posting yours -
always a recommended practice) , but this is a classic ADO newsgroup.
ADO.Net bears very little resemblance to classic ADO so, while you may
be lucky enough to find a dotnet-knowledgeable person here who can
answer your question, you can eliminate the luck factor by posting your
question to a group where those dotnet-knowledgeable people hang out. I
suggest microsoft.public.dotnet.framework.adonet.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- Follow-Ups:
- Re: Inserting and retrieving values
- From: Keon
- Re: Inserting and retrieving values
- References:
- Inserting and retrieving values
- From: Keon
- Inserting and retrieving values
- Prev by Date: Re: How to Data Bind (C# or VB) a ComboBox?
- Next by Date: Re: Inserting and retrieving values
- Previous by thread: Inserting and retrieving values
- Next by thread: Re: Inserting and retrieving values
- Index(es):
Relevant Pages
|
|