Can you omit database snapshots in DMO?
for each odatabase in oserver.databases
well, snapshots show database , causing problems. without rewritting of these yet in or taking them direct queries, there easy way omit snapshot in dmo?
thanks
in smo can check database property this:
if dbdatabase.compatibilitylevel = compatibilitylevel.version90 then else ' here if it's not
if dbdatabase.isdatabasesnapshot then
' here if it's snapshot
end if
end if
however, dmo not updated provide support features in sql server 2005 , beyond. best served converting code smo. if code written in vb or c# you'll fine. if you're using vbscript you'll want take @ powershell, because smo doesn't have com interface necessary manage servers vbscript.
SQL Server > SQL Server SMO/DMO
Comments
Post a Comment