也许你可以帮忙,我没有找到任何适合我的问题的解决方案:
工作环境:
Access 2003
SQL Server 2008 R2 Express
Database (based on Access 2003) containing a few dozens of Tables, related to each other:
- Table "Customers" FOREIGNKEY CustomerID
- Table "Invoice-Header" FOREIGNKEY InvoiceID, with Relationship to Customers-->CustomerID with DELETE/UPDATE Trigger inside MDB
- Table "Invoice-Detail" FOREIGNKEY CNT, with Relationship to Invoice-Header->InvoiceID with DELETE/UPDATE Trigger inside MDB
- Table "Delivery-Header" FOREIGNKEY DeliveryID, with Relationship to Customers-->CustomerID with DELETE/UPDATE Trigger inside MDB
- Table "Delivery-Detail" FOREIGNKEY CNT, with Relationship to Delivery-Header->DeliveryID with DELETE/UPDATE Trigger inside MDB
我为什么要问?:
好吧,我多次将此数据库(包含我们客户的条目)升级为 SQL Server 数据库,没有任何问题,该数据库来自我们提供的软件,但充满了使用我们软件的客户的信息(创建客户,创建发票,创建交货单),但这次我们的一个客户给了我们用于升级到 SQL Server 数据库的数据库,但它不起作用:
我做了什么——>发生了什么:
Attempt #1: Upsized as Usual --> Delivery-Header / Delivery-Detail has no upsize_ts but Invoice-Header / Invoice-Detail had (Normally all Tables had upsize_ts field after Upsizing)
Attempt #2: Upsized again after fixing missing Customers in Customers Database --> Delivery-Header / Delivery-Detail has upsize_ts but not Invoice-Header / Invoice-Detail
Attempt #3: Upsized again after copying everything into our Base of this Database (fresh created) --> Delivery-Header / Delivery-Detail has no upsize_ts but Invoice-Header / Invoice-Detail
什么可能导致在不中止 Upsize-Assistant 的情况下不会在 SQL 数据库中创建 upsize_ts 字段的行为?通常,每个表都有一个“upsize_ts”字段(在 Upsize-Assistant 中检查时,已检查,因为一些表有 upsize_ts 但有些没有)
通常,如果数据库出现错误,Upsize-Assistant 将中止,但这次它会转换数据库中的所有表而不会引发错误但缺少 upsize_ts 字段。
如果您需要更多信息,请写信给我,这让我发疯了,这次我很难将 Access 2003 转换为 SQL Server。