예제 #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));
        }
예제 #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);
		}