[fdo-users] SDE Connection Parameters

surrounded Rob.Sosnowski at itd.idaho.gov
Wed Oct 1 10:13:47 EDT 2008


RESOLVED:

IConnectionManager connectionManager =
FeatureAccessManager.GetConnectionManager();
            IConnection connection =
connectionManager.CreateConnection(providerName);
            IConnectionPropertyDictionary connectionPropertyDictionary;
            connectionPropertyDictionary =
connection.ConnectionInfo.ConnectionProperties;
            connectionPropertyDictionary.SetProperty("Server",
"servername");
            connectionPropertyDictionary.SetProperty("Instance", "5151");
            connectionPropertyDictionary.SetProperty("Username",
"username");
            connectionPropertyDictionary.SetProperty("Password",
"password");
            connectionPropertyDictionary.SetProperty("Datastore",
"database");
            OSGeo.FDO.Connections.ConnectionState connectState =
connection.Open();


surrounded wrote:
> 
> Hi,
> 
> Been using FDO with shapefiles; now I wish to use with SDE layers.  Can
> someone provide me with the code to make a connection to a SDE database. 
> Our SDE layers are on MS SQL Server if that is important.
> 
> Thanks.....Rob
> 
> 

-- 
View this message in context: http://n2.nabble.com/SDE-Connection-Parameters-tp1129033p1131481.html
Sent from the FDO Users mailing list archive at Nabble.com.



More information about the fdo-users mailing list