SQLDMO.
Database db = (SQLDMO.Database)server.Databases.Item("DataBaseName", null);
db.ScriptTransfer(trans, SQLDMO.SQLDMO_XFRSCRIPTMODE_TYPE.SQLDMOXfrFile_SingleFile, scriptPath);
The following error occur in above last line
[SQL-DMO]Unexpected parameter value or other condition.
Please help me