HP3000-L Archives

October 2017, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Charles Finley <[log in to unmask]>
Reply To:
Charles Finley <[log in to unmask]>
Date:
Wed, 4 Oct 2017 10:12:47 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
One way to do it is to import the CSV to a temporary table. You can update using SQL after that. This sort of thing can be done with a script or a stored procedure.

Sent from my iPhone

> On Oct 4, 2017, at 9:36 AM, Newton, Ernie <[log in to unmask]> wrote:
> 
> Greetings,
> 
> I know this is not an SQL listserv, but thought I'd give it a try...
> 
> Do any of you know how, using MS SQL, to update a field in a table from a comma-delimited file?
> 
> Here's what I'm looking at...
> 
> My employee table consists of
> 
> employee ID,
> name,
> address,
> phone number,
> email address
> 
> I have a file consisting of employee ID and email address.
> 
> I want to update employee table with email address when employee ID's match..
> 
> I know how to do this with Suprtool tables, but I don't have Suprtool for MS SQL. (sad to say)
> 
> Thanks in advance,
> 
> Ernie
> 
> ________________________________
> 
> This message, including any attachments, is intended solely for the use of the named recipient(s) and may contain confidential and/or privileged information. Any unauthorized review, use, disclosure or distribution of this communication(s) is expressly prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy any and all copies of the original message.
> 
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2