dbTalk Databases Forums  

Import text files into table

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Import text files into table in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Don Walter
 
Posts: n/a

Default Import text files into table - 11-19-2003 , 03:27 PM






When importing multiple text files into a SQL server table
by DTS Transform Data Task, can DTS package detect the
damaged text files (such as no charaters, or wrong format)
automatically? How to do that?

Thanks in advance.


-Don


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Import text files into table - 11-19-2003 , 04:09 PM






It will error !. You will need to pre scrub the files

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Don Walter" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
When importing multiple text files into a SQL server table
by DTS Transform Data Task, can DTS package detect the
damaged text files (such as no charaters, or wrong format)
automatically? How to do that?

Thanks in advance.


-Don




Reply With Quote
  #3  
Old   
Don
 
Posts: n/a

Default Re: Import text files into table - 11-19-2003 , 04:55 PM



Thanks, Allan.
But how to pre scrub the files?
Can you give me some suggestion on that skill?

-Don

Quote:
-----Original Message-----
It will error !. You will need to pre scrub the files

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Don Walter" <anonymous (AT) discussions (DOT) microsoft.com> wrote
in message
news:02cb01c3aee3$e07885b0$a501280a (AT) phx (DOT) gbl...
When importing multiple text files into a SQL server
table
by DTS Transform Data Task, can DTS package detect the
damaged text files (such as no charaters, or wrong
format)
automatically? How to do that?

Thanks in advance.


-Don



.


Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Import text files into table - 11-20-2003 , 12:27 AM



Darren wrote a padding task although I cannot find it at the moment.

Use VB is my answer to scrub the files. You can either call out to an
external exe to do this or write a custom task to do the scrubbing.

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Don" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thanks, Allan.
But how to pre scrub the files?
Can you give me some suggestion on that skill?

-Don

-----Original Message-----
It will error !. You will need to pre scrub the files

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Don Walter" <anonymous (AT) discussions (DOT) microsoft.com> wrote
in message
news:02cb01c3aee3$e07885b0$a501280a (AT) phx (DOT) gbl...
When importing multiple text files into a SQL server
table
by DTS Transform Data Task, can DTS package detect the
damaged text files (such as no charaters, or wrong
format)
automatically? How to do that?

Thanks in advance.


-Don



.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.