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

Baffled by syntax on EXECUTE dbo.IndexOptimize

$
0
0
Hello, I came accross this blog (like many other articles) and I cannot make out what is the correct syntax:https://www.brentozar.com/archive/2016/04/updating-statistics-ola-hallengrens-scripts/I can't copy paste the syntax, because it gives me this:Msg 2812, Level 16, State 62, Line 2Could not find stored procedure 'dbo.IndexOptimize'.People are throwing suggestion, so I try:use MydatabasegoEXECUTE Mydatabase.dbo.IndexOptimizeThis does not work either:EXECUTE master.dbo.IndexOptimize@Databases = N'Mydatabase' ,Can someone please give me a sensible explanation? Is this a master procedure or within My SQL Server version is 2008 Epxress and also SQL Serv. 11 Enterprise.Thank you,RichardPS. Other suggestions:http://www.sqlservercentral.com/Forums/Topic1094550-149-1.aspxAnd not a clue.

Viewing all articles
Browse latest Browse all 2648

Latest Images

Trending Articles



Latest Images