Showing posts with label wizard. Show all posts
Showing posts with label wizard. Show all posts

Friday, February 24, 2012

error in create subscription wizard

When creating a subscription, if there is an error detected at the end - it creates the subscription but might not create the sql agent job, and it doesn't give you a chance to correct the error.

e.g. in the Agent Process account I forgot to prefix the username with the domain

At the end of the wizard it told me of the error, created the subscription but didn't let me go back to correct the error (and it didn't create the sql agent job). In the end it was easier to delete the subscription and create it again.

Not the end of the world but hopefully the developers will fix this in time.

thanks
Bruce

Hi, Bruce,

I was able to reproduce the issue you described with the exception that in my case the subscription was not created when the security account is specified without domain prefix in new subscription wizard.

I've entered a bug in our bug database to track this issue.

Thanks for reporting this problem.

Zhiqiang|||I'm following the steps of sample SQL Server Mobile Tutorials..
error on my replication subscription wizard :
"Initialiazing SQL Server Reconciler has failed
HRESULT 0x80045003 (29045)

The initial snapshot for publication 'SQLMobile' is not yet available. Start the Snapshot Agent to generate the snapshot for this publication. If this snapshot is currently being generated, wait for the process to complete and restart the syncronization.
HRESULT 0x80045003 (0)"

error while waiting synchronizing Data in New Subcription Wizard!!
anyone can help?how to solve this problem?

error in create subscription wizard

When creating a subscription, if there is an error detected at the end - it creates the subscription but might not create the sql agent job, and it doesn't give you a chance to correct the error.

e.g. in the Agent Process account I forgot to prefix the username with the domain

At the end of the wizard it told me of the error, created the subscription but didn't let me go back to correct the error (and it didn't create the sql agent job). In the end it was easier to delete the subscription and create it again.

Not the end of the world but hopefully the developers will fix this in time.

thanks
Bruce

Hi, Bruce,

I was able to reproduce the issue you described with the exception that in my case the subscription was not created when the security account is specified without domain prefix in new subscription wizard.

I've entered a bug in our bug database to track this issue.

Thanks for reporting this problem.

Zhiqiang|||I'm following the steps of sample SQL Server Mobile Tutorials..
error on my replication subscription wizard :
"Initialiazing SQL Server Reconciler has failed
HRESULT 0x80045003 (29045)

The initial snapshot for publication 'SQLMobile' is not yet available. Start the Snapshot Agent to generate the snapshot for this publication. If this snapshot is currently being generated, wait for the process to complete and restart the syncronization.
HRESULT 0x80045003 (0)"

error while waiting synchronizing Data in New Subcription Wizard!!
anyone can help?how to solve this problem?

Error in Copy Database Wizard execution

I've been moving databases to 2005 and have always received useful error messages regarding failures using the Copy Database wizard... until the database I am working on now - below is the entire error message - not very useful huh? - any ideas on where to look for the problem? (substituted xxxx for servernames etc)

Thanks, Chris

Event Type: Error
Event Source: SQLISPackage
Event Category: None
Event ID: 12550
Date: 1/17/2007
Time: 11:13:02 AM
User: xxxxxxx
Computer: xxxxxxx
Description:
Event Name: OnError
Message: The requested objects failed to transfer.
StackTrace: at Microsoft.SqlServer.Management.Dts.DtsTransferProvider.ExecuteTransfer()
at Microsoft.SqlServer.Management.Smo.Transfer.TransferData()
at Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.TransferDatabasesUsingSMOTransfer()
Operator: xxxxxxxxxxxxxxxxxx
Source Name: xxxx01_xxxxx02_Transfer Objects Task
Source ID: {0BDAA262-18CB-4BC8-928C-607680E0B634}
Execution ID: {83CB3AB4-3AD7-4AFE-BE5D-9EBA89434874}
Start Time: 1/17/2007 11:13:02 AM
End Time: 1/17/2007 11:13:02 AM
Data Code: 0

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Hi Chris,

This error basically says that an error occurred during the transfer of this database from server A to server B, which indeed is not very helpful.

However, Copy Database Wizard has been widely improved and you should try to use the current CTP version available:

http://www.microsoft.com/sql/ctp.mspx

There is a good chance the problem you are facing had already been fixed in this CTP.

Thanks,
Oscar.

|||

Thanks Oscar - Do I only need to install the CTP on my dev box / workstation? Or do I need to install it on the destination server? (which is where the wizard puts the package and executes it)

If I install the CTP on my workstation will SSIS packages I create / edit etc be able to be opened / edited on non SP2 CTP workstations?

(just trying to see if installing SP2 CTP is something I can do.. I can't on any servers that I am working with but might be able to on my workstation)

|||

Hi Chris,

Regarding the Copy Database Wizard, you should always install the latest version on the target machine, precisely for the reason you just described (i.e. the target machine is where the wizard puts the package and executes it). You could then launch the wizard from here and select the source database on the corresponding machine. This is assuming that it is ok for you to upgrade to this version.

Changing the version on the client side won't help much, because most of the logic is executed at the destination.

Hope this helps!

Cheers,
Oscar.

|||

OK now that I have installed SP2 CTP... Database Copy Wizard packages are failing that succeeded yesterday (so its gotten worse).

Errors are similar in all failures - error about data not accessible and then a little further down it will say the AnsiPaddingStatus is not available. I am running this under the SQL Agent account (which is dbo). These databases are going from a 2000 server to a 2005 server. (If I run 2005 to 2005 as a test I do not receive the error - only when using a 2000 box as the source)

Message: The Table '[dbo].[xxxxxxxxxx]' cannot be scripted as its data is not accessible.

...

InnerException-->Property AnsiPaddingStatus is not available for Column '[xxxxxxx]'. This property may not exist for this object, or may not be retrievable due to insufficient access rights.

|||

Hi Chris,

Could you please tell me what are the main options you are selecting from the wizard? For example, I believe you are using the SMO Transfer method instead of Detach/Attach, right? Are you selecting any extra objects apart from the whole database as part of the copy? At the end of the CDW wizard and right before you perform the copy, there is summary page. This has useful information that we could look at as well. Please, make sure you are selecting the "Save Transfer Logs" option before clicking "Finish". This will generate a TransferDump*.sql file for each object being copied (e.g. if you are copying one database with one extra object, then there will be two such files). They will be located under:

C:\Documents and Settings\onaim\Local Settings\Application Data\Microsoft\SQL Server\Smo

for that particular user, assuming SQL Server is installed on the "C" drive in this example.

You could also select "Write to a log file" versus to the Windows event viewer.

If you could send me these two files, I would have more information to be able to help you.

Thanks,
Oscar.

|||

I also forgot to mention that you do need to have sysadmin rights on the destination, otherwise you will not be able to successfully run CDW.

Cheers,
Oscar.

|||

Hello Oscar

I have a problem with Copy Database Wizard to.

Have agent account as sysadmin in both source and target database

Target server has CTP Dec 2006 installed. Bat I can’t install it to the source “production” system

Managed to transfer five databases fixing the error found at the error log file

At the sixth database I have an error that I can not understand

The error appears when trying to create a view at the target system.

errorCode=-1073548784 description=Executing the query "create view [dbo].[VShift_Cost]

as

select sf.ShiftID, SFD.UnitID, sum(sfd.charge) as Shift_Charge

from shiftcostdetail sfd inner join shiftcost sf on sfd.shiftcostid = sf.shiftcostid

group by sf.shiftid, SFD.unitID

" failed with the following error: "Invalid object name 'shiftcostdetail'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

The shiftcostdetail is an existing table and the view works fine at the source system.

Can you help?

Thanks

|||

Hi Panzin,

I already responded to your message in this other thread:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=169786&SiteID=1

Thanks,
Oscar.

|||

Yes, SMO (do not have the problem with the detach/attach - it works fine). No extra objects, I remove the logins option. Yes I was using the "Save Transfer Logs" option.

I've looked at those SQL files and saw nothing out of the ordinary in them (actually I do one db at a time becuase there is no way to specify order of dbs in the wizard (hint would be great new feature :) so its only 1 file and it runs on the destination)

The log you mentioned says same thing... hopefully this helps:

Event Type: Error
Event Source: SQLISPackage
Event Category: None
Event ID: 12550
Date: 1/17/2007
Time: 4:43:39 PM
User: xxxxxxxxxxx
Computer: RSSQLK01
Description:
Event Name: OnError
Message: The Table '[dbo].[tblxxxxxxxxxxxx]' cannot be scripted as its data is not accessible.
StackTrace: at Microsoft.SqlServer.Management.Smo.Scripter.ScriptWithList(DependencyCollection depList, SqlSmoObject[] objects)
at Microsoft.SqlServer.Management.Smo.Scripter.ScriptWithList(SqlSmoObject[] objects)
at Microsoft.SqlServer.Management.Smo.Transfer.Microsoft.SqlServer.Management.Common.ITransferMetadataProvider.SaveMetadata()
at Microsoft.SqlServer.Management.Dts.DtsTransferProvider.Configure(ITransferMetadataProvider metadataProvider)
at Microsoft.SqlServer.Management.Smo.Transfer.GetTransferProvider()
at Microsoft.SqlServer.Management.Smo.Transfer.TransferData()
at Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.TransferDatabasesUsingSMOTransfer()
InnerException-->Property AnsiPaddingStatus is not available for Column '[vcSymbol]'. This property may not exist for this object, or may not be retrievable due to insufficient access rights.
StackTrace: at Microsoft.SqlServer.Management.Smo.PropertyCollection.HandleNullValue(Int32 index)
at Microsoft.SqlServer.Management.Smo.SqlSmoObject.GetPropValueOptional(String propName)
at Microsoft.SqlServer.Management.Smo.SqlSmoObject.GetPropValueOptional[T](String propName)
at Microsoft.SqlServer.Management.Smo.Table.GetColumnPadding(Column c)
at Microsoft.SqlServer.Management.Smo.Table.GetTableAnsiPadded()
at Microsoft.SqlServer.Management.Smo.Table.ScriptCreate(StringCollection queries, ScriptingOptions so)
at Microsoft.SqlServer.Management.Smo.Scripter.ScriptWithListWorker(DependencyCollection depList, SqlSmoObject[] objects)
at Microsoft.SqlServer.Management.Smo.Scripter.ScriptWithList(DependencyCollection depList, SqlSmoObject[] objects)
Operator: xxxxxxxxxxxxxxxxxxx
Source Name: xxxxxxxxxxxxxxxxxxxxxxxx
Source ID: {3DE71A4C-00D6-4C2F-B188-EE680B19AFD9}
Execution ID: {EBD7814A-6828-4041-B08D-E8CA73CD75AF}
Start Time: 1/17/2007 4:43:39 PM
End Time: 1/17/2007 4:43:39 PM
Data Code: 0

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Just to make sure this is clear - if I detach + attach method onto the 2005 box its fine, if I then take that and use SMO to another box its fine as well... its only when using SMO directly from 2000 to 2005.

Sorry I can't be more helpful - due to the SMO issues I was more than a day behind on the project so I ended up doing the project using the detach method even though that was not desired (original request called for the source to not go offline - but we comprimised by running only in off hours). Oh and I have full dbo rights on the source and destination.

|||

Hi Chris,

Thank you for the information. Let me investigate the issue based on the information that you have sent me so far and I will get back to you as soon as possible. In the meantime, it would be great if you could something for me. Could you please go to that particular table in SQL 2000 and script it to a query window and send me the output?

Thanks,
Oscar.

|||

CREATE TABLE [tblTradeCurrencyHedgeImport] (
[iTradeCurrencyHedgeImportID] [int] IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL ,
[iCurrencyHedgeImportID] [int] NOT NULL ,
[dtDate] [smalldatetime] NULL ,
[vcSymbol] [nvarchar] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[iSettlementDate] [nvarchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[vcBuySell] [nvarchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[iAccountID] [int] NULL ,
[iHedge] [int] NULL ,
[dTradePrice] [decimal](19, 8) NULL ,
[dFxAllInRate] [decimal](19, 8) NULL ,
[iNumberOfContractsPerBreak] [decimal](13, 2) NULL ,
[iContractSize] [int] NULL ,
[dMinimumTick] [decimal](19, 8) NULL ,
[dClosePrice] [decimal](19, 8) NULL ,
[dPricePercentDiff] [decimal](19, 8) NULL ,
[dtSettlementDate] [datetime] NULL ,
[dtInsertTime] [datetime] NULL CONSTRAINT [DF__tblTradeC__dtIns__56757D0D] DEFAULT (getdate()),
[vcInsertUser] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL CONSTRAINT [DF__tblTradeC__vcIns__5769A146] DEFAULT (suser_sname()),
[dtUpdateTime] [datetime] NULL CONSTRAINT [DF__tblTradeC__dtUpd__585DC57F] DEFAULT (getdate()),
[vcUpdateUser] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL CONSTRAINT [DF__tblTradeC__vcUpd__5951E9B8] DEFAULT (suser_sname()),
CONSTRAINT [PK_tblTradeCurrencyHedgeImport] PRIMARY KEY CLUSTERED
(
[iTradeCurrencyHedgeImportID]
) WITH FILLFACTOR = 80 ON [PRIMARY]
) ON [PRIMARY]
GO

FYI this is scripted using 2000... it will not script the table in 2005 client tools - same error about not being able to determine ansi padding


|||

Hi Chris,

This is exactly what I was thinking. However, I haven't been able to reproduce it here at the lab and it would be great if you could help us by filing a bug using Microsoft Connect, including the steps that you had to follow in order to reproduce the problem. The URL for Microsoft Connect is:

http://connect.microsoft.com

I will make sure that this bug gets triaged as soon as possible.

Thanks again for your time and please let me know if I can be of any further assistance. We are here to help!

Cheers,
Oscar.

|||

The following links are also useful:

http://connect.microsoft.com/SQLServer/Feedback/

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=840523&SiteID=1

Cheers,
Oscar.

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

Error in Copy Database Wizard execution

I've been moving databases to 2005 and have always received useful error messages regarding failures using the Copy Database wizard... until the database I am working on now - below is the entire error message - not very useful huh? - any ideas on where to look for the problem? (substituted xxxx for servernames etc)

Thanks, Chris

Event Type: Error
Event Source: SQLISPackage
Event Category: None
Event ID: 12550
Date: 1/17/2007
Time: 11:13:02 AM
User: xxxxxxx
Computer: xxxxxxx
Description:
Event Name: OnError
Message: The requested objects failed to transfer.
StackTrace: at Microsoft.SqlServer.Management.Dts.DtsTransferProvider.ExecuteTransfer()
at Microsoft.SqlServer.Management.Smo.Transfer.TransferData()
at Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.TransferDatabasesUsingSMOTransfer()
Operator: xxxxxxxxxxxxxxxxxx
Source Name: xxxx01_xxxxx02_Transfer Objects Task
Source ID: {0BDAA262-18CB-4BC8-928C-607680E0B634}
Execution ID: {83CB3AB4-3AD7-4AFE-BE5D-9EBA89434874}
Start Time: 1/17/2007 11:13:02 AM
End Time: 1/17/2007 11:13:02 AM
Data Code: 0

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Hi Chris,

This error basically says that an error occurred during the transfer of this database from server A to server B, which indeed is not very helpful.

However, Copy Database Wizard has been widely improved and you should try to use the current CTP version available:

http://www.microsoft.com/sql/ctp.mspx

There is a good chance the problem you are facing had already been fixed in this CTP.

Thanks,
Oscar.

|||

Thanks Oscar - Do I only need to install the CTP on my dev box / workstation? Or do I need to install it on the destination server? (which is where the wizard puts the package and executes it)

If I install the CTP on my workstation will SSIS packages I create / edit etc be able to be opened / edited on non SP2 CTP workstations?

(just trying to see if installing SP2 CTP is something I can do.. I can't on any servers that I am working with but might be able to on my workstation)

|||

Hi Chris,

Regarding the Copy Database Wizard, you should always install the latest version on the target machine, precisely for the reason you just described (i.e. the target machine is where the wizard puts the package and executes it). You could then launch the wizard from here and select the source database on the corresponding machine. This is assuming that it is ok for you to upgrade to this version.

Changing the version on the client side won't help much, because most of the logic is executed at the destination.

Hope this helps!

Cheers,
Oscar.

|||

OK now that I have installed SP2 CTP... Database Copy Wizard packages are failing that succeeded yesterday (so its gotten worse).

Errors are similar in all failures - error about data not accessible and then a little further down it will say the AnsiPaddingStatus is not available. I am running this under the SQL Agent account (which is dbo). These databases are going from a 2000 server to a 2005 server. (If I run 2005 to 2005 as a test I do not receive the error - only when using a 2000 box as the source)

Message: The Table '[dbo].[xxxxxxxxxx]' cannot be scripted as its data is not accessible.

...

InnerException-->Property AnsiPaddingStatus is not available for Column '[xxxxxxx]'. This property may not exist for this object, or may not be retrievable due to insufficient access rights.

|||

Hi Chris,

Could you please tell me what are the main options you are selecting from the wizard? For example, I believe you are using the SMO Transfer method instead of Detach/Attach, right? Are you selecting any extra objects apart from the whole database as part of the copy? At the end of the CDW wizard and right before you perform the copy, there is summary page. This has useful information that we could look at as well. Please, make sure you are selecting the "Save Transfer Logs" option before clicking "Finish". This will generate a TransferDump*.sql file for each object being copied (e.g. if you are copying one database with one extra object, then there will be two such files). They will be located under:

C:\Documents and Settings\onaim\Local Settings\Application Data\Microsoft\SQL Server\Smo

for that particular user, assuming SQL Server is installed on the "C" drive in this example.

You could also select "Write to a log file" versus to the Windows event viewer.

If you could send me these two files, I would have more information to be able to help you.

Thanks,
Oscar.

|||

I also forgot to mention that you do need to have sysadmin rights on the destination, otherwise you will not be able to successfully run CDW.

Cheers,
Oscar.

|||

Hello Oscar

I have a problem with Copy Database Wizard to.

Have agent account as sysadmin in both source and target database

Target server has CTP Dec 2006 installed. Bat I can’t install it to the source “production” system

Managed to transfer five databases fixing the error found at the error log file

At the sixth database I have an error that I can not understand

The error appears when trying to create a view at the target system.

errorCode=-1073548784 description=Executing the query "create view [dbo].[VShift_Cost]

as

select sf.ShiftID, SFD.UnitID, sum(sfd.charge) as Shift_Charge

from shiftcostdetail sfd inner join shiftcost sf on sfd.shiftcostid = sf.shiftcostid

group by sf.shiftid, SFD.unitID

" failed with the following error: "Invalid object name 'shiftcostdetail'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

The shiftcostdetail is an existing table and the view works fine at the source system.

Can you help?

Thanks

|||

Hi Panzin,

I already responded to your message in this other thread:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=169786&SiteID=1

Thanks,
Oscar.

|||

Yes, SMO (do not have the problem with the detach/attach - it works fine). No extra objects, I remove the logins option. Yes I was using the "Save Transfer Logs" option.

I've looked at those SQL files and saw nothing out of the ordinary in them (actually I do one db at a time becuase there is no way to specify order of dbs in the wizard (hint would be great new feature :) so its only 1 file and it runs on the destination)

The log you mentioned says same thing... hopefully this helps:

Event Type: Error
Event Source: SQLISPackage
Event Category: None
Event ID: 12550
Date: 1/17/2007
Time: 4:43:39 PM
User: xxxxxxxxxxx
Computer: RSSQLK01
Description:
Event Name: OnError
Message: The Table '[dbo].[tblxxxxxxxxxxxx]' cannot be scripted as its data is not accessible.
StackTrace: at Microsoft.SqlServer.Management.Smo.Scripter.ScriptWithList(DependencyCollection depList, SqlSmoObject[] objects)
at Microsoft.SqlServer.Management.Smo.Scripter.ScriptWithList(SqlSmoObject[] objects)
at Microsoft.SqlServer.Management.Smo.Transfer.Microsoft.SqlServer.Management.Common.ITransferMetadataProvider.SaveMetadata()
at Microsoft.SqlServer.Management.Dts.DtsTransferProvider.Configure(ITransferMetadataProvider metadataProvider)
at Microsoft.SqlServer.Management.Smo.Transfer.GetTransferProvider()
at Microsoft.SqlServer.Management.Smo.Transfer.TransferData()
at Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.TransferDatabasesUsingSMOTransfer()
InnerException-->Property AnsiPaddingStatus is not available for Column '[vcSymbol]'. This property may not exist for this object, or may not be retrievable due to insufficient access rights.
StackTrace: at Microsoft.SqlServer.Management.Smo.PropertyCollection.HandleNullValue(Int32 index)
at Microsoft.SqlServer.Management.Smo.SqlSmoObject.GetPropValueOptional(String propName)
at Microsoft.SqlServer.Management.Smo.SqlSmoObject.GetPropValueOptional[T](String propName)
at Microsoft.SqlServer.Management.Smo.Table.GetColumnPadding(Column c)
at Microsoft.SqlServer.Management.Smo.Table.GetTableAnsiPadded()
at Microsoft.SqlServer.Management.Smo.Table.ScriptCreate(StringCollection queries, ScriptingOptions so)
at Microsoft.SqlServer.Management.Smo.Scripter.ScriptWithListWorker(DependencyCollection depList, SqlSmoObject[] objects)
at Microsoft.SqlServer.Management.Smo.Scripter.ScriptWithList(DependencyCollection depList, SqlSmoObject[] objects)
Operator: xxxxxxxxxxxxxxxxxxx
Source Name: xxxxxxxxxxxxxxxxxxxxxxxx
Source ID: {3DE71A4C-00D6-4C2F-B188-EE680B19AFD9}
Execution ID: {EBD7814A-6828-4041-B08D-E8CA73CD75AF}
Start Time: 1/17/2007 4:43:39 PM
End Time: 1/17/2007 4:43:39 PM
Data Code: 0

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Just to make sure this is clear - if I detach + attach method onto the 2005 box its fine, if I then take that and use SMO to another box its fine as well... its only when using SMO directly from 2000 to 2005.

Sorry I can't be more helpful - due to the SMO issues I was more than a day behind on the project so I ended up doing the project using the detach method even though that was not desired (original request called for the source to not go offline - but we comprimised by running only in off hours). Oh and I have full dbo rights on the source and destination.

|||

Hi Chris,

Thank you for the information. Let me investigate the issue based on the information that you have sent me so far and I will get back to you as soon as possible. In the meantime, it would be great if you could something for me. Could you please go to that particular table in SQL 2000 and script it to a query window and send me the output?

Thanks,
Oscar.

|||

CREATE TABLE [tblTradeCurrencyHedgeImport] (
[iTradeCurrencyHedgeImportID] [int] IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL ,
[iCurrencyHedgeImportID] [int] NOT NULL ,
[dtDate] [smalldatetime] NULL ,
[vcSymbol] [nvarchar] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[iSettlementDate] [nvarchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[vcBuySell] [nvarchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[iAccountID] [int] NULL ,
[iHedge] [int] NULL ,
[dTradePrice] [decimal](19, 8) NULL ,
[dFxAllInRate] [decimal](19, 8) NULL ,
[iNumberOfContractsPerBreak] [decimal](13, 2) NULL ,
[iContractSize] [int] NULL ,
[dMinimumTick] [decimal](19, 8) NULL ,
[dClosePrice] [decimal](19, 8) NULL ,
[dPricePercentDiff] [decimal](19, 8) NULL ,
[dtSettlementDate] [datetime] NULL ,
[dtInsertTime] [datetime] NULL CONSTRAINT [DF__tblTradeC__dtIns__56757D0D] DEFAULT (getdate()),
[vcInsertUser] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL CONSTRAINT [DF__tblTradeC__vcIns__5769A146] DEFAULT (suser_sname()),
[dtUpdateTime] [datetime] NULL CONSTRAINT [DF__tblTradeC__dtUpd__585DC57F] DEFAULT (getdate()),
[vcUpdateUser] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL CONSTRAINT [DF__tblTradeC__vcUpd__5951E9B8] DEFAULT (suser_sname()),
CONSTRAINT [PK_tblTradeCurrencyHedgeImport] PRIMARY KEY CLUSTERED
(
[iTradeCurrencyHedgeImportID]
) WITH FILLFACTOR = 80 ON [PRIMARY]
) ON [PRIMARY]
GO

FYI this is scripted using 2000... it will not script the table in 2005 client tools - same error about not being able to determine ansi padding


|||

Hi Chris,

This is exactly what I was thinking. However, I haven't been able to reproduce it here at the lab and it would be great if you could help us by filing a bug using Microsoft Connect, including the steps that you had to follow in order to reproduce the problem. The URL for Microsoft Connect is:

http://connect.microsoft.com

I will make sure that this bug gets triaged as soon as possible.

Thanks again for your time and please let me know if I can be of any further assistance. We are here to help!

Cheers,
Oscar.

|||

The following links are also useful:

http://connect.microsoft.com/SQLServer/Feedback/

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=840523&SiteID=1

Cheers,
Oscar.

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

Sunday, February 19, 2012

Error in Aggregation wizard - AS2005 cubes

Hi,

I got the following error message while i was trying to do the aggregation wizard for SSAS 2005 cubes. I chose the storage setting as MOLAP then in the next screen , when i hit on the count objects, i am getting this error message.

'IBMDADB2.1' failed with no error message available, result code: DB_E_OBJECTOPEN(0x80040E05). (Microsoft Visual Studio)

Please let me know any one has got this error before and hot to fix it?

Thanks

Srinivas

Looks like the failrue is happening at the point where BI Dev studio is trying to count number of members in attributes in your dimensions.

At this point BI Dev studio will issue as query to relational database to get these counts.

You need to make sure you have permissions to access underlineed relational data from BI Dev studio.

As a workaround you can take a look at which attributes are missing counts and you change the EstimatedSize property of the attribute yourself.
If you provide the counts yourself you will be able to advance further in the aggregation design wizard.

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

Error in Adding Maintenance Plan

Below is the Error ( I have SSIS installed ; when I open Business
Intelligence Studio it lists SSIS as installed)

Maintenance Plan Wizard Progress

- Creating maintenance plan "Backup xxxDatabases" (Error)
Messages
* Create maintenance plan failed.


ADDITIONAL INFORMATION:

Create failed for JobStep 'Subplan'.
(Microsoft.SqlServer.MaintenancePlanTasks)

For help, click:
http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=...


An exception occurred while executing a Transact-SQL statement or
batch. (Microsoft.SqlServer.ConnectionInfo)


The specified '@.subsystem' is invalid (valid values are returned by
sp_enum_sqlagent_subsystems). (Microsoft SQL Server, Error: 14234)

For help, click:
http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=...

- Adding tasks to the maintenance plan (Stopped)

- Adding scheduling options (Stopped)

- Adding reporting options (Stopped)

- Saving maintenance plan "Backup SCS Databases" (Stopped)

Please advise

Jishnu,

I'm going to move your thread to the Integration Services forum where I think you will get a better response.

-Jeffrey

Friday, February 17, 2012

Error importing data from oracle database to an SQL database

Hi!

When i was importing a database table from an Oracle Database to a SQL database table, the wizard returns this error:

Could not connect source component.

Warning 0x80202066: Source - VB_PERMISSIONS [1]: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect. If the component does not support the property, the code page from the component's locale ID will be used.

Error 0xc0204018: DTS.Pipeline: The "output column "PE_ACTIVE" (34)" has a precision that is not valid. The precision must be between 1 and 38.
(SQL Server Import and Export Wizard)

I tried to change the destination type field to others than the default (decimal), but noting works.

Anyone can help me please?

Thx a lot

Cristovao

I'm currently working on a project that pull data from an Oracle DB and have had not problems pulling data and loading it into SQL 2005.
As far as the codepage error, this occurs when you are pulling non-unicode string values from Oracle(and other DBs as well). SSIS cannot retrieve the CodePage (character set) used on the Oracle DB. To eliminate the warning (assuming Western Alphabet) just set the OLE DB Source to AlwaysUseDefaultCodePage to True. The DefaultCodePage should be set to 1252 which is correct for Western Alphabet. If Oracle is not using the Western Alphabet, you'll need to determine the charset used and use http://msdn.microsoft.com/library/default.asp?url=/workshop/database/tdc/reference/CharSet.asp to correctly set the default code page.
As far as the PE_ACTIVE output column error, I can't tell what the error is. If you let me know how field is defined in Oracle, I may be able to help you. Also what version of Oracle are you using?
Larry
|||Cristovao,

Could you tell us what is the source (Oracle) data type and precision and what is the suggested destination (SQL Server) type and precision?

Thanks.|||

Hi

Thx a lot for your answer.

I am sending to you the data that you asked me:

Type of the source fied: Number (1)
Suggested destination : Decimal (1)
Oracle version: 8.1.7
Best Regards,
Cristovao

|||The value 1 should be a valid precision.

Could you do another check for me? Please select the failing table on the Select Source Tables and Views" page and click "Edit..." on it. In the grid that shows up, find your "PE_ACTIVE" column and take a look at the values for Size, Precision and Scale.
There should be only the precision with the value 1.|||Hi Bob!

Thx again for your interest...

Yes, i have checked and in fact there are only the precision with the value 1, but the error occurs... Sad|||Well, it sounds intriguing.

Can you tell me what OLE DB driver you used; Microsoft OLE DB for Oracle or Oracle OLE DB?

I was able to copy a Number(1) column without any problem, using the MS driver.

Also, what version of SSIS do you have installed?
Thanks.|||

Hi Bob!

Well, i used the Oracle Provider For OLE DB... After have read your post i tried the Microsoft OLEDB Provider For Oracle, and the data have been imported, returning this warning:
TITLE: SQL Server Import and Export Wizard

Warning 0x80202066: Source - VB_PERMISSIONS [1]: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect. If the component does not support the property, the code page from the component's locale ID will be used.



BUTTONS:

OK
I suppose it is normal.

Thanks a lot for your help.

Best Regards,
Cristovao

|||I am glad you were able to make it work.

Yes, I believe this warning can be safely ignored in this case.|||Hi all!

Same problem that I had, but the problem was that Oracle did not have a size or scale specified. SSIS automatically treats all of there as numerics, and with no specification on the precision or scale, it blows up. I have found no way to set it, and have tried both the Microsoft and Oracle drivers. Nada!

The good news....just use a Data Reader connection with the .Net Oracle Client. Works like a champ!!!!!!!!

Scott|||

Larry_Pope wrote:


As far as the codepage error, this occurs when you are pulling non-unicode string values from Oracle(and other DBs as well). SSIS cannot retrieve the CodePage (character set) used on the Oracle DB. To eliminate the warning (assuming Western Alphabet) just set the OLE DB Source to AlwaysUseDefaultCodePage to True. The DefaultCodePage should be set to 1252 which is correct for Western Alphabet. If Oracle is not using the Western Alphabet, you'll need to determine the charset used and use http://msdn.microsoft.com/library/default.asp?url=/workshop/database/tdc/reference/CharSet.asp to correctly set the default code page.

Thanks for this Larry - AlwaysUseDefaultCodePage=TRUE worked a treat!

-Jamie|||Here is the latest issue I found. Some Oracle tables do not have a precision or scale assigned to the column when the type is set to NUMBER. This causes an error when using an OLEDB connection. Has anyone found a way to get around this? The DataReader does it fine, but I don't think it is as fast as the DataReader.

Thanks!

Scott Barrett|||Any luck on thos problem, Scott?|||Here is the issue. When using SSIS against Oracle 8i or any database imported from 8i, when a column was meant to be what we call an INT, they call NUMBER and do not set the precision or scale. Oracle 9i and up does this by default. This will cause SSIS to not be able to bring in data from those columns. So we now have two solutions: Use the Data Reader Source and your done, or use the OLE DB Source and only using the Advanced Editor, enter the source and manually create each output column manually. If you are pulling from a complete table instead of a query, you can manually change the datatype in the advanced editor to a DT_I4 and it will then work.

Hope this helps you out!

Scott Barrett
Moffitt Cancer Center
|||I have installed sql server 2005 evaluation version and have oracle 8i.
But I can't find OLE DB Source property of AlwaysUseDefaultCodePage to set it to True.
Can someone help me and show me directions.

Thanks,
Mitja

Error importing data from oracle database to an SQL database

Hi!

When i was importing a database table from an Oracle Database to a SQL database table, the wizard returns this error:

Could not connect source component.

Warning 0x80202066: Source - VB_PERMISSIONS [1]: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect. If the component does not support the property, the code page from the component's locale ID will be used.

Error 0xc0204018: DTS.Pipeline: The "output column "PE_ACTIVE" (34)" has a precision that is not valid. The precision must be between 1 and 38.
(SQL Server Import and Export Wizard)

I tried to change the destination type field to others than the default (decimal), but noting works.

Anyone can help me please?

Thx a lot

Cristovao

I'm currently working on a project that pull data from an Oracle DB and have had not problems pulling data and loading it into SQL 2005.
As far as the codepage error, this occurs when you are pulling non-unicode string values from Oracle(and other DBs as well). SSIS cannot retrieve the CodePage (character set) used on the Oracle DB. To eliminate the warning (assuming Western Alphabet) just set the OLE DB Source to AlwaysUseDefaultCodePage to True. The DefaultCodePage should be set to 1252 which is correct for Western Alphabet. If Oracle is not using the Western Alphabet, you'll need to determine the charset used and use http://msdn.microsoft.com/library/default.asp?url=/workshop/database/tdc/reference/CharSet.asp to correctly set the default code page.
As far as the PE_ACTIVE output column error, I can't tell what the error is. If you let me know how field is defined in Oracle, I may be able to help you. Also what version of Oracle are you using?
Larry|||Cristovao,

Could you tell us what is the source (Oracle) data type and precision and what is the suggested destination (SQL Server) type and precision?

Thanks.|||

Hi

Thx a lot for your answer.

I am sending to you the data that you asked me:

Type of the source fied: Number (1)
Suggested destination : Decimal (1)
Oracle version: 8.1.7
Best Regards,
Cristovao

|||The value 1 should be a valid precision.

Could you do another check for me? Please select the failing table on the Select Source Tables and Views" page and click "Edit..." on it. In the grid that shows up, find your "PE_ACTIVE" column and take a look at the values for Size, Precision and Scale.
There should be only the precision with the value 1.|||Hi Bob!

Thx again for your interest...

Yes, i have checked and in fact there are only the precision with the value 1, but the error occurs... Sad

|||Well, it sounds intriguing.

Can you tell me what OLE DB driver you used; Microsoft OLE DB for Oracle or Oracle OLE DB?

I was able to copy a Number(1) column without any problem, using the MS driver.

Also, what version of SSIS do you have installed?
Thanks.|||

Hi Bob!

Well, i used the Oracle Provider For OLE DB... After have read your post i tried the Microsoft OLEDB Provider For Oracle, and the data have been imported, returning this warning:
TITLE: SQL Server Import and Export Wizard

Warning 0x80202066: Source - VB_PERMISSIONS [1]: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect. If the component does not support the property, the code page from the component's locale ID will be used.



BUTTONS:

OK
I suppose it is normal.

Thanks a lot for your help.

Best Regards,
Cristovao

|||I am glad you were able to make it work.

Yes, I believe this warning can be safely ignored in this case.|||Hi all!

Same problem that I had, but the problem was that Oracle did not have a size or scale specified. SSIS automatically treats all of there as numerics, and with no specification on the precision or scale, it blows up. I have found no way to set it, and have tried both the Microsoft and Oracle drivers. Nada!

The good news....just use a Data Reader connection with the .Net Oracle Client. Works like a champ!!!!!!!!

Scott|||

Larry_Pope wrote:


As far as the codepage error, this occurs when you are pulling non-unicode string values from Oracle(and other DBs as well). SSIS cannot retrieve the CodePage (character set) used on the Oracle DB. To eliminate the warning (assuming Western Alphabet) just set the OLE DB Source to AlwaysUseDefaultCodePage to True. The DefaultCodePage should be set to 1252 which is correct for Western Alphabet. If Oracle is not using the Western Alphabet, you'll need to determine the charset used and use http://msdn.microsoft.com/library/default.asp?url=/workshop/database/tdc/reference/CharSet.asp to correctly set the default code page.

Thanks for this Larry - AlwaysUseDefaultCodePage=TRUE worked a treat!

-Jamie|||Here is the latest issue I found. Some Oracle tables do not have a precision or scale assigned to the column when the type is set to NUMBER. This causes an error when using an OLEDB connection. Has anyone found a way to get around this? The DataReader does it fine, but I don't think it is as fast as the DataReader.

Thanks!

Scott Barrett|||Any luck on thos problem, Scott?|||Here is the issue. When using SSIS against Oracle 8i or any database imported from 8i, when a column was meant to be what we call an INT, they call NUMBER and do not set the precision or scale. Oracle 9i and up does this by default. This will cause SSIS to not be able to bring in data from those columns. So we now have two solutions: Use the Data Reader Source and your done, or use the OLE DB Source and only using the Advanced Editor, enter the source and manually create each output column manually. If you are pulling from a complete table instead of a query, you can manually change the datatype in the advanced editor to a DT_I4 and it will then work.

Hope this helps you out!

Scott Barrett
Moffitt Cancer Center|||I have installed sql server 2005 evaluation version and have oracle 8i.
But I can't find OLE DB Source property of AlwaysUseDefaultCodePage to set it to True.
Can someone help me and show me directions.

Thanks,
Mitja

Error importing data from oracle database to an SQL database

Hi!

When i was importing a database table from an Oracle Database to a SQL database table, the wizard returns this error:

Could not connect source component.

Warning 0x80202066: Source - VB_PERMISSIONS [1]: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect. If the component does not support the property, the code page from the component's locale ID will be used.

Error 0xc0204018: DTS.Pipeline: The "output column "PE_ACTIVE" (34)" has a precision that is not valid. The precision must be between 1 and 38.
(SQL Server Import and Export Wizard)

I tried to change the destination type field to others than the default (decimal), but noting works.

Anyone can help me please?

Thx a lot

Cristovao

I'm currently working on a project that pull data from an Oracle DB and have had not problems pulling data and loading it into SQL 2005.
As far as the codepage error, this occurs when you are pulling non-unicode string values from Oracle(and other DBs as well). SSIS cannot retrieve the CodePage (character set) used on the Oracle DB. To eliminate the warning (assuming Western Alphabet) just set the OLE DB Source to AlwaysUseDefaultCodePage to True. The DefaultCodePage should be set to 1252 which is correct for Western Alphabet. If Oracle is not using the Western Alphabet, you'll need to determine the charset used and use http://msdn.microsoft.com/library/default.asp?url=/workshop/database/tdc/reference/CharSet.asp to correctly set the default code page.
As far as the PE_ACTIVE output column error, I can't tell what the error is. If you let me know how field is defined in Oracle, I may be able to help you. Also what version of Oracle are you using?
Larry|||Cristovao,

Could you tell us what is the source (Oracle) data type and precision and what is the suggested destination (SQL Server) type and precision?

Thanks.|||

Hi

Thx a lot for your answer.

I am sending to you the data that you asked me:

Type of the source fied: Number (1)
Suggested destination : Decimal (1)
Oracle version: 8.1.7
Best Regards,
Cristovao

|||The value 1 should be a valid precision.

Could you do another check for me? Please select the failing table on the Select Source Tables and Views" page and click "Edit..." on it. In the grid that shows up, find your "PE_ACTIVE" column and take a look at the values for Size, Precision and Scale.
There should be only the precision with the value 1.|||Hi Bob!

Thx again for your interest...

Yes, i have checked and in fact there are only the precision with the value 1, but the error occurs... Sad

|||Well, it sounds intriguing.

Can you tell me what OLE DB driver you used; Microsoft OLE DB for Oracle or Oracle OLE DB?

I was able to copy a Number(1) column without any problem, using the MS driver.

Also, what version of SSIS do you have installed?
Thanks.|||

Hi Bob!

Well, i used the Oracle Provider For OLE DB... After have read your post i tried the Microsoft OLEDB Provider For Oracle, and the data have been imported, returning this warning:
TITLE: SQL Server Import and Export Wizard

Warning 0x80202066: Source - VB_PERMISSIONS [1]: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect. If the component does not support the property, the code page from the component's locale ID will be used.



BUTTONS:

OK
I suppose it is normal.

Thanks a lot for your help.

Best Regards,
Cristovao

|||I am glad you were able to make it work.

Yes, I believe this warning can be safely ignored in this case.|||Hi all!

Same problem that I had, but the problem was that Oracle did not have a size or scale specified. SSIS automatically treats all of there as numerics, and with no specification on the precision or scale, it blows up. I have found no way to set it, and have tried both the Microsoft and Oracle drivers. Nada!

The good news....just use a Data Reader connection with the .Net Oracle Client. Works like a champ!!!!!!!!

Scott|||

Larry_Pope wrote:


As far as the codepage error, this occurs when you are pulling non-unicode string values from Oracle(and other DBs as well). SSIS cannot retrieve the CodePage (character set) used on the Oracle DB. To eliminate the warning (assuming Western Alphabet) just set the OLE DB Source to AlwaysUseDefaultCodePage to True. The DefaultCodePage should be set to 1252 which is correct for Western Alphabet. If Oracle is not using the Western Alphabet, you'll need to determine the charset used and use http://msdn.microsoft.com/library/default.asp?url=/workshop/database/tdc/reference/CharSet.asp to correctly set the default code page.

Thanks for this Larry - AlwaysUseDefaultCodePage=TRUE worked a treat!

-Jamie|||Here is the latest issue I found. Some Oracle tables do not have a precision or scale assigned to the column when the type is set to NUMBER. This causes an error when using an OLEDB connection. Has anyone found a way to get around this? The DataReader does it fine, but I don't think it is as fast as the DataReader.

Thanks!

Scott Barrett|||Any luck on thos problem, Scott?|||Here is the issue. When using SSIS against Oracle 8i or any database imported from 8i, when a column was meant to be what we call an INT, they call NUMBER and do not set the precision or scale. Oracle 9i and up does this by default. This will cause SSIS to not be able to bring in data from those columns. So we now have two solutions: Use the Data Reader Source and your done, or use the OLE DB Source and only using the Advanced Editor, enter the source and manually create each output column manually. If you are pulling from a complete table instead of a query, you can manually change the datatype in the advanced editor to a DT_I4 and it will then work.

Hope this helps you out!

Scott Barrett
Moffitt Cancer Center|||I have installed sql server 2005 evaluation version and have oracle 8i.
But I can't find OLE DB Source property of AlwaysUseDefaultCodePage to set it to True.
Can someone help me and show me directions.

Thanks,
Mitja

Error importing data from oracle database to an SQL database

Hi!

When i was importing a database table from an Oracle Database to a SQL database table, the wizard returns this error:

Could not connect source component.

Warning 0x80202066: Source - VB_PERMISSIONS [1]: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect. If the component does not support the property, the code page from the component's locale ID will be used.

Error 0xc0204018: DTS.Pipeline: The "output column "PE_ACTIVE" (34)" has a precision that is not valid. The precision must be between 1 and 38.
(SQL Server Import and Export Wizard)

I tried to change the destination type field to others than the default (decimal), but noting works.

Anyone can help me please?

Thx a lot

Cristovao

I'm currently working on a project that pull data from an Oracle DB and have had not problems pulling data and loading it into SQL 2005.
As far as the codepage error, this occurs when you are pulling non-unicode string values from Oracle(and other DBs as well). SSIS cannot retrieve the CodePage (character set) used on the Oracle DB. To eliminate the warning (assuming Western Alphabet) just set the OLE DB Source to AlwaysUseDefaultCodePage to True. The DefaultCodePage should be set to 1252 which is correct for Western Alphabet. If Oracle is not using the Western Alphabet, you'll need to determine the charset used and use http://msdn.microsoft.com/library/default.asp?url=/workshop/database/tdc/reference/CharSet.asp to correctly set the default code page.
As far as the PE_ACTIVE output column error, I can't tell what the error is. If you let me know how field is defined in Oracle, I may be able to help you. Also what version of Oracle are you using?
Larry|||Cristovao,

Could you tell us what is the source (Oracle) data type and precision and what is the suggested destination (SQL Server) type and precision?

Thanks.|||

Hi

Thx a lot for your answer.

I am sending to you the data that you asked me:

Type of the source fied: Number (1)
Suggested destination : Decimal (1)
Oracle version: 8.1.7
Best Regards,
Cristovao

|||The value 1 should be a valid precision.

Could you do another check for me? Please select the failing table on the Select Source Tables and Views" page and click "Edit..." on it. In the grid that shows up, find your "PE_ACTIVE" column and take a look at the values for Size, Precision and Scale.
There should be only the precision with the value 1.|||Hi Bob!

Thx again for your interest...

Yes, i have checked and in fact there are only the precision with the value 1, but the error occurs... Sad

|||Well, it sounds intriguing.

Can you tell me what OLE DB driver you used; Microsoft OLE DB for Oracle or Oracle OLE DB?

I was able to copy a Number(1) column without any problem, using the MS driver.

Also, what version of SSIS do you have installed?
Thanks.|||

Hi Bob!

Well, i used the Oracle Provider For OLE DB... After have read your post i tried the Microsoft OLEDB Provider For Oracle, and the data have been imported, returning this warning:
TITLE: SQL Server Import and Export Wizard

Warning 0x80202066: Source - VB_PERMISSIONS [1]: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect. If the component does not support the property, the code page from the component's locale ID will be used.



BUTTONS:

OK
I suppose it is normal.

Thanks a lot for your help.

Best Regards,
Cristovao

|||I am glad you were able to make it work.

Yes, I believe this warning can be safely ignored in this case.|||Hi all!

Same problem that I had, but the problem was that Oracle did not have a size or scale specified. SSIS automatically treats all of there as numerics, and with no specification on the precision or scale, it blows up. I have found no way to set it, and have tried both the Microsoft and Oracle drivers. Nada!

The good news....just use a Data Reader connection with the .Net Oracle Client. Works like a champ!!!!!!!!

Scott|||

Larry_Pope wrote:


As far as the codepage error, this occurs when you are pulling non-unicode string values from Oracle(and other DBs as well). SSIS cannot retrieve the CodePage (character set) used on the Oracle DB. To eliminate the warning (assuming Western Alphabet) just set the OLE DB Source to AlwaysUseDefaultCodePage to True. The DefaultCodePage should be set to 1252 which is correct for Western Alphabet. If Oracle is not using the Western Alphabet, you'll need to determine the charset used and use http://msdn.microsoft.com/library/default.asp?url=/workshop/database/tdc/reference/CharSet.asp to correctly set the default code page.

Thanks for this Larry - AlwaysUseDefaultCodePage=TRUE worked a treat!

-Jamie|||Here is the latest issue I found. Some Oracle tables do not have a precision or scale assigned to the column when the type is set to NUMBER. This causes an error when using an OLEDB connection. Has anyone found a way to get around this? The DataReader does it fine, but I don't think it is as fast as the DataReader.

Thanks!

Scott Barrett|||Any luck on thos problem, Scott?|||Here is the issue. When using SSIS against Oracle 8i or any database imported from 8i, when a column was meant to be what we call an INT, they call NUMBER and do not set the precision or scale. Oracle 9i and up does this by default. This will cause SSIS to not be able to bring in data from those columns. So we now have two solutions: Use the Data Reader Source and your done, or use the OLE DB Source and only using the Advanced Editor, enter the source and manually create each output column manually. If you are pulling from a complete table instead of a query, you can manually change the datatype in the advanced editor to a DT_I4 and it will then work.

Hope this helps you out!

Scott Barrett
Moffitt Cancer Center|||I have installed sql server 2005 evaluation version and have oracle 8i.
But I can't find OLE DB Source property of AlwaysUseDefaultCodePage to set it to True.
Can someone help me and show me directions.

Thanks,
Mitja

Error importing data from oracle database to an SQL database

Hi!

When i was importing a database table from an Oracle Database to a SQL database table, the wizard returns this error:

Could not connect source component.

Warning 0x80202066: Source - VB_PERMISSIONS [1]: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect. If the component does not support the property, the code page from the component's locale ID will be used.

Error 0xc0204018: DTS.Pipeline: The "output column "PE_ACTIVE" (34)" has a precision that is not valid. The precision must be between 1 and 38.
(SQL Server Import and Export Wizard)

I tried to change the destination type field to others than the default (decimal), but noting works.

Anyone can help me please?

Thx a lot

Cristovao

I'm currently working on a project that pull data from an Oracle DB and have had not problems pulling data and loading it into SQL 2005.
As far as the codepage error, this occurs when you are pulling non-unicode string values from Oracle(and other DBs as well). SSIS cannot retrieve the CodePage (character set) used on the Oracle DB. To eliminate the warning (assuming Western Alphabet) just set the OLE DB Source to AlwaysUseDefaultCodePage to True. The DefaultCodePage should be set to 1252 which is correct for Western Alphabet. If Oracle is not using the Western Alphabet, you'll need to determine the charset used and use http://msdn.microsoft.com/library/default.asp?url=/workshop/database/tdc/reference/CharSet.asp to correctly set the default code page.
As far as the PE_ACTIVE output column error, I can't tell what the error is. If you let me know how field is defined in Oracle, I may be able to help you. Also what version of Oracle are you using?
Larry|||Cristovao,

Could you tell us what is the source (Oracle) data type and precision and what is the suggested destination (SQL Server) type and precision?

Thanks.|||

Hi

Thx a lot for your answer.

I am sending to you the data that you asked me:

Type of the source fied: Number (1)
Suggested destination : Decimal (1)
Oracle version: 8.1.7
Best Regards,
Cristovao

|||The value 1 should be a valid precision.

Could you do another check for me? Please select the failing table on the Select Source Tables and Views" page and click "Edit..." on it. In the grid that shows up, find your "PE_ACTIVE" column and take a look at the values for Size, Precision and Scale.
There should be only the precision with the value 1.|||Hi Bob!

Thx again for your interest...

Yes, i have checked and in fact there are only the precision with the value 1, but the error occurs... Sad

|||Well, it sounds intriguing.

Can you tell me what OLE DB driver you used; Microsoft OLE DB for Oracle or Oracle OLE DB?

I was able to copy a Number(1) column without any problem, using the MS driver.

Also, what version of SSIS do you have installed?
Thanks.|||

Hi Bob!

Well, i used the Oracle Provider For OLE DB... After have read your post i tried the Microsoft OLEDB Provider For Oracle, and the data have been imported, returning this warning:
TITLE: SQL Server Import and Export Wizard

Warning 0x80202066: Source - VB_PERMISSIONS [1]: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect. If the component does not support the property, the code page from the component's locale ID will be used.



BUTTONS:

OK
I suppose it is normal.

Thanks a lot for your help.

Best Regards,
Cristovao

|||I am glad you were able to make it work.

Yes, I believe this warning can be safely ignored in this case.|||Hi all!

Same problem that I had, but the problem was that Oracle did not have a size or scale specified. SSIS automatically treats all of there as numerics, and with no specification on the precision or scale, it blows up. I have found no way to set it, and have tried both the Microsoft and Oracle drivers. Nada!

The good news....just use a Data Reader connection with the .Net Oracle Client. Works like a champ!!!!!!!!

Scott|||

Larry_Pope wrote:


As far as the codepage error, this occurs when you are pulling non-unicode string values from Oracle(and other DBs as well). SSIS cannot retrieve the CodePage (character set) used on the Oracle DB. To eliminate the warning (assuming Western Alphabet) just set the OLE DB Source to AlwaysUseDefaultCodePage to True. The DefaultCodePage should be set to 1252 which is correct for Western Alphabet. If Oracle is not using the Western Alphabet, you'll need to determine the charset used and use http://msdn.microsoft.com/library/default.asp?url=/workshop/database/tdc/reference/CharSet.asp to correctly set the default code page.

Thanks for this Larry - AlwaysUseDefaultCodePage=TRUE worked a treat!

-Jamie|||Here is the latest issue I found. Some Oracle tables do not have a precision or scale assigned to the column when the type is set to NUMBER. This causes an error when using an OLEDB connection. Has anyone found a way to get around this? The DataReader does it fine, but I don't think it is as fast as the DataReader.

Thanks!

Scott Barrett|||Any luck on thos problem, Scott?|||Here is the issue. When using SSIS against Oracle 8i or any database imported from 8i, when a column was meant to be what we call an INT, they call NUMBER and do not set the precision or scale. Oracle 9i and up does this by default. This will cause SSIS to not be able to bring in data from those columns. So we now have two solutions: Use the Data Reader Source and your done, or use the OLE DB Source and only using the Advanced Editor, enter the source and manually create each output column manually. If you are pulling from a complete table instead of a query, you can manually change the datatype in the advanced editor to a DT_I4 and it will then work.

Hope this helps you out!

Scott Barrett
Moffitt Cancer Center|||I have installed sql server 2005 evaluation version and have oracle 8i.
But I can't find OLE DB Source property of AlwaysUseDefaultCodePage to set it to True.
Can someone help me and show me directions.

Thanks,
Mitja

Error importing data from oracle database to an SQL database

Hi!

When i was importing a database table from an Oracle Database to a SQL database table, the wizard returns this error:

Could not connect source component.

Warning 0x80202066: Source - VB_PERMISSIONS [1]: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect. If the component does not support the property, the code page from the component's locale ID will be used.

Error 0xc0204018: DTS.Pipeline: The "output column "PE_ACTIVE" (34)" has a precision that is not valid. The precision must be between 1 and 38.
(SQL Server Import and Export Wizard)

I tried to change the destination type field to others than the default (decimal), but noting works.

Anyone can help me please?

Thx a lot

Cristovao

I'm currently working on a project that pull data from an Oracle DB and have had not problems pulling data and loading it into SQL 2005.
As far as the codepage error, this occurs when you are pulling non-unicode string values from Oracle(and other DBs as well). SSIS cannot retrieve the CodePage (character set) used on the Oracle DB. To eliminate the warning (assuming Western Alphabet) just set the OLE DB Source to AlwaysUseDefaultCodePage to True. The DefaultCodePage should be set to 1252 which is correct for Western Alphabet. If Oracle is not using the Western Alphabet, you'll need to determine the charset used and use http://msdn.microsoft.com/library/default.asp?url=/workshop/database/tdc/reference/CharSet.asp to correctly set the default code page.
As far as the PE_ACTIVE output column error, I can't tell what the error is. If you let me know how field is defined in Oracle, I may be able to help you. Also what version of Oracle are you using?
Larry|||Cristovao,

Could you tell us what is the source (Oracle) data type and precision and what is the suggested destination (SQL Server) type and precision?

Thanks.|||

Hi

Thx a lot for your answer.

I am sending to you the data that you asked me:

Type of the source fied: Number (1)
Suggested destination : Decimal (1)
Oracle version: 8.1.7
Best Regards,
Cristovao

|||The value 1 should be a valid precision.

Could you do another check for me? Please select the failing table on the Select Source Tables and Views" page and click "Edit..." on it. In the grid that shows up, find your "PE_ACTIVE" column and take a look at the values for Size, Precision and Scale.
There should be only the precision with the value 1.|||Hi Bob!

Thx again for your interest...

Yes, i have checked and in fact there are only the precision with the value 1, but the error occurs... Sad

|||Well, it sounds intriguing.

Can you tell me what OLE DB driver you used; Microsoft OLE DB for Oracle or Oracle OLE DB?

I was able to copy a Number(1) column without any problem, using the MS driver.

Also, what version of SSIS do you have installed?
Thanks.|||

Hi Bob!

Well, i used the Oracle Provider For OLE DB... After have read your post i tried the Microsoft OLEDB Provider For Oracle, and the data have been imported, returning this warning:
TITLE: SQL Server Import and Export Wizard

Warning 0x80202066: Source - VB_PERMISSIONS [1]: Cannot retrieve the column code page info from the OLE DB provider. If the component supports the "DefaultCodePage" property, the code page from that property will be used. Change the value of the property if the current string code page values are incorrect. If the component does not support the property, the code page from the component's locale ID will be used.



BUTTONS:

OK
I suppose it is normal.

Thanks a lot for your help.

Best Regards,
Cristovao

|||I am glad you were able to make it work.

Yes, I believe this warning can be safely ignored in this case.|||Hi all!

Same problem that I had, but the problem was that Oracle did not have a size or scale specified. SSIS automatically treats all of there as numerics, and with no specification on the precision or scale, it blows up. I have found no way to set it, and have tried both the Microsoft and Oracle drivers. Nada!

The good news....just use a Data Reader connection with the .Net Oracle Client. Works like a champ!!!!!!!!

Scott|||

Larry_Pope wrote:


As far as the codepage error, this occurs when you are pulling non-unicode string values from Oracle(and other DBs as well). SSIS cannot retrieve the CodePage (character set) used on the Oracle DB. To eliminate the warning (assuming Western Alphabet) just set the OLE DB Source to AlwaysUseDefaultCodePage to True. The DefaultCodePage should be set to 1252 which is correct for Western Alphabet. If Oracle is not using the Western Alphabet, you'll need to determine the charset used and use http://msdn.microsoft.com/library/default.asp?url=/workshop/database/tdc/reference/CharSet.asp to correctly set the default code page.

Thanks for this Larry - AlwaysUseDefaultCodePage=TRUE worked a treat!

-Jamie|||Here is the latest issue I found. Some Oracle tables do not have a precision or scale assigned to the column when the type is set to NUMBER. This causes an error when using an OLEDB connection. Has anyone found a way to get around this? The DataReader does it fine, but I don't think it is as fast as the DataReader.

Thanks!

Scott Barrett|||Any luck on thos problem, Scott?|||Here is the issue. When using SSIS against Oracle 8i or any database imported from 8i, when a column was meant to be what we call an INT, they call NUMBER and do not set the precision or scale. Oracle 9i and up does this by default. This will cause SSIS to not be able to bring in data from those columns. So we now have two solutions: Use the Data Reader Source and your done, or use the OLE DB Source and only using the Advanced Editor, enter the source and manually create each output column manually. If you are pulling from a complete table instead of a query, you can manually change the datatype in the advanced editor to a DT_I4 and it will then work.

Hope this helps you out!

Scott Barrett
Moffitt Cancer Center|||I have installed sql server 2005 evaluation version and have oracle 8i.
But I can't find OLE DB Source property of AlwaysUseDefaultCodePage to set it to True.
Can someone help me and show me directions.

Thanks,
Mitja

error importing data from Access to SQL Server

Hi
I am trying to import of data from my Access 2003 tables in to SQL Server
2005, via SQL Server Management Studio (Import and
export wizard). All accesstables have been imported with no errors except for
this last one "Transaktionsrader"
I have tried to run some different queries to find Unmatched data in this
tables foreign key, inside Access, found some (removed it from the table)
then tried the same import of table again, but still keep getting this error.
I receive this error below:
Regards
Mattias
- Copying to [MbaseMuseumServerNetSQL].[dbo].[Transaktionsrader] (Error)
Messages
Information 0x402090df: Data Flow Task: The final commit for the data
insertion has started.
(SQL Server Import and Export Wizard)
Error 0xc0202009: Data Flow Task: An OLE DB error has occurred. Error code:
0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Native Client"
Hresult: 0x80004005 Description: "The statement has been terminated.".
An OLE DB record is available. Source: "Microsoft SQL Native Client"
Hresult: 0x80004005 Description: "The INSERT statement conflicted with the
FOREIGN KEY constraint "ITransaktionsrader11". The conflict occurred in
database "MbaseMuseumServerNetSQL", table "dbo.Transaktionhuvud", column
'TransaktionhuvudTransaktionsnr'.".
(SQL Server Import and Export Wizard)
Information 0x402090e0: Data Flow Task: The final commit for the data
insertion has ended.
(SQL Server Import and Export Wizard)
Error 0xc0047022: Data Flow Task: The ProcessInput method on component
"Destination - Transaktionsrader" (115) failed with error code 0xC0202009.
The identified component returned an error from the ProcessInput method. The
error is specific to the component, but the error is fatal and will cause the
Data Flow task to stop running.
(SQL Server Import and Export Wizard)
Error 0xc0047021: Data Flow Task: Thread "WorkThread0" has exited with error
code 0xC0202009.
(SQL Server Import and Export Wizard)
It appears that there is a Foreign Key issue.
(I'm only guessing about your table and column names since you didn't include any DDL.)
Try a query somewhat like this to find the 'orphan' rows -and then correct them.
SELECT th.TransaktionhuvudTransaktionsnr
FROM Transaktionsrader tr
RIGHT JOIN MbaseMuseumServerNetSQL.dbo.Transaktionhuvud th
ON tr.TransaktionsraderTransaktionsnr = th.TransaktionhuvudTransaktionsnr
WHERE TransaktionsraderTransaktionsnr IS NULL
Arnie Rowland, Ph.D.
Westwood Consulting, Inc
Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous
You can't help someone get up a hill without getting a little closer to the top yourself.
- H. Norman Schwarzkopf
"Mattias" <Mattias@.discussions.microsoft.com> wrote in message news:8178B69D-4227-4C49-95A5-D7C67490CD7F@.microsoft.com...
> Hi
> I am trying to import of data from my Access 2003 tables in to SQL Server
> 2005, via SQL Server Management Studio (Import and
> export wizard). All accesstables have been imported with no errors except for
> this last one "Transaktionsrader"
> I have tried to run some different queries to find Unmatched data in this
> tables foreign key, inside Access, found some (removed it from the table)
> then tried the same import of table again, but still keep getting this error.
> I receive this error below:
> Regards
> Mattias
> - Copying to [MbaseMuseumServerNetSQL].[dbo].[Transaktionsrader] (Error)
> Messages
> Information 0x402090df: Data Flow Task: The final commit for the data
> insertion has started.
> (SQL Server Import and Export Wizard)
> Error 0xc0202009: Data Flow Task: An OLE DB error has occurred. Error code:
> 0x80004005.
> An OLE DB record is available. Source: "Microsoft SQL Native Client"
> Hresult: 0x80004005 Description: "The statement has been terminated.".
> An OLE DB record is available. Source: "Microsoft SQL Native Client"
> Hresult: 0x80004005 Description: "The INSERT statement conflicted with the
> FOREIGN KEY constraint "ITransaktionsrader11". The conflict occurred in
> database "MbaseMuseumServerNetSQL", table "dbo.Transaktionhuvud", column
> 'TransaktionhuvudTransaktionsnr'.".
> (SQL Server Import and Export Wizard)
> Information 0x402090e0: Data Flow Task: The final commit for the data
> insertion has ended.
> (SQL Server Import and Export Wizard)
> Error 0xc0047022: Data Flow Task: The ProcessInput method on component
> "Destination - Transaktionsrader" (115) failed with error code 0xC0202009.
> The identified component returned an error from the ProcessInput method. The
> error is specific to the component, but the error is fatal and will cause the
> Data Flow task to stop running.
> (SQL Server Import and Export Wizard)
> Error 0xc0047021: Data Flow Task: Thread "WorkThread0" has exited with error
> code 0xC0202009.
> (SQL Server Import and Export Wizard)
>
>
>
|||Hi
Thank you for your reply.
I have already transfered the Transaktionshuvud table from Access to SQL
Server.
Transaktionsrader in SQL Server is an empty table right now.
How do I run your query here?
The best would be if I could run it based on the Transaktionshuvud and
Transaktionsrader in the Access db.
Is it possible?
Mattias
"Arnie Rowland" wrote:
[vbcol=seagreen]
> It appears that there is a Foreign Key issue.
> (I'm only guessing about your table and column names since you didn't include any DDL.)
> Try a query somewhat like this to find the 'orphan' rows -and then correct them.
> SELECT th.TransaktionhuvudTransaktionsnr
> FROM Transaktionsrader tr
> RIGHT JOIN MbaseMuseumServerNetSQL.dbo.Transaktionhuvud th
> ON tr.TransaktionsraderTransaktionsnr = th.TransaktionhuvudTransaktionsnr
> WHERE TransaktionsraderTransaktionsnr IS NULL
>
> --
> Arnie Rowland, Ph.D.
> Westwood Consulting, Inc
> Most good judgment comes from experience.
> Most experience comes from bad judgment.
> - Anonymous
> You can't help someone get up a hill without getting a little closer to the top yourself.
> - H. Norman Schwarzkopf
>
> "Mattias" <Mattias@.discussions.microsoft.com> wrote in message news:8178B69D-4227-4C49-95A5-D7C67490CD7F@.microsoft.com...
|||What I've done in the past is use the access query wizard to create an
'unmatched' query on the child table using the FK>PK in parent table to find
the orphaned records.
Regards,
Dave Patrick ...Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
"Mattias" wrote:
> Hi
> Thank you for your reply.
> I have already transfered the Transaktionshuvud table from Access to SQL
> Server.
> Transaktionsrader in SQL Server is an empty table right now.
> How do I run your query here?
> The best would be if I could run it based on the Transaktionshuvud and
> Transaktionsrader in the Access db.
> Is it possible?
> Mattias
|||Hi
I did excactly what you suggested, but still getting this error when
importing the Transaktionsrader table
Mattias
"Dave Patrick" wrote:

> What I've done in the past is use the access query wizard to create an
> 'unmatched' query on the child table using the FK>PK in parent table to find
> the orphaned records.
> --
> Regards,
> Dave Patrick ...Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
> "Mattias" wrote:
>
|||Mattias (Mattias@.discussions.microsoft.com) writes:
> I did excactly what you suggested, but still getting this error when
> importing the Transaktionsrader table
Well, that is sort of expected. Dave suggested that you would create a
third table without foreign keys, import into this table to track
down the suspect rows. From this follows that the import into the
original table would still fail as long as you don't repair the data.
But it appears to akward to import to SQL Server to track down problems
in your access data. What does this query return in Access:
SELECT *
FROM Transaktionsrader R
WHERE NOT EXISTS (SELECT *
FROM Transaktionshuvud H
WHERE H.TransaktionhuvudTransaktionsnr =
R.TransaktionsraderTransaktionsnr)
(I'm making a guess on the last column name here.)
If foreign keys are properly implemented in your Access database,
this query should not return any rows. But in such case the import
would not fail.
Once you have tracked down the wacko rows, insert/delete/updated and
re-import.
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
|||Sorry, I should have mentioned and as Erland pointed out I meant to use the
result as a guide to what records need repaired or deleted.
Regards,
Dave Patrick ...Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
"Mattias" wrote:
> Hi
> I did excactly what you suggested, but still getting this error when
> importing the Transaktionsrader table
> Mattias
|||Hi
I tried your Select in Access but no rows was to find, unfortunatly.
Do you have any more ideas?
Mattias
"Erland Sommarskog" wrote:

> Mattias (Mattias@.discussions.microsoft.com) writes:
> Well, that is sort of expected. Dave suggested that you would create a
> third table without foreign keys, import into this table to track
> down the suspect rows. From this follows that the import into the
> original table would still fail as long as you don't repair the data.
> But it appears to akward to import to SQL Server to track down problems
> in your access data. What does this query return in Access:
> SELECT *
> FROM Transaktionsrader R
> WHERE NOT EXISTS (SELECT *
> FROM Transaktionshuvud H
> WHERE H.TransaktionhuvudTransaktionsnr =
> R.TransaktionsraderTransaktionsnr)
> (I'm making a guess on the last column name here.)
> If foreign keys are properly implemented in your Access database,
> this query should not return any rows. But in such case the import
> would not fail.
> Once you have tracked down the wacko rows, insert/delete/updated and
> re-import.
> --
> Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
> Books Online for SQL Server 2005 at
> http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
> Books Online for SQL Server 2000 at
> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
>
|||Mattias (Mattias@.discussions.microsoft.com) writes:
> I tried your Select in Access but no rows was to find, unfortunatly.
> Do you have any more ideas?
One possibility is that comparison is case-insensitive on the Access
side, but you have a case-sensitive collation on the SQL Server side, and
the usage of case in the data is inconsistent. That presume that the columns
are character data.
Or else something goes wrong during import, for instance the tables being
imported in the wrong order.
I would disable the foreign-key constraint with:
ALTER TABLE Transaktionsrader NOCHECK CONSTRAINT ITransaktionsrader11
and then run the import. Then use the query from my previous post, to see
if there are bad rows.
To enable the constraint again, do:
ALTER TABLE Transaktionsrader WITH CHECK CHECK
CONSTRAINT ITransaktionsrader11
(Yes, it should really be CHECK CHECK.)
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
|||Hi
Thank you for your effort your idea worked fine imported it and could
remove 16 rows
All the best
Mattias
"Erland Sommarskog" wrote:

> Mattias (Mattias@.discussions.microsoft.com) writes:
> One possibility is that comparison is case-insensitive on the Access
> side, but you have a case-sensitive collation on the SQL Server side, and
> the usage of case in the data is inconsistent. That presume that the columns
> are character data.
> Or else something goes wrong during import, for instance the tables being
> imported in the wrong order.
> I would disable the foreign-key constraint with:
> ALTER TABLE Transaktionsrader NOCHECK CONSTRAINT ITransaktionsrader11
> and then run the import. Then use the query from my previous post, to see
> if there are bad rows.
> To enable the constraint again, do:
> ALTER TABLE Transaktionsrader WITH CHECK CHECK
> CONSTRAINT ITransaktionsrader11
> (Yes, it should really be CHECK CHECK.)
> --
> Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
> Books Online for SQL Server 2005 at
> http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
> Books Online for SQL Server 2000 at
> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
>