SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Excel Source column DataType


Excel Source column DataType

Author
Message
seenajan2
seenajan2
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
Points: 6 Visits: 110
I am using Excel Source component in my dataflow task.The excel conncetion string and sheet name loads dynamcally.I am executing the package form .net web application.From the application the excel sheet location and sheet name setting in the package variable.The package executes fine with the default excel sheet which i have specified in the vaiable initially.
When I select new excel file it throws the below exception

Failed to retrieve long data for column "RiskName".


I have tried to increase the regedit entry for jet.but no luck.If i open the package in the BID and go to Excel source -advanceeditor-component properties.The External colum datatype and column datatype are different.so if i change the column datatype as same as external column datatype it works fine.But whenever i select new excel file i coluld not open the Package each time and do the same thing since it is executing outside the BID.

How can i resolve the problem.Is there any way to access the Excel source column properties from an application and match the external metadata column and outputcolumn datatype?If it is diffenrent make the necessary change before execute?
Help please..


thanks
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search