•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Database Design section within the Web Development category of DaniWeb, a massive community of 392,043 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,267 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Database Design advertiser:
Views: 3723 | Replies: 0
![]() |
Hey all, I have a table with a primary key in it. I use stored procedures to insert new records. What I want to know is how do I make it so a column (foreign key) in another table adds the same number as the primary key in the original table when a new record is inserted? Thanks.
Using T-SQL
Slade.
Using T-SQL
Slade.
Formerly known as Slade.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Database Design Marketplace
- phpmyadmin help (PHP)
- SQL Queries help (Database Design)
- Entity Definition (Community Introductions)
- VB and Excel. (Visual Basic 4 / 5 / 6)
- Referential Integrity (Database Design)
- Multiple Tables in a Database (Visual Basic 4 / 5 / 6)
- Multi-threading with C++.NET (C++)
- mySQL foreign keys (MySQL)
- Primary Key Issue (Visual Basic 4 / 5 / 6)
Other Threads in the Database Design Forum
- Previous Thread: "Not" operator not functioning in t-sql
- Next Thread: How to display column descriptions?


Linear Mode