Groups | Blog | Home
all groups > sql server replication > september 2007 >

sql server replication : Importing tables from Access to SQL Server



Shane Jones
9/28/2007 10:31:56 AM
I've inherited a project which has numerous fields that have extra spaces in
them -- this is causing a problem with data Inserts, Edits, and Deletions in
my .ASP Website.

I'm importing data tables from ACCESS 2003 into SQL Server 2005, and I need
to know if there's a way that I can Right Trim all fields on the imported
tables during the Import Process.

Will I have to scrub all these tables in ACCESS before hand, or is there a
much simplier method to trim the spaces during import.

Thanks in advance for any ideas offered.

Shane

Shane Jones
9/28/2007 12:40:07 PM
Thanks for the quick reply Andrew,

It's SSIS ...


[quoted text, click to view]

Shane Jones
9/28/2007 12:43:59 PM
Andrew -- if (for example) a particular table has numerous fields that
require a RTRIM, how would I write this SQL statement. Would you point me
in the right direction with a quick example or reference?

Thanks again.

Shane


[quoted text, click to view]

Andrew J. Kelly
9/28/2007 1:35:44 PM
You can use a SQL statement to import the data that has a RTRIM() in it for
that column or you can use a custom conversion in the ETL package. Is this
DTS or SSIS?

www.sqldts.com
www.sqlis.ocm


--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


[quoted text, click to view]
Andrew J. Kelly
9/28/2007 4:33:11 PM
I am not a SSIS expert and that is why I suggested the sites. I do see now
that you included among many other sites the DTS newsgroup but it doesn't
look like the SSIS one. I suggest you post there (leaving out all the other
ones that are not relevant) for more detailed answers.

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


[quoted text, click to view]
Shane Jones
9/28/2007 4:38:52 PM
Sounds Good -- thanks for your suggestion and help Andrew.


[quoted text, click to view]

AddThis Social Bookmark Button