; if (objTable.SystemObject == false)
{
objTable.Script(intOptions,strFilePath,null,int2Options);
foreach(SQLDMO.Trigger objTrigger in objTable.Triggers)
{
if (objTrigger.SystemObject == false)
{
objTrigger.Script(intOptions,strFilePath,int2Options);
}
}
}
}
//导出规则
foreach (SQLDMO.Rule objRule in db.Rules)
{
objRule.Script(intOptions,strFilePath,int2Options);
}
//导出存储过程
foreach (SQLDMO.StoredProcedure objProcedure in db.StoredProcedures)
{