Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 SQL Server 2005

Author  Topic 

krushnapanda
Starting Member

18 Posts

Posted - 2007-12-07 : 00:14:40
I have two table
1. tblCurr1
2. tblCurr2

tblCurr1 Fields are
Curr_Code,TT_Buy,Bill_Buy,TT_Sell,Bill_Sell,TC_Buy,CCY_Buy,TC_Sell,CCY_Sell

tblCurr2 Fields are
Curr_Code,TT_Buy,TT_Sell,Update_On

this is my SP
Create proc sp_notepadCurr
as
delete from tblCurr1
BULK INSERT tblCurr1 FROM 'D:\UpdateCurr_Server\Main.txt'
-- what is the NEXT

tblCurr1 Records are Update Through Notepad Daily using a SP
I want insert Curr_Code,TT_Buy,TT_Sell,Update_On (Date&Time) into tblCurr2
from tblCurr1 When tblCurr1 update through notepad file

No update tblCurr2 , insert new every time as per DateTime when tblCurr1 is
update through Notepad



Thanks

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2007-12-07 : 03:38:36
Import to a temporary table and then update accordingly.
Go to Top of Page
   

- Advertisement -