![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Access COM enumerations .. How ? example: SQLDMO.SQLDMO_WEEKDAY_TYPE.SQLDMOWeek_EveryDay How do I use that in a Powershell script ? [SQLDMO]::SQLDMO_WEEKDAY_TYPE.SQLDMOWeek_EveryDay It doesn't like this. Any suggestions ? |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: Access COM enumerations .. How ? On May 28, 7:25 am, dm_14 <d...@discussions.microsoft.com> wrote: > example: > SQLDMO.SQLDMO_WEEKDAY_TYPE.SQLDMOWeek_EveryDay > > How do I use that in a Powershell script ? > [SQLDMO]::SQLDMO_WEEKDAY_TYPE.SQLDMOWeek_EveryDay > It doesn't like this. > > Any suggestions ? Hello, probably you should look into SMO instead of DMO. AFAIK DMO is considered "legacy", SMO is the way to go now ![]() #Load the Assembly [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SqlEnum') #Retrieve values for the enum [Microsoft.SqlServer.Management.Smo.Agent.WeekDays]::EveryDay Ciao, Claudio http://www.pulsarit.net/cs/blogs/claudiog/ |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Accessing .NET Enumerations? | SeanInSeattle | PowerShell | 2 | 08-29-2008 01:59 PM |
| Give network access without giving access to the computer itself? | Doc_Phoenix | Vista networking & sharing | 2 | 06-30-2008 06:35 PM |
| When standard users access Vista registry remotely, Access Denied | Gayle | Vista account administration | 1 | 10-10-2007 11:48 AM |
| Access File Mistakenly typed as a Access Shortcut | Q | Vista installation & setup | 7 | 07-04-2007 08:21 AM |
| Access is denied message when trying to access a remote printer | MarkC | Vista print fax & scan | 1 | 03-08-2007 07:34 PM |