Click here to Skip to main content
15,897,145 members
Home / Discussions / Database
   

Database

 
GeneralRe: Recordset Recordcount Pin
MikeMarq29-Apr-08 13:39
MikeMarq29-Apr-08 13:39 
GeneralRe: Recordset Recordcount Pin
Blue_Boy29-Apr-08 15:25
Blue_Boy29-Apr-08 15:25 
GeneralRe: Recordset Recordcount Pin
Blue_Boy29-Apr-08 10:20
Blue_Boy29-Apr-08 10:20 
QuestionLink DBase III Files in SQL Server 2000 Pin
Behzad Ordubadi29-Apr-08 5:43
professionalBehzad Ordubadi29-Apr-08 5:43 
GeneralDTS Pin
kibromg29-Apr-08 5:32
kibromg29-Apr-08 5:32 
GeneralRe: DTS Pin
Mark J. Miller29-Apr-08 7:38
Mark J. Miller29-Apr-08 7:38 
GeneralRe: DTS Pin
kibromg30-Apr-08 2:25
kibromg30-Apr-08 2:25 
GeneralRe: DTS Pin
Mark J. Miller30-Apr-08 4:08
Mark J. Miller30-Apr-08 4:08 
Create a data flow task. Use the flat file transform as your source and either Sql Server destination or OleDb destination transform. I personnally don't like the Sql Server destination because it seems buggy to me.

If you want to prevent duplicate data you have a couple options:
1) create an empty table you can load using the data flow task. Then use a sql command to copy the data from the loading table into your target for all records which don't exist in the target. I recommend that you include a step to truncate your loading table before loading it will data. This option is probably the easiest if you're not familiar with SSIS and will probably perform best if you are working with a large dataset.

2) Add a lookup transform to your data flow task to match existing records from your target table with records in your flat file source. Then redirect any errors (ie. records which don't match, thus don't exist already in your target) to your destination transform.

3) Use 2 source transforms, one for your flat file source and one for your target table. Then use a merge transform and use it to filter any matches and return only records which don't have a match. Then pass the results to your destination transform.

Options 2 and 3 may not be viable if your target table is large, unless you have a way to filter the data for the lookup/merge. Like if you can filter the data by a date range or by some foreign key based on your knowledge of the data that is in your flat file source.

Hope this helps


GeneralRe: DTS [modified] Pin
kibromg30-Apr-08 5:42
kibromg30-Apr-08 5:42 
GeneralRe: DTS Pin
Mark J. Miller30-Apr-08 5:56
Mark J. Miller30-Apr-08 5:56 
QuestionCould we move database from SQL Server 2000 to SQL Server 7.0 ? Pin
bug_aonz29-Apr-08 5:28
bug_aonz29-Apr-08 5:28 
AnswerRe: Could we move database from SQL Server 2000 to SQL Server 7.0 ? Pin
Mark J. Miller29-Apr-08 7:34
Mark J. Miller29-Apr-08 7:34 
AnswerRe: Could we move database from SQL Server 2000 to SQL Server 7.0 ? [modified] Pin
Rob Graham30-Apr-08 3:32
Rob Graham30-Apr-08 3:32 
GeneralReading xml inside stored procedure Pin
saurabhmind29-Apr-08 4:12
saurabhmind29-Apr-08 4:12 
GeneralRe: Reading xml inside stored procedure [modified] Pin
Blue_Boy29-Apr-08 4:36
Blue_Boy29-Apr-08 4:36 
GeneralRe: Reading xml inside stored procedure Pin
saurabhmind29-Apr-08 22:33
saurabhmind29-Apr-08 22:33 
GeneralReporting Best Practises (Are there any what do you do?) Pin
GDMFSOB29-Apr-08 0:10
GDMFSOB29-Apr-08 0:10 
GeneralRe: Reporting Best Practises (Are there any what do you do?) Pin
Youtea1-May-08 16:57
Youtea1-May-08 16:57 
GeneralSelecting the latest records Pin
Kevin Brydon28-Apr-08 23:27
Kevin Brydon28-Apr-08 23:27 
GeneralRe: Selecting the latest records Pin
Blue_Boy28-Apr-08 23:55
Blue_Boy28-Apr-08 23:55 
GeneralRe: Selecting the latest records Pin
Harini N K29-Apr-08 0:13
Harini N K29-Apr-08 0:13 
GeneralRe: Selecting the latest records Pin
Kevin Brydon30-Apr-08 6:45
Kevin Brydon30-Apr-08 6:45 
GeneralRe: Selecting the latest records Pin
Blue_Boy30-Apr-08 10:16
Blue_Boy30-Apr-08 10:16 
GeneralLimit Rows in DataTable Pin
Brady Kelly28-Apr-08 23:15
Brady Kelly28-Apr-08 23:15 
QuestionSelecting 3 columns and merging??? Pin
Karan_TN28-Apr-08 21:46
Karan_TN28-Apr-08 21:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.