Hello,
I have seen samples on how to pull data from one table and save back to it
using the Form View control.
How do I pull from multiple tables and save back to multiple tables on one
screen? Is there a sample of this somewhere?
For example I want to create a Name and an Address from one screen. It has
to create a Name Record, a Name Address Record, and a NameAddressJoin Record.
Is there a sample of this so I can see how to pull form multiple tables and
update to them? I did write a query to pull from them, but when I go to save
how to I list multiple update and insert statements?
Thanks! 5 3064
You can always use a stored procedure that contains multiple statements.
You would pass a common set of parameters and only use them with updating
and/or inserting into the appropriate table. Additionally, if necessary,
you can also acquired any identity column value necessary to populate a
second table that's a child to the first.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."
"mimo" <mi**@discussio ns.microsoft.co m> wrote in message
news:55******** *************** ***********@mic rosoft.com... Hello,
I have seen samples on how to pull data from one table and save back to it using the Form View control.
How do I pull from multiple tables and save back to multiple tables on one screen? Is there a sample of this somewhere?
For example I want to create a Name and an Address from one screen. It has to create a Name Record, a Name Address Record, and a NameAddressJoin Record.
Is there a sample of this so I can see how to pull form multiple tables and update to them? I did write a query to pull from them, but when I go to save how to I list multiple update and insert statements?
Thanks!
Is there a good sample of this somewhere? I wrote stored procedures to
populate, update, insert, and to save the form but some reason it isn't
working I'm wondering if I have to do something in ASP.NET to make them run
correctly. All the stored procedures run in Query Analyzer fine.
"Christophe r Reed" wrote: You can always use a stored procedure that contains multiple statements. You would pass a common set of parameters and only use them with updating and/or inserting into the appropriate table. Additionally, if necessary, you can also acquired any identity column value necessary to populate a second table that's a child to the first. -- Christopher A. Reed "The oxen are slow, but the earth is patient."
"mimo" <mi**@discussio ns.microsoft.co m> wrote in message news:55******** *************** ***********@mic rosoft.com... Hello,
I have seen samples on how to pull data from one table and save back to it using the Form View control.
How do I pull from multiple tables and save back to multiple tables on one screen? Is there a sample of this somewhere?
For example I want to create a Name and an Address from one screen. It has to create a Name Record, a Name Address Record, and a NameAddressJoin Record.
Is there a sample of this so I can see how to pull form multiple tables and update to them? I did write a query to pull from them, but when I go to save how to I list multiple update and insert statements?
Thanks!
If you're using SqlCommand, the CommandType property should be set to
StoredProcedure .
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."
"mimo" <mi**@discussio ns.microsoft.co m> wrote in message
news:2B******** *************** ***********@mic rosoft.com... Is there a good sample of this somewhere? I wrote stored procedures to populate, update, insert, and to save the form but some reason it isn't working I'm wondering if I have to do something in ASP.NET to make them run correctly. All the stored procedures run in Query Analyzer fine.
"Christophe r Reed" wrote:
You can always use a stored procedure that contains multiple statements. You would pass a common set of parameters and only use them with updating and/or inserting into the appropriate table. Additionally, if necessary, you can also acquired any identity column value necessary to populate a second table that's a child to the first. -- Christopher A. Reed "The oxen are slow, but the earth is patient."
"mimo" <mi**@discussio ns.microsoft.co m> wrote in message news:55******** *************** ***********@mic rosoft.com... > Hello, > > I have seen samples on how to pull data from one table and save back to > it > using the Form View control. > > How do I pull from multiple tables and save back to multiple tables on > one > screen? Is there a sample of this somewhere? > > For example I want to create a Name and an Address from one screen. It > has > to create a Name Record, a Name Address Record, and a NameAddressJoin > Record. > > > Is there a sample of this so I can see how to pull form multiple tables > and > update to them? I did write a query to pull from them, but when I go > to > save > how to I list multiple update and insert statements? > > Thanks! > >
Is there a sample of this somewhere? I'm using the GridView wizards so I am
not writing any code to do this but the Wizards never seem to work for me. :(
"Christophe r Reed" wrote: If you're using SqlCommand, the CommandType property should be set to StoredProcedure . -- Christopher A. Reed "The oxen are slow, but the earth is patient."
"mimo" <mi**@discussio ns.microsoft.co m> wrote in message news:2B******** *************** ***********@mic rosoft.com... Is there a good sample of this somewhere? I wrote stored procedures to populate, update, insert, and to save the form but some reason it isn't working I'm wondering if I have to do something in ASP.NET to make them run correctly. All the stored procedures run in Query Analyzer fine.
"Christophe r Reed" wrote:
You can always use a stored procedure that contains multiple statements. You would pass a common set of parameters and only use them with updating and/or inserting into the appropriate table. Additionally, if necessary, you can also acquired any identity column value necessary to populate a second table that's a child to the first. -- Christopher A. Reed "The oxen are slow, but the earth is patient."
"mimo" <mi**@discussio ns.microsoft.co m> wrote in message news:55******** *************** ***********@mic rosoft.com... > Hello, > > I have seen samples on how to pull data from one table and save back to > it > using the Form View control. > > How do I pull from multiple tables and save back to multiple tables on > one > screen? Is there a sample of this somewhere? > > For example I want to create a Name and an Address from one screen. It > has > to create a Name Record, a Name Address Record, and a NameAddressJoin > Record. > > > Is there a sample of this so I can see how to pull form multiple tables > and > update to them? I did write a query to pull from them, but when I go > to > save > how to I list multiple update and insert statements? > > Thanks! > >
Look at the Quick Starts tutorials. I believe you can access them www.asp.net .
With GridViews, you'll probably use the SqlDataSource, so the attribute in
question is the SelectCommandTy pe.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."
"mimo" <mi**@discussio ns.microsoft.co m> wrote in message
news:F6******** *************** ***********@mic rosoft.com... Is there a sample of this somewhere? I'm using the GridView wizards so I am not writing any code to do this but the Wizards never seem to work for me. :(
"Christophe r Reed" wrote:
If you're using SqlCommand, the CommandType property should be set to StoredProcedure . -- Christopher A. Reed "The oxen are slow, but the earth is patient."
"mimo" <mi**@discussio ns.microsoft.co m> wrote in message news:2B******** *************** ***********@mic rosoft.com... > Is there a good sample of this somewhere? I wrote stored procedures to > populate, update, insert, and to save the form but some reason it isn't > working I'm wondering if I have to do something in ASP.NET to make them > run > correctly. All the stored procedures run in Query Analyzer fine. > > "Christophe r Reed" wrote: > >> You can always use a stored procedure that contains multiple >> statements. >> You would pass a common set of parameters and only use them with >> updating >> and/or inserting into the appropriate table. Additionally, if >> necessary, >> you can also acquired any identity column value necessary to populate >> a >> second table that's a child to the first. >> -- >> Christopher A. Reed >> "The oxen are slow, but the earth is patient." >> >> "mimo" <mi**@discussio ns.microsoft.co m> wrote in message >> news:55******** *************** ***********@mic rosoft.com... >> > Hello, >> > >> > I have seen samples on how to pull data from one table and save back >> > to >> > it >> > using the Form View control. >> > >> > How do I pull from multiple tables and save back to multiple tables >> > on >> > one >> > screen? Is there a sample of this somewhere? >> > >> > For example I want to create a Name and an Address from one screen. >> > It >> > has >> > to create a Name Record, a Name Address Record, and a >> > NameAddressJoin >> > Record. >> > >> > >> > Is there a sample of this so I can see how to pull form multiple >> > tables >> > and >> > update to them? I did write a query to pull from them, but when I >> > go >> > to >> > save >> > how to I list multiple update and insert statements? >> > >> > Thanks! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Rigga |
last post by:
Hi,
I am new to mysql and need help on how to join tables. I have a database
which contains 4 tables, the main table contains information by date order
and the other 3 contain data also in date order. So I need to write a
query that retrieves all the information for one record, lets say I want to
query on the main table any entry that is for the 2004-01-06 and this date
is also in a field called 'Date' in the other tables, how do I go...
|
by: Phin |
last post by:
I need your HELP!
I've seen all the posts on using Crystal Reports within vs.net (vb.net)
and changing a SQL query at runtime. When I tried to pass in a dataset
into the crystal report at runtime, the report still showed the results
from the default query (from within the Crystal Report).
Then I tried the XSD solution where you define a dataset (that mataches
the database and the Crystal Report) and have the Crystal Report use
this....
|
by: Neil Ginsberg |
last post by:
We're using SQL Server 7 with an Access 2000 MDB as a front end with ODBC
linked tables. I recently created a new set of tables for the app, and users
are complaining that unsaved data is being lost when they move to a new
record. This seems to be the case when there are multiple users. When there
is a single user using it, we don't seem to have that problem.
It seems that we had this problem when we first converted from an MDB back
end...
|
by: Martin Lacoste |
last post by:
Ok, before I headbutt the computer... don't know why when I add
criteria in a query, I get an 'invalid procedure call'. I also don't
know why after searching the help in access, the various access
newsgroups, the access support centre, I can seem to find no similar
situation.
I am not using any references, or VBA at all in the first place. I am
trying to set up a simple (or so I thought) query to work with the
text of two tables. ...
|
by: Daz |
last post by:
Hi. I am trying to select data from two separate MySQL tables, where I
cannot use join, but when I put the two select queries into a single
query, I get an error telling me to check my syntax. Both of the
queries work fine when I use them to query the MySQL server directly.
My guess is that the MySQL extension only expects a single resource
back from the database, but get's several, or that it just checks the
statement first, and decides...
| |
by: MVM |
last post by:
Hi,
I am attempting to run a query in MS SQL server between two tables that have
a one to many relationship.
The tables are linked on GID. What I want is one instance of every record
from Table 1 even if there isn't a record in Table 2; and even if there are
multiple records in Table 2.
Table 1:
GID
Parcel
|
by: Magnus |
last post by:
I'm testing walkthrough saving data to a Database (Multiple Tables).
http://msdn2.microsoft.com/en-us/library/4esb49b4(VS.80).aspx
In the famous Customer/Order example, I'm getting referential integrity
problems "The INSERT statement conflicted with the FOREIGN KEY
constraint..." if the identity/primary key column is "out of sync" with the
identity value in the database. I can easily acheive this f.ex. by pressing
add new record,...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |