Re: Some way around this?
Re: Some way around this?
sa is sql authentication - you should not even be using sql authentication...
At any rate - what PERMISSIONS have you GRANTED to the SPROC that does this?
Re: Some way around this?
I have granted Domain Users (this is a very small office) DataReader and DataWriter rights to the applications. And that group has Execute permissions on the SP.
Re: Some way around this?
Books Online shows the permissions needed for CheckIdent
Quote:
Permissions
DBCC CHECKIDENT permissions default to the table owner, members of the sysadmin fixed server role, and the db_owner and db_ddladmin fixed database role, and are not transferable.
Seems to be the same for TRUNCATE - interesting...
Quote:
Permissions
TRUNCATE TABLE permissions default to the table owner, members of the sysadmin fixed server role, and the db_owner and db_ddladmin fixed database roles, and are not transferable.
Re: Some way around this?
Any other thoughts on resetting the Identity for this table? This is a table that holds information about Petty Cash pay outs. There really aren't that many during each month. They just like to see the reference number incremented starting at 1.
I could create another column in the table that is just a Count() + 1.
Re: Some way around this?
Are you against giving one of those permissions to the users who might run this option? Like the DB_DDLADMIN role?
Re: Some way around this?
Well... I currently just use the Domain Users account. I could just assign Domain Users to the DB_DDLADMIN role. I don't see much harm in that.