Connect to SQL Server Database dynbamically

Discussion created by jhansi131 on Feb 15, 2013
Latest reply on Feb 25, 2013 by jhansi131

I am developing a Runtime application that enables user selected Access or SQL database to connect. According to the concepts page this is possible through datasource or querydatasource but only through the workspaceID from a ArcGISDynamicMapServiceLayer. 
I was able to open Access database from a custom python script tool. Is this possible to do the same with SQL database?
I cannot use CreateDatabaseConnectoin tool because its not supported in ArcGIS Runtime. Another way is using 'pyodbc' library.

Has anybody else ideas or experience with this kind of workflow?