HomeForum
Welcome, Guest

How do I insert a specific value into MSSQL field
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How do I insert a specific value into MSSQL field

How do I insert a specific value into MSSQL field 2 years, 11 months ago #660

  • Frank
  • OFFLINE
  • Junior Boarder
  • Posts: 29
  • Karma: 0
The original file (delimited text) that I am reading has 6 fields to make up a single record. I have mapped the records all using the transformer to the appropriate MS SQL table. There however is a 7th field in the record which isn't part of the intial text file, which we use for grouping together the data (resort_id). This field usually contains an integer (in this case, the integer will be 1). How do I write that integer to each record along with the other fields that are already part of the record. What I need to do is create a field value to go into the MSSQL record.

mapping2.JPG

Re:How do I insert a specific value into MSSQL field 2 years, 10 months ago #662

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2183
  • Karma: 12
Frank

You may use Literal Object for it.

Add Literal Object to the transformation
Double click on it and enter the value you would like to use
Connect Literal to target field

John
  • Page:
  • 1
Time to create page: 0.17 seconds

Testimonials

Our prior imports were done using VB. Our VB expert retired. No one in my group knows VB. So Visual Importer was the answer to the lack of VB skills problem my group experienced.
Ron Bradshaw,
IT Reporting Manager,
ConAgra Foods / Lamb Weston

User Login

You only need to log in or register to use our support forum



Our customers

BP

BBC

HSBC


Databases we work with

Go to top