Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Adding linked records Expand / Collapse
Author
Message
Posted Sunday, October 21, 2012 1:59 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, October 29, 2012 1:20 AM
Points: 4, Visits: 30
I need to add records to a DB in SQL Server 2005.

Each composite record represents a project in the table PROJECT, with client and agent addresses in the table ADDRESS, with foreign keys Client_addr_id and Agent_addr_id and primary key Addr_id in ADDRESS.

Can someone show me how to add the composite record in one transaction, please?

(I'm doing this from Access 2007 using DAO/ODBC, but presumably that doesn't make much different to the principles of what I'm trying to do.)

Andrew
Post #1375149
Posted Monday, October 22, 2012 7:16 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 10:39 AM
Points: 2,556, Visits: 4,398
You don't need to duplicate your posts

http://www.sqlservercentral.com/Forums/Topic1375152-1292-1.aspx


_____________________________________________
"The only true wisdom is in knowing you know nothing"
"O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!"
(So many miracle inventions provided by MS to us...)

How to post your question to get the best and quick help
Post #1375415
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse