Showing posts with label transfer. Show all posts
Showing posts with label transfer. Show all posts

Friday, March 30, 2012

known error with Transfer SQL Server Objects Task...

https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=127100

I don't believe that the fix to the above issue has made its way into an SP yet. Can anyone confirm/refute this, and/or state when the fix will become publicly available &/or give a workaround?

Thanks,

Tamim.

This issue was fixed in SP1.

Knowlege transfer Template

Hi All,
I would need to do a Knowledge transfer to my client. So I require
Knowledge transfer Template or Knowledge transfer plan for SQL Server
DBA role. Please guide me on this or please send me any useful
documents or useful links?
Thanks and regards
Hi
I don't know of this being written anywhere but here are a few suggestions:
Write down what should be general or expected knowledge needed
Write down where he can find out about this in more detail e.g. web sites,
recommended courses/books etc...
Make sure system(s) are fully documented in an form where the information
can be found and understood.
Write down specific knowledge needed
Write down a framework for documentation/tutorials etc that can be used to
transfer this information
Write down a plan for how this will be transferred including what the client
needs to know before you start and the timescales involved.
Agree the above with the client and execute it, making sure that you note
any additional information that is required whilst carrying out the plan.
Agree any additional support needs required including leaving your contact
details.
John
"Praveen" wrote:

> Hi All,
> I would need to do a Knowledge transfer to my client. So I require
> Knowledge transfer Template or Knowledge transfer plan for SQL Server
> DBA role. Please guide me on this or please send me any useful
> documents or useful links?
> Thanks and regards
>

Knowlege transfer Template

Hi All,
I would need to do a Knowledge transfer to my client. So I require
Knowledge transfer Template or Knowledge transfer plan for SQL Server
DBA role. Please guide me on this or please send me any useful
documents or useful links?
Thanks and regardsHi
I don't know of this being written anywhere but here are a few suggestions:
Write down what should be general or expected knowledge needed
Write down where he can find out about this in more detail e.g. web sites,
recommended courses/books etc...
Make sure system(s) are fully documented in an form where the information
can be found and understood.
Write down specific knowledge needed
Write down a framework for documentation/tutorials etc that can be used to
transfer this information
Write down a plan for how this will be transferred including what the client
needs to know before you start and the timescales involved.
Agree the above with the client and execute it, making sure that you note
any additional information that is required whilst carrying out the plan.
Agree any additional support needs required including leaving your contact
details.
John
"Praveen" wrote:
> Hi All,
> I would need to do a Knowledge transfer to my client. So I require
> Knowledge transfer Template or Knowledge transfer plan for SQL Server
> DBA role. Please guide me on this or please send me any useful
> documents or useful links?
> Thanks and regards
>

Knowlege transfer Template

Hi All,
I would need to do a Knowledge transfer to my client. So I require
Knowledge transfer Template or Knowledge transfer plan for SQL Server
DBA role. Please guide me on this or please send me any useful
documents or useful links?
Thanks and regardsHi
I don't know of this being written anywhere but here are a few suggestions:
Write down what should be general or expected knowledge needed
Write down where he can find out about this in more detail e.g. web sites,
recommended courses/books etc...
Make sure system(s) are fully documented in an form where the information
can be found and understood.
Write down specific knowledge needed
Write down a framework for documentation/tutorials etc that can be used to
transfer this information
Write down a plan for how this will be transferred including what the client
needs to know before you start and the timescales involved.
Agree the above with the client and execute it, making sure that you note
any additional information that is required whilst carrying out the plan.
Agree any additional support needs required including leaving your contact
details.
John
"Praveen" wrote:

> Hi All,
> I would need to do a Knowledge transfer to my client. So I require
> Knowledge transfer Template or Knowledge transfer plan for SQL Server
> DBA role. Please guide me on this or please send me any useful
> documents or useful links?
> Thanks and regards
>sql

Wednesday, March 28, 2012

Kirk: Importing/Exporting with column ErrorCode, ErrorColumns

I am currently redirecting lookup failures into error tables with ErrorCode and ErrorColumn. It works fine until I want to transfer data into the archived database. The SSIS pacakage generate by SQL Exporting tool is throwing an "duplicate name of 'output column ErrorCode and ErrorColumn" error. This is caused by oledb source error output. The error output automatically add ErrorCode and ErrorColumn to the error output selection and not happy with it.

I think the question is down to "How to importing/exporting data when table contains ErrorCode or ErrorColumn column?"

Can you not use the derived column component to create 2 differntly named rows containing the same data?

-Jamie

|||

Yes, we can use different name and map them on ole db destination when writing to the error tables. We really don't want to go that way unless there is no other option.

Currently it if failing on the first step of the Data Flow, OLE DB Source, it is not reaching Derived column Transformation, and the build in SQL import/export is not working because of the same issue.

It will be good to verify so we can enhence in our sql naming standard. "Don't use ErrorCode or ErrorColumn as column name in the table; otherwise you can't use sql import/exprot tool. They are reserved keywords in SSIS."

-tianyu

|||

Are you inserting into a database table? If so then of course you cannot do this - a table cannot have 2 columns with the same name.

That doesn't mean that you can't insert identically named pipeline columns into that table. You just have to set up the mappings correctly in the destination adapter.

Have I misunderstood the problem?

-Jamie

|||

Use case for my question,

In PayRoll package, data failed username lookup redirect to Error_Dim_PayRoll table during the process. Later on I want to export the error rows to an archiving database. When you use the SQL exporting tool, the wizard will fail and complaint duplicate ErrorCode and ErrorColumn.

It is caused by OleDb Source in the package created and used by import/export tool. The OleDb source will automatically add ErrorCode and ErrorColumn column on its Error output stream.

This is based on default settings for both SQL 2005 and SSIS.

Repro Steps:

1. Create ErrorDB and ErrorDB_Reporting
2. Create Error_Dim_PayRoll tables for both database (script included bellow)
3. Run the Insert statement in ErrorDB
4. Run SQL Import/Export tool to export the row from ErrorDB to ErrorDB_Reporting (you can save generated SSIS package somewhere)
5. You will get complaints and export fails
6. Run the generated package, still fails with duplicate column name error.

CREATE TABLE [dbo].[Error_Dim_PayRoll](
[UserName] [varchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ErrorCode] [int] NULL,
[ErrorColumn] [int] NULL, [FailureReason] [varchar](100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
)
GO

INSERT INTO Error_Dim_Customer (UserName, ErrorCode, ErrorColumn, FailureReason) VALUES(NULL, 1, 1, 'Can not lookup UserKey from Employee table by UserName')
GO

|||

Tianyu Li wrote:

It is caused by OleDb Source in the package created and used by import/export tool. The OleDb source will automatically add ErrorCode and ErrorColumn column on its Error output stream.

It is caused by OleDb Source in the package created and used by import/export tool. The OleDb source will automatically add ErrorCode and ErrorColumn column on its Error output stream which conflict the columns come in from the data source.