Issue with Smo .EnumAvailableMedia()

79 views Asked by At

I'm creating a folder browser dialog from a remote sql machine.

Been using this as template. Link

My problem is .EnumAvailableMedia() is not returning any results. I'm getting a successful connection to the server. Have tried multiple servers, both 2008 and 2014.

Thanks in advance!

Server server = new Server(fullServerName);

DataTable dt = server.EnumAvailableMedia();
dt = server.EnumAvailableMedia();

foreach (DataRow row in dt.Rows)
{
   treeListDir.Nodes.Add(new TreeNode(row["Name"].ToString()));
}
0

There are 0 answers