Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Issue with UPDATE STATISTICS in sql server 2008

$
0
0

Hi All,

I ran the below queries in my database, it was displayed below error message.


 USE master
 if db_id('databasename') is not null begin
    exec database.dbo.sp_updateStats
 end

-- Error message
Msg 0, Level 11, State 0, Line 0
A severe error occurred on the current command.  The results, if any, should be discarded.
Msg 0, Level 20, State 0, Line 0
A severe error occurred on the current command.  The results, if any, should be discarded.

USE Database;
GO
UPDATE STATISTICS dbo.tablename;
GO
--Error message
Msg 0, Level 11, State 0, Line 0
A severe error occurred on the current command.  The results, if any, should be discarded.

Can you any once help me how to solve this issue, this is very urgent issues,

Thanks inadvance,

SAAD.


Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>