Click here to Skip to main content
15,888,610 members
Home / Discussions / Database
   

Database

 
AnswerRe: sql view Pin
A k ch4-Jun-09 22:09
A k ch4-Jun-09 22:09 
Questioncreate proc from assembly Pin
Abdul Rahman Hamidy2-Jun-09 21:22
Abdul Rahman Hamidy2-Jun-09 21:22 
AnswerRe: create proc from assembly Pin
Abdul Rahman Hamidy2-Jun-09 22:01
Abdul Rahman Hamidy2-Jun-09 22:01 
GeneralRe: create proc from assembly Pin
Abdul Rahman Hamidy2-Jun-09 22:10
Abdul Rahman Hamidy2-Jun-09 22:10 
QuestionFind working hours between two dates Pin
Rajesh VR2-Jun-09 20:31
Rajesh VR2-Jun-09 20:31 
AnswerRe: Find working hours between two dates Pin
Blue_Boy2-Jun-09 20:54
Blue_Boy2-Jun-09 20:54 
AnswerSQL function GetBusinessDays Pin
David Mujica3-Jun-09 2:58
David Mujica3-Jun-09 2:58 
QuestionProblem with Bulk insert and insert trigger Pin
www.Developerof.NET2-Jun-09 18:45
www.Developerof.NET2-Jun-09 18:45 
Hi all,

I have a table Adp_Item_Conversion with following fields

ConversionID identity,
BranchID,
Itemcode,
BatchNo,
LotNo,
Date,
CTSCode

And i need to insert data in this table using a select query on other table as well as some predefined variables because the number of rows to be inserted is not fixed.


insert into Adp_Item_Conversion
(
BranchID,
Itemcode,
BatchNo,
LotNo,
Date,
CTSCode
)

select @branchID,Adp_master_detail.child_itemcode,@Br_No,@lt_No,@tr_date,@tr_code from Adp_master_detail where Adp_master_detail.Parent_Item=@ParentItemID

The problem is I have written an insert trigger on the table. The trigger only writes the last record to the log table. Although i have access to the trigger , i cannot change it now. So i need to rewrite the insert query so as to accommodate the insert as shown above and also the insert should be 1 row at a time. Can i use cursors or is there a other way round????

When you fail to plan, you are planning to fail.

QuestionAll Sql Command Pin
Satish Pai2-Jun-09 18:19
Satish Pai2-Jun-09 18:19 
AnswerRe: All Sql Command Pin
Ashfield2-Jun-09 21:01
Ashfield2-Jun-09 21:01 
AnswerRe: All Sql Command Pin
RussellT5-Jun-09 10:36
professionalRussellT5-Jun-09 10:36 
AnswerRe: All Sql Command Pin
Niladri_Biswas25-Jun-09 5:54
Niladri_Biswas25-Jun-09 5:54 
QuestionSQL Injection Pin
AlexeiXX32-Jun-09 16:23
AlexeiXX32-Jun-09 16:23 
AnswerRe: SQL Injection Pin
_Damian S_2-Jun-09 18:08
professional_Damian S_2-Jun-09 18:08 
Questionsql Pin
jainiraj2-Jun-09 4:25
jainiraj2-Jun-09 4:25 
AnswerRe: sql Pin
Tim Carmichael2-Jun-09 5:56
Tim Carmichael2-Jun-09 5:56 
GeneralRe: sql Pin
jainiraj2-Jun-09 18:54
jainiraj2-Jun-09 18:54 
GeneralRe: sql Pin
_Damian S_2-Jun-09 19:16
professional_Damian S_2-Jun-09 19:16 
QuestionHelp - Need Location Independent Dating Pin
Hypermommy2-Jun-09 3:07
Hypermommy2-Jun-09 3:07 
AnswerRe: Help - Need Location Independent Dating Pin
Luc Pattyn2-Jun-09 3:32
sitebuilderLuc Pattyn2-Jun-09 3:32 
QuestionStrongly Typed DataSet help Pin
Etienne_1231-Jun-09 22:34
Etienne_1231-Jun-09 22:34 
AnswerRe: Strongly Typed DataSet help Pin
AlexeiXX32-Jun-09 16:27
AlexeiXX32-Jun-09 16:27 
QuestionService Account Pin
Satish Pai1-Jun-09 18:50
Satish Pai1-Jun-09 18:50 
AnswerRe: Service Account Pin
Niladri_Biswas7-Jun-09 0:12
Niladri_Biswas7-Jun-09 0:12 
QuestionWhere to store my files? Pin
musefan1-Jun-09 4:04
musefan1-Jun-09 4:04 

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.