Viewing 15 posts - 9,046 through 9,060 (of 13,877 total)
Well, I'm glad it worked. But the mixture of char data types and arithmetical operations makes me find it difficult to believe that that was what you wanted!
October 2, 2014 at 7:40 am
I think I misplaced a bracket. How about this?
update tablename
set lineno = cast((cast(lineno as int) - 12) as char(4)), sysmodified=getdate()
where 1=1
and entry=545554
and type='X'
and cast(lineno as int) >=568
October 2, 2014 at 6:42 am
marc.eilander 13301 (10/2/2014)
Hi Phil,Thanks for your reply. The datatype of the field lineno is char(4), null
KR
So there's your problem. It's non-numeric. You need something more like this (untested):
update tablename
set...
October 2, 2014 at 6:06 am
Does the account executing the package have access (and permission) to the Excel file?
If it's on a local drive on the server, I would not expect it to be...
October 2, 2014 at 3:20 am
Vic Rauch-303403 (10/2/2014)
You need to get yourself a good contact in IT who has the power to work through this with you!
I agree with that 100% Problem is...
October 2, 2014 at 1:10 am
No problem and good luck. 'Remote' troubleshooting is never fun. You need to get yourself a good contact in IT who has the power to work through this with you!
October 2, 2014 at 12:53 am
Vic Rauch-303403 (10/1/2014)
October 2, 2014 at 12:38 am
Are you using two separate data flows to do the imports? (Rather than a fancy Foreach container.)
How are you setting the run-time values of things like file name and file...
October 1, 2014 at 1:13 pm
Is the spreadsheet located on a local drive on the server?
If not, can you try putting the spreadsheet there and seeing whether it works? If it does, this is likely...
October 1, 2014 at 12:29 pm
ishitvora1122 (9/30/2014)
I believe the CASE function with INSERT & UPDATE will still meet the OP's requirements..Cheers
From the initial post:
I have a Nullable columns. I want the value to be zero...
October 1, 2014 at 2:00 am
Most people on this forum speak English. If you can translate your question, you will probably get a better response.
September 30, 2014 at 8:12 am
Unless you are correcting data as it moves from Excel to Access, I cannot think of any reason why you could not use SSIS to import the data from Excel....
September 30, 2014 at 5:19 am
antonela (9/29/2014)
But I think that...
September 29, 2014 at 11:11 am
Koen Verbeeck (9/29/2014)
The YEAR function (and MONTH and DAY) only work on date data types, not on strings.You'll get these errors when your input column is a string data type.
They...
September 29, 2014 at 3:56 am
Viewing 15 posts - 9,046 through 9,060 (of 13,877 total)