Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

analyse before import

Status
Not open for further replies.

ruupy

Programmer
Jan 12, 2001
29
NL
Hellow 2 u all,
As a novice on SQL i'd like to ask for advice on the following. I need to analyse a txt-file (line-by-line and character-by-character) before i enter the data in a database. I need the possibility to skip a line or even skip a character.

DTS is a great option but the control over what to import and what not is too small.
Creating a DLL in delphi and using that inside an XP (extended procedure) is an option but i'd like to know if it's possible to use plain and simple SQL code to create a SP without the use of external DLL's or DTS.

Any help is greatly appriciated!!!

Thanks
&
Regards

RuupY
 
Ruupy, what we do for some files that come from external clients (and over whom we have no control) is to create staging tables that look and smell like the production table. Once the data is imported into the staging table, we have TSQL scripts within DTS that do some evaluations and can selectively insert them into the production table.
Robert Bradley
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top