Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

Unable to TRUNCATE TABLE, a permissions issue (I think)

$
0
0
When I execute Truncate Table [FS-JIREMSQL].JIREM10.dbo.JIRABConcentration in SSMS query window, it fails. The error code is:Msg 4701, Level 16, State 1, Line 1Cannot find the object "JIRABConcentration" because it does not exist or you do not have permissions.From the same query window I am able to execute:select * from [FS-JIREMSQL].JIREM10.dbo.JIRABConcentrationAlso, the following query returns all the fields.SELECT t.name AS table_name,SCHEMA_NAME(schema_id) AS schema_name,c.name AS column_nameFROM sys.tables AS tINNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJECT_IDWHERE T.name = 'JIRABConcentration'ORDER BY schema_name, table_name;Background:I have moved this database which contains this table from one server to a new server. This was done by backing up the original database in SSMS, copying the .bak file to the new server and using SSMS to Restore the database to the new server. A couple of more details. The old server was running SQL 2008 R2. The new server is running SQL 2014. I created a user on the new server and assigned that user the Public and SysAdmin roles. The same user name existed on the old server and had "similar" roles (it has been so long since I set up that user I do not remember exactly how I created it). I am connected to the server in SSMS as this new user. I am executing the query from SSMS on the new server. I am a VB programmer and not a SQL administrator so a detailed explanation would be greatly appreciated.How do I correct my setup to eliminate this error?Any assistance with my problem would be greatly appreciated.Thanks in advance,pat

Viewing all articles
Browse latest Browse all 6525

Trending Articles