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 2008 Forums
 Transact-SQL (2008)
 SQL Server 2008 - To Insert/Update in Main table f

Author  Topic 

imadiamond2016
Starting Member

29 Posts

Posted - 2011-08-21 : 08:51:02
Once the data is imported in a Staging table through Bulk Insert, then I need to do two steps:

Transformations
Insert/Update in Main table

Is the JOINS are the best tool OR there is something quicker/more efficient to perform these tasks?

sunitabeck
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2011-08-21 : 09:32:45
Since you are on SQL 2008, MERGE command may be an option for you.
Go to Top of Page

imadiamond2016
Starting Member

29 Posts

Posted - 2011-08-21 : 10:41:40
thanks a lot! That's what i was looking for.
Go to Top of Page
   

- Advertisement -