Identity range issue in SQL Server 2000 - sql-server-2000

My application was working fine all these days. Recently when I try adding data, one of the table is throwing error
The identity range managed by replication is full and must be updated
by a replication agent. The INSERT conflict occurred in database
'YourDatabase', table 'StillBillAccount', column 'ID'.
Sp_adjustpublisheridentityrange can be called to get a new identity
range.
I tried executing Sp_adjustpublisheridentityrange for a particular table, but without success.
Any solution please.
Thanks in advance,

Related

Unable to Run Update Query in SQL Azure *Invalid object name 'DataSync.provision_marker_dss'.*

I was syncing my Azure SQL Database with On-Premises SQL Database which created a lot of tables in the Online database (As Usual). Anyway, It was working fine.
Now, I had to re-create the Azure SQL Database. So, I deleted the Sync Group & Sync Agent as well.
Everything's working absolutely fine unless I run an Update Query on that database.
Whenever I run Update Query on some of the tables, the database shows the following error.
Msg 208, Level 16, State 1, Procedure finstock06_dss_update_trigger,
Line 9 Invalid object name 'DataSync.provision_marker_dss'.
There is no such table I ever created on the database.But it's name shows that it was one of the automatically created tables while syncing. (But why here? I have re-created the database)
Although, I created all the tables again on new database but facing this issue.
Any help would be appreciated.
Thanks
I had no sync groups left, and deleted all DataSync tables, but still got the error.
Triggers had to be deleted manually too:
https://richardjgreen.net/repairing-damaged-sql-azure-sync-group/

Trying to fix the error "Record set is not updateable" in access 2007 with a linked SQL table

I am experiencing an issue where I try to enter data into a linked table on Microsoft Access 2007.
I keep getting the message :
The record set is not updateable
I have the table linked with a table in Microsoft SQL Server Management Studio.
Originally it was working well until something happened with the primary keys. Every datatype had a primary key, but at some point all PKs were taken away. I know the issue revolves around the primary keys, but I am not sure what it is exactly.

Code Column Read Only Issue in Master Data Services 2016

I have an issue in Master Data Services 2016 my Question is.
Our Client wants to see the Code Column in Excel but he is saying that he couldn't Insert or update the Code Value itself in excel . To fulfil his requirement I set the Code value automatically generated and Read Only. But when I set Code Column read Only then MDS is not allowing us to insert new record .
If a business user wants to insert and update codes, they can't be automatically generated. It's the same as an IDENTITY property in a SQL Server table.
If they have problems updating code values because they were already used, it's because code values are soft-deleted. In that case you need to purge them.
Pre-SQL Server 2016: https://www.mssqltips.com/sqlservertip/3646/purging-entity-members-in-sql-server-master-data-services/
SQL Server 2016 and later: https://www.mssqltips.com/sqlservertip/4588/purge-an-entity-in-master-data-services-2016/

Updating SQL server from Access front end

This is pretty new to me. I have an Access database that I was to upsize to a SQL server but to keep the Access front end to make this application available remotely. I have imported the data in the SQL database using SSMA which looks to be fine. However, when adding a new record to the Access frontend, the SQL server is not being updated. Am I missing something? I (think I) have linked the tables together but still not joy.
Any help would be great. Thank you
If the data is being stored, but not on the SQL Server then you almost certainly have not linked the tables correctly.
On your Access front end your starting point should be no tables (unless you have some tables deliberately reserved for the front end for some reason). You then link to the back end tables (because you said 'linked the tables together', I suspect you have copies of the tables still in your front end).
During the linking process, Access will confirm if each link is established successfully.
It sounds like you haven't imported the data from MS Access to SQL yet.
Check out the SQL Server Migration Assistant(SSMA) on how to do that.
http://www.microsoft.com/sqlserver/en/us/product-info/migration-tool.aspx#Access.
First you need to migrate the data to SQL and then you link the data in SQL to MS-Access.
Once the tables are linked appropriately it will update in SQL as it is entered in Access.
To link the tables you need to first setup an ODBC and then in access select external data -> import -> more -> ODBC Database and select "Link to the data source by creating linked tables"
Check out this link: http://www.fontstuff.com/ebooks/free/fsLinkingToSQLServer.pdf to make sure you did it right.
I had this problem before.
Create a primary key for every table you want to edit in Access. set identity specification and Identity increment by 1 or ? (you can find this setting in column properties) Make sure data type for primary key is int.
All boolean value fields should have constraint set to 0 and no null values.

Why would my Access 2007 query suddenly become not updateable?

I have a query in Access 2007. It's worked fine for months, but I'm suddenly getting a "the recordset is not updateable" error. Thinking an error must have been caused by a recent change, I went back to archived versions (that definitley worked) - they're all chucking out the same error. The table itself is updatable; indeed, another query on the same table works just fine. What could have suddenly happened to break my query? Code follows:
SELECT Prospects.Company, Contactnames.*, IIf([Prospects]![Key Contact]=[ContactID],True,False) AS [Key Contact], Prospects.Status
FROM Contactnames INNER JOIN Prospects ON Contactnames.CompanyID=Prospects.ID
WHERE (((Prospects.Status) Not Like "Duplicate"));
Any help would be greatly appreciated. Thanks, Oli.
If you are using linked ODBC tables, you need to include the primary key field(s) from all tables in the query if you want the query to be updateable. Here are some potential "gotchas":
Access may not recognize the primary key fields correctly in a linked ODBC table; often (always?) Access picks the first unique index it finds for a table (based on alphabetical order of index name) and assumes that index is the primary key
adding replication to tables in MS SQL Server (and perhaps other RDBMS's) will add a GUID column with a unique index; along with the above point, this can cause Access to think your linked tables have different primary keys than they really do
Changes made to the design of ODBC linked tables are not automatically reflected in Access; linked ODBC tables can be refreshed via Tools --> Database Utilities --> Linked Table Manager... (among other ways)
The likely reason is that it's not the query that has changed, but the database.
Check that the database file hasn't been write protected. That would cause that error message.