Solved

SSIS - Import from Excel to SQL Table

Posted on 2011-02-15
1
343 Views
Last Modified: 2012-08-13
SQL 2008 - SSIS

I have 5 Columns in the Excel Sheet -
While Importing to SQL Table, i need to add or include DateModified Field in the SQL Table.

DateModified Column is not in the Excel Sheet. We need to mention in the SQL Table which help us to understand the date of Import.

Do i need to add a Trigger ?

How should i do this ?
0
Comment
Question by:chokka
1 Comment
 
LVL 32

Accepted Solution

by:
ewangoya earned 500 total points
Comment Utility

Add the DateModified field to you sql table and set the default value to GETDATE()
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now