English 中文(简体)
将“1”作为IDENT_CURRENT(表Name)值,用于在用户数据库中复制文章表
原标题:Getting "1" as value of IDENT_CURRENT( TableName ) for replicated article table in subscriber database in sql server

我正在拿到“1”作为IDENT_CURRENT(表Name)的价值,以便在用户数据库中复制文章表,使用 s服务器。 实际上,它应当与出版商数据库中的表格相同。

任何解决办法,以及拒绝正确数字?

问题回答

只要你在复制时不直接插入身份,就可加以设计。 实际使用的机制可能较低,如果你真的希望直接插入用户表格,那么你会认为它行之有效(我不建议你尝试这样做!)

您可尝试检查/更新重新开问贵点的价值。

http://msdn.microsoft.com/en-us/library/ms176057.aspx” rel=“nofollow”> DBCC CHECKIDENT (Transact-SQL)





相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

SQL server: Can NT accounts be mapped to SQL server accounts

In our database we have an SQL server account that has the correct roles to access some of the databases. We are now switching to windows authentication and I was wondering if we can create a NT user ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8

热门标签