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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search against text file

Status
Not open for further replies.

vc1881

Programmer
Nov 9, 2008
32
0
0
US
Hello,

I have a text file with a column of data. How do I search for matching records against a database field?

Thanks,

Victor
 
I believe that you need to read all lines (records) then compare certain filter.
 
The data in the text file is in the following format:

aaaaaaaaa
bbbbbbbbb
ccccccccc
ddddddddd
eeeeeeeee

what SQL commands would read every line and search against the database?

Thanks
 
Do a google search for: read text file sql server. There is a lot of examples out there.

OR you can look into doing a bulk insert of your text file into either a table or temp table.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top