Viewing 15 posts - 106 through 120 (of 374 total)
SQLServerLIfer,
Thank you so much for your input.
Looks like a comprehensive solution.
I'll read about this REPLICATE thing more.
I'm not familiar with it.
November 18, 2008 at 2:03 pm
Hi Jack,
Of course SQL code will solve this very easily.
But remember? My boss doesn't want to see any "Execute SQL" Tasks
in SSIS. Unfortunately....
Unless it's really has a value and is...
November 18, 2008 at 12:39 pm
sqlizer,
Your code does not give the right results if the column is INTEGER.
Lynn's code works perfectly.
November 18, 2008 at 12:35 pm
Thank you Lynn.
So
right('0' + ltrim(rtrim(@str)), 2)
only adds leading 0 in case LEN is less than 2?
I'm just trying to understand the mechanism...
November 18, 2008 at 11:12 am
I tried what you suggested.
It worked.
But the results I saw are not the ones I expected.
But that's another story.
When I display ErrorDescription in a Script
I see one error descriptions and...
November 12, 2008 at 9:35 am
You mean building the statement string as a variable
and then select Source as a variable?
November 11, 2008 at 6:51 am
It makes me crazy...
This works:
"INSERT stg.Errors(error_desc)
VALUES (
'" + @[System::packageName] + "'
)
"
and this fails:
"INSERT stg.Errors(error_desc)
VALUES (
'" + @[System::ErrorDescription] + "'
)
"
I checked in a Script. ErrorDescription is populated.
Public Class ScriptMain
Public...
November 10, 2008 at 2:36 pm
I try to simplify the situation to isolate the problem.
Now I just write to error_desc VARCHAR(255) column:
"INSERT stg.Errors(error_desc)
VALUES (
'" + @[System::ErrorDescription] + "'
)
"
but got an error again!
Error: 0xC002F210 at...
November 10, 2008 at 2:08 pm
Peter,
I copied your code
and pasted it to Expression window.
Got error again:
Error: 0xC002F210 at SQL_LogError, Execute SQL Task: Executing the query "INSERT stg.Errors(error_code)
VALUES (
'' + @[System::ErrorCode] + ''
)
" failed with...
November 10, 2008 at 1:54 pm
Thank you for your feedback Michael.
This is the direction I am moving in.
I created a base package (template) with all connections and even
Data Flow steps. I prefer to modify Derived...
November 5, 2008 at 6:50 am
Jack,
Will I be able to build your component using that Express C# or VB.NET VS2008? If I compile it using VS2008 Express will I be able to use that...
November 4, 2008 at 11:44 am
It looks like inside Data Flow there is no way
to make a decision whether to proceed or to stop
based on the RowCount value returned from Error Output.
In my case...
October 29, 2008 at 7:45 am
I know there is a Row Count component
but how do you implement conditional flow?
I can not have two paths with an Expression like:
@[User::vGlobalErrorCount] != 0
It only works in Control Flow.
October 28, 2008 at 12:36 pm
This Error Script will translate Error Code into Error Description...
http://www.sqlservercentral.com/articles/Integration+Services/62662/[/url]
October 28, 2008 at 12:19 pm
Viewing 15 posts - 106 through 120 (of 374 total)