public getDataSourceColumnsInfo ( string str, csDataSourceType csDataSourceType ) : bool | ||
str | string | |
csDataSourceType | csDataSourceType | |
return | bool |
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);
}