显示标签为“couple”的博文。显示所有博文
显示标签为“couple”的博文。显示所有博文

2012年3月19日星期一

any way to check the duplicated rows in destination before loading data?

Hi. As the title, I am try to figure out how to write script to prevent duplicated rows before loading data from couple csv files to the OLE database table.
Another quick question, when I use Data Conversion to convert data from string to datetime or decimal type, it always return error like potential data loss.

For your first question, probably an easier approach is to use a SORT transform to remove duplicate records before loading data into your destination.

For the other question, I think it's a matter of which format you used in your source strings. Firstly pls be aware we use locale information when doing converting strings to date types or decimals. Secondly, when converting string to date types, you have two options: normal conversion and fast-parse conversion. Normal conversion supports standard oledb formats while fastparse supports ISO 8601. (fastparse option is on the DataConversion output columns)

You'll need to get more detailed helps on this from SQLServer Books On Line. e.g. For fastparse, pls refer ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/extran9/html/bed6e2c1-791a-4fa1-b29f-cbfdd1fa8d39.htm

thanks

wenyang

|||Thanks for your fast response. My first question is to load date from CSV files to the table, but don't insert the duplicated rows which are already existed in the table.|||

I see. you want to avoid inserting rows which'll duplicate rows in your existing destination table. In that case, you can do a lookup first, then leading only those "failing" rows to destination. Remember to set Lookup's error flow handling to Redirect.

thanks

wenyang

2012年3月8日星期四

Any Recommended CBT?

Couple of good CBTs (I'm also in the UK)
Firstly the Dummies guide to 228, honestly its a good book
and has some really good practice tests.
However if you want the daddy of them all go to
www.trancender.com which offer the best 228 questions
money can buy.
Peter
"The best minds are not in government. If any were,
business would steal them away."
Ronald Reagan

>--Original Message--
>Afternoon All
>I have been trawling around for a computer based course
to point me in the
>direction for the 70-228 exam.
>I have found loads but wondered if anybody had any
experiences that they
>would like to share, good or bad of any specific
courses. I have experience
>of installing & administering SQL in relation to specific
products, so I am
>not a beginner, but by no means an expert!
>I am in the UK so would need it to be available here, any
feedback would be
>much appreciated.
>--
>Regards
>Peter
>.
>
Thanks, Peter - I'll take a look.
Is there an actual official Microsoft Computer Based course for this - or
have they missed a revenue opportunity? (Not like them!!)
Pete
"Peter The Spate" <anonymous@.discussions.microsoft.com> wrote in message
news:0c5201c49cd4$744cb340$a501280a@.phx.gbl...[vbcol=seagreen]
> Couple of good CBTs (I'm also in the UK)
> Firstly the Dummies guide to 228, honestly its a good book
> and has some really good practice tests.
> However if you want the daddy of them all go to
> www.trancender.com which offer the best 228 questions
> money can buy.
> Peter
> "The best minds are not in government. If any were,
> business would steal them away."
> Ronald Reagan
>
> to point me in the
> experiences that they
> courses. I have experience
> products, so I am
> feedback would be

2012年2月9日星期四

ANSI SQL Question

I have been googling the last couple of days hoping to find some "end-all" reference for the ANSI SQL-92 standard. I have come up with nothing.
If any of you know a site or a book that has the entire ANSI SQL-92 standard please let me know!
thanks.http://global.ihs.com/standards.cfm?currency_code=USD&customer_id=2125452A5B0A&shopping_cart_id=27242837254950344E5A5020210A&rid=Z56&country_code=US&lang_code=ENGL|||http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt|||Thanks guys, I'm sure this will help!