Exemplo n.º 1
0
        public bool getDataSourceColumnsInfo(string str, csDataSourceType csDataSourceType)
        {
            string sqlstmt;

            if (m_dataSourceType == csDataSourceType.CDDTPROCEDURE)
            {
                if (!fillParameters(m_dataSource))
                {
                    return(false);
                }

                fParameters f = new fParameters();
                f.setParameters(m_parameters);
                f.ShowDialog();
                if (f.getOk())
                {
                    sqlstmt = "[" + m_dataSource + "] " + f.getSqlParameters();
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                sqlstmt = "select * from [" + m_dataSource + "]";
            }

            return(fillColumns(sqlstmt));
        }
Exemplo n.º 2
0
		public bool getDataSourceColumnsInfo(string str, csDataSourceType csDataSourceType)
		{
            string sqlstmt;

            if(m_dataSourceType == csDataSourceType.CDDTPROCEDURE)
            {
                if(! fillParameters(m_dataSource))
                {
                    return false;
                }

                fParameters f = new fParameters();
                f.setParameters(m_parameters);
                f.ShowDialog();
                if (f.getOk())
                {
                    sqlstmt = "[" + m_dataSource + "] " + f.getSqlParameters();
                }
                else
                {
                    return false;
                }
            }
            else
            {
                sqlstmt = "select * from [" + m_dataSource + "]";
            }

            return fillColumns(sqlstmt);
		}