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:
Reply To:
Date:
Wed, 4 Oct 2017 17:33:21 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (55 lines)
Hi Ernie, 

I would just import it using the IMPORT DATA task.  You can select the flat file source, format, etc and then you can either put into a table already there or create one for it.  From there, you can do pretty much anything you'd like.  That table can be more of a staging table.  For a repeatable task, you could just save the task as a SSIS procedure and run it anytime you like. 

Thanks, 

Pedro


-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf Of Newton, Ernie
Sent: Wednesday, October 4, 2017 12:36 PM
To: [log in to unmask]
Subject: [HP3000-L] OT: MS SQL question

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 *

------------------------------------------------------
Powered by Xeams. Visit xeams.com for more information
------------------------------------------------------

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

ATOM RSS1 RSS2