PlanGuide Constructor (Database, String)

Creates a plan guide object: PlanGuide

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub New ( _
    database As Database, _
    name As String _
)
'Usage
Dim database As Database 
Dim name As String 

Dim instance As New PlanGuide(database, _
    name)
public PlanGuide(
    Database database,
    string name
)
public:
PlanGuide(
    Database^ database, 
    String^ name
)
new : 
        database:Database * 
        name:string -> PlanGuide
public function PlanGuide(
    database : Database, 
    name : String
)

Parameters

See Also

Reference

PlanGuide Class

PlanGuide Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Designing and Implementing Plan Guides

Plan Guides