TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Revathi Parvathi
NA
323
64.2k
Cannot perform a shrinkdatabase operation inside transaction
Feb 8 2018 11:52 PM
While executing below-mentioned query in C# using Entity framework below-mentioned error occurred.Please find this.This query successfully executed in SQL server management studio.But not working on the C# code.Please, anyone, help me.
var RunStoredProcedure1 = _context.Database.ExecuteSqlCommand(
"USE MDRFDataBase; DBCC SHRINKDATABASE(N'MDRFDataBase' ); "
);
Cannot perform a shrink database operation inside a user transaction. Terminate the transaction and reissue the statement.
Reply
Answers (
2
)
performance counter registry hive consistency failed
sql database how to arrainged code as illustrated bellow