Click here to Skip to main content
15,890,512 members
Home / Discussions / Database
   

Database

 
GeneralRe: Inner Join Problem Pin
rkherath8-Apr-07 17:27
rkherath8-Apr-07 17:27 
AnswerRe: Inner Join Problem Pin
Krish - KP6-Apr-07 2:09
Krish - KP6-Apr-07 2:09 
Questionwhen DTS package fails runnig, display message Pin
indian1435-Apr-07 20:44
indian1435-Apr-07 20:44 
QuestionUnicode, VB 2005 and SQL Server 2000 Pin
San Vibol5-Apr-07 17:21
San Vibol5-Apr-07 17:21 
QuestionMySQL connection problem Pin
shabonaa5-Apr-07 13:46
shabonaa5-Apr-07 13:46 
AnswerRe: MySQL connection problem Pin
Hayder Marzouk6-Apr-07 7:53
Hayder Marzouk6-Apr-07 7:53 
AnswerRe: MySQL connection problem Pin
shabonaa6-Apr-07 10:10
shabonaa6-Apr-07 10:10 
QuestionExtracting Primary Key to use as a Foreign Key Pin
bweaver5-Apr-07 8:18
bweaver5-Apr-07 8:18 
Hi,

I am using C# and MSSQL to read a bunch of complex objects from a file and trying to insert them into a database. To simplify and point out my problem I'll use this structure:

Object:
Name
Array a

Table1:
ObjectID (Primary Key)
Name

Table2:
ObjectID (Foreign Key)
ArrayIndex
value of a @ ArrayIndex


What I can't figure out is how to update the database. I can load the objects into a dataset, but how do I get the primary key from Table1 to insert as a foreign key into Table2? I'm currently unable to update without that foreign key.



Thanks!
AnswerRe: Extracting Primary Key to use as a Foreign Key Pin
mghiassi5-Apr-07 8:34
mghiassi5-Apr-07 8:34 
AnswerRe: Extracting Primary Key to use as a Foreign Key Pin
kubben5-Apr-07 8:37
kubben5-Apr-07 8:37 
AnswerRe: Extracting Primary Key to use as a Foreign Key Pin
bweaver5-Apr-07 8:50
bweaver5-Apr-07 8:50 
Questionsteps to include activeX scripting in a DTS package Pin
indian1435-Apr-07 1:12
indian1435-Apr-07 1:12 
QuestionOrder of procedures to add a table Pin
thecodedemon5-Apr-07 0:06
thecodedemon5-Apr-07 0:06 
QuestionWhat happened with my SQL transaction log file? Pin
Hanh Aeriscute5-Apr-07 0:00
Hanh Aeriscute5-Apr-07 0:00 
AnswerRe: What happened with my SQL transaction log file? Pin
Krish - KP6-Apr-07 4:24
Krish - KP6-Apr-07 4:24 
QuestionactiveX script for a SQL-Server DTS package Pin
indian1434-Apr-07 21:45
indian1434-Apr-07 21:45 
AnswerRe: activeX script for a SQL-Server DTS package Pin
Frank Kerrigan4-Apr-07 23:16
Frank Kerrigan4-Apr-07 23:16 
GeneralRe: activeX script for a SQL-Server DTS package Pin
indian1435-Apr-07 0:55
indian1435-Apr-07 0:55 
Questionwhats the date function for sql statement? Pin
neodeaths4-Apr-07 15:41
neodeaths4-Apr-07 15:41 
AnswerRe: whats the date function for sql statement? Pin
Christian Graus4-Apr-07 16:23
protectorChristian Graus4-Apr-07 16:23 
GeneralRe: whats the date function for sql statement? Pin
neodeaths4-Apr-07 20:11
neodeaths4-Apr-07 20:11 
GeneralRe: whats the date function for sql statement? Pin
Frank Kerrigan4-Apr-07 23:17
Frank Kerrigan4-Apr-07 23:17 
AnswerRe: whats the date function for sql statement? Pin
Krish - KP4-Apr-07 20:53
Krish - KP4-Apr-07 20:53 
GeneralRe: whats the date function for sql statement? Pin
neodeaths8-Apr-07 15:30
neodeaths8-Apr-07 15:30 
QuestionHelp with parameters Pin
User 66584-Apr-07 13:21
User 66584-Apr-07 13:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.