c# - How to Get Corresponding datafile path if i pass datafile name -
How to obtain the enumfiles method in SMO in SMO
This means that if I pass the master data I am; Es to one method will return the corresponding datafile path and logfile path. Is there any such method in SMO ??
For East: In DMO Enumphile (Master), then it will return the Coal Core Filpatra.
You can use the
Server Database FileGroups Files Storage like this:
Public Zero GetFileNames (string servername, string databasename) {server s = new server (servername); Foreign exchange (file database in SG database [database] .filegroup) {foreach (fg.files in datafile df) console WrightLine (df.FileName); }}
Comments
Post a Comment