Click here to Skip to main content
15,924,828 members
Home / Discussions / Database
   

Database

 
GeneralRe: Debug Transact SQL in SQL 2005 Pin
Wendelius18-Aug-08 4:50
mentorWendelius18-Aug-08 4:50 
Questionhow to check wherther a passed string contains a specified word or not . Pin
lakshmichawala16-Aug-08 1:52
lakshmichawala16-Aug-08 1:52 
AnswerRe: how to check wherther a passed string contains a specified word or not . Pin
Blue_Boy16-Aug-08 3:25
Blue_Boy16-Aug-08 3:25 
QuestionImporting multiple files Pin
Kicza14-Aug-08 22:40
Kicza14-Aug-08 22:40 
AnswerRe: Importing multiple files Pin
Mycroft Holmes14-Aug-08 22:49
professionalMycroft Holmes14-Aug-08 22:49 
AnswerThink low tech Pin
David Mujica15-Aug-08 2:56
David Mujica15-Aug-08 2:56 
QuestionBulk Data Import Pin
FyreWyrm14-Aug-08 16:11
FyreWyrm14-Aug-08 16:11 
AnswerRe: Bulk Data Import Pin
Mycroft Holmes14-Aug-08 22:58
professionalMycroft Holmes14-Aug-08 22:58 
Nasty, ugly painful SOB of a thing. I have grown to dislike most of MSs ETL products, Biztalk and SSIS. We have a similar problem which requires the ETL to handle additional columns in a data file that is uploaded daily. SSIS will choke on this and changing a package, redeploying etc AFTER it has choked is not an option.

Our solution.
The package reads the first line of the file where the column headers are and checks against the target table in SQL. All cols are varchar 500. If there is a new column (it always grows) SSIS drops the target table and passes the column names into a stored proc to recreate the table (some column names are duplicated and this is handled by the proc).

The package then bulk copies the data into the target table, it is guaranteed to work because of the previous process. I then have a proc to do the transforms into the production database. I find changing a proc to be easier than a package.


Never underestimate the power of human stupidity
RAH

GeneralRe: Bulk Data Import Pin
Wendelius15-Aug-08 5:51
mentorWendelius15-Aug-08 5:51 
GeneralRe: Bulk Data Import Pin
Mycroft Holmes15-Aug-08 14:11
professionalMycroft Holmes15-Aug-08 14:11 
GeneralRe: Bulk Data Import Pin
Wendelius15-Aug-08 21:01
mentorWendelius15-Aug-08 21:01 
QuestionNeed some help copying a column Pin
MarkB77714-Aug-08 14:57
MarkB77714-Aug-08 14:57 
AnswerRe: Need some help copying a column Pin
Mycroft Holmes14-Aug-08 15:12
professionalMycroft Holmes14-Aug-08 15:12 
GeneralRe: Need some help copying a column Pin
MarkB77714-Aug-08 15:25
MarkB77714-Aug-08 15:25 
GeneralRe: Need some help copying a column Pin
Mycroft Holmes14-Aug-08 15:37
professionalMycroft Holmes14-Aug-08 15:37 
QuestionUpdate values based on non-matched records Pin
empulse14-Aug-08 13:28
empulse14-Aug-08 13:28 
AnswerRe: Update values based on non-matched records Pin
Mycroft Holmes14-Aug-08 15:18
professionalMycroft Holmes14-Aug-08 15:18 
GeneralRe: Update values based on non-matched records Pin
empulse14-Aug-08 15:53
empulse14-Aug-08 15:53 
GeneralRe: Update values based on non-matched records Pin
Mycroft Holmes14-Aug-08 16:03
professionalMycroft Holmes14-Aug-08 16:03 
GeneralRe: Update values based on non-matched records Pin
empulse14-Aug-08 16:06
empulse14-Aug-08 16:06 
QuestionT-SQL Help Pin
RG_SA14-Aug-08 12:28
RG_SA14-Aug-08 12:28 
AnswerRe: T-SQL Help Pin
Colin Angus Mackay14-Aug-08 12:44
Colin Angus Mackay14-Aug-08 12:44 
GeneralRe: T-SQL Help Pin
RG_SA14-Aug-08 20:36
RG_SA14-Aug-08 20:36 
GeneralRe: T-SQL Help Pin
Colin Angus Mackay14-Aug-08 21:15
Colin Angus Mackay14-Aug-08 21:15 
GeneralRe: T-SQL Help Pin
RG_SA15-Aug-08 0:50
RG_SA15-Aug-08 0:50 

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.