Adding existing items to storage Group

Mar 26, 2010 at 12:01 PM

Pleaswe could you tell me how I add an existing item to a storage Group?  i.e. another storagegroup, windows user, db user

I have tried the following without success.

 

<font size="2">

DestGroup.Members.Add(SourceGroup.SID,

</font>

null);

this seems to do something but when I look in the storage group nothing has been added.

 

I also tried:

DestGroup.CreateStoreGroupMember(SourceGroup,SID, WhereDefined.Store, true);

this failed too.

Please could you just write me a quick example then I know how its done as I have to have my implementation completed for Monday.

Mar 26, 2010 at 3:18 PM

Hi,

the method you should use is:

storeGroup.CreateStoreGroupMember(…).

Which is the error ?

Andrea.

__________________________________
Andrea Ferendeles
NetSqlAzMan Project Coordinator  
E-mail aferende@hotmail.com Web http://netsqlazman.codeplex.com

Mar 26, 2010 at 3:57 PM

Hi,

I have got it working now with the CreateStoreGroupMember, the first parameter tooltip mentions it should be the owner sid and I assumed it was the saem owner sid that is used when adding items to roles, tasks etc.  So this is where I was going wrong :-)