示例#1
0
        private void btnGetTables_Click(object sender, EventArgs e)
        {
            //////////////////////////////////////////////////////////
            //TODO: Dynamically load provider specific assemblies
            //NOTE: There seems to be a bug in the way .NET loads
            //assemblies in the GAC, so dynamic loading of an assembly
            //does not work for me right now. Need to investigate

            //string assemblyName =
            //	ConfigurationSettings.AppSettings
            //	["SALAssembly"];
            //string typeName = "com.common.sal.schema.SqlSchema";
            //Assembly.Load("SqlSchema");
            //////////////////////////////////////////////////////////

            string connection;
            connection = "Server=" + txtServer.Text + ";Database=" + txtDatabase.Text +
                ";User ID=" + txtUser.Text + ";Password="******"SchemaException");
                }
            }
        }