我正在尝试将我的 SQL Server 2008 R2 数据库迁移到 Windows Azure。我为此使用 SQLAzureMW。但是在插入几行后我得到了以下错误。
BCP Command: bcp.exe "mydatabase.dbo.tableTest" in "c:\SQLAzureMW\BCPData\dbo.tableTest.dat" -E -w -b 10000 -a 16384 -q -S SERVER.database.windows.net -U "Test@vSERVER" -P "password"
*****
01/03/2013 10:18:08--> Error
Starting copy...
SQLState = 22003, NativeError = 0
Error = [Microsoft][SQL Server Native Client 10.0]Numeric value out of range
SQLState = 22005, NativeError = 0
Error = [Microsoft][SQL Server Native Client 10.0]Invalid character value for cast specification
SQLState = 22001, NativeError = 0
Error = [Microsoft][SQL Server Native Client 10.0]String data, right truncation
SQLState = 22005, NativeError = 0
Error = [Microsoft][SQL Server Native Client 10.0]Invalid character value for cast specification
10000 rows sent to SQL Server. Total sent: 10000
SQLState = 22001, NativeError = 0
Error = [Microsoft][SQL Server Native Client 10.0]String data, right truncation
SQLState = 22008, NativeError = 0
Error = [Microsoft][SQL Server Native Client 10.0]Invalid date format
我确保生成的表脚本与我在 SQL Server 中的数据库表完全匹配,并且双方的数据库排序规则也相同。
你能告诉我如何解决这些问题吗?