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

Database

 
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 
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 
If you have the data already then there shouldn't be an issue. If the keys don't exist yet then you would probably have to create them on the fly. I am guessing that you are perhaps using identity columns, so you don't know the key until after you have inserted. If this is what you are doing, an option is to write a stored procedure that returns the new identity in an output parameter so the next insert can use it. In the procedure after the insert you can use @@scope_Identity to get that value that you want to return. It is the identity value that was used for that insert.

Hope that helps.
Ben
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 
AnswerRe: Help with parameters Pin
rujuc#4-Apr-07 21:09
rujuc#4-Apr-07 21:09 
GeneralRe: Help with parameters Pin
User 66585-Apr-07 12:59
User 66585-Apr-07 12:59 

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.