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
 SSIS and Import/Export (2005)
 question about data check before inserting into DB

Author  Topic 

aksana
Starting Member

13 Posts

Posted - 2008-07-31 : 04:18:29
hi, everyone.
Im looking for the way to insert excel data into SQL2005DB using openrowset.

Excel might have more than a hundred records.
I dont want to insert any duplicate records.

can openrowset recognize the duplicates records??

and also I want to marge two field in Excel and put into one column.
for example,
--------
Excel field - firat:aksana + last:rizkova
DB column - name: aksana rizkova
--------
can I do that?

if anyone knows, please tell me.
Ive been looing at this site below but it doesnt say.
or maybe I m watching a wrong section,,,,
http://msdn.microsoft.com/en-us/library/ms187833.aspx

thank you,
aksana

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-07-31 : 05:46:16
yup you can. put the result of openrowset into a temporary table and then take distinct record from it per name.
Go to Top of Page
   

- Advertisement -