If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Stored Procedure - Read File

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-24-03, 08:35
bassist695 bassist695 is offline
Registered User
 
Join Date: Dec 2003
Location: Hartford
Posts: 11
Question Stored Procedure - Read File

I know of the stored_procedure xp_file used for file I/O, but what I need to do is get a value from a file, and compare counts of certain tables to that file.

The file is comma-separated, and the value I need is after the fourth comma.

Does anyone have a code snippet that will grab that value and store it in a variable? I can do it in basically any other language but stored procedures.

Would it be possible to write a VB6 EXE that will do that too, and then just call that EXE whenever I want to get the count? Only thing is, would I be able to get the value from the external EXE?

Thanks,
Mike
Reply With Quote
  #2 (permalink)  
Old 12-29-03, 21:04
arin_am arin_am is offline
Registered User
 
Join Date: Jun 2003
Posts: 34
Re: Stored Procedure - Read File

Can you please elaborate using examples ?? This little hard to IMAGINE...Sorry

Quote:
Originally posted by bassist695
I know of the stored_procedure xp_file used for file I/O, but what I need to do is get a value from a file, and compare counts of certain tables to that file.

The file is comma-separated, and the value I need is after the fourth comma.

Does anyone have a code snippet that will grab that value and store it in a variable? I can do it in basically any other language but stored procedures.

Would it be possible to write a VB6 EXE that will do that too, and then just call that EXE whenever I want to get the count? Only thing is, would I be able to get the value from the external EXE?

Thanks,
Mike
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On