Columns.h
资源名称:ISQL_src.zip [点击查看]
上传用户:jsxglz
上传日期:2007-01-03
资源大小:117k
文件大小:1k
源码类别:
SQL Server
开发平台:
Visual C++
- // Columns.h: interface for the CColumns class.
- //
- #if !defined(AFX_COLUMNS_H__23260973_9781_11D2_BD48_204C4F4F5020__INCLUDED_)
- #define AFX_COLUMNS_H__23260973_9781_11D2_BD48_204C4F4F5020__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CColumns - results from ::SQLColumns()
- class CColumns : public CRecordsetEx
- {
- public:
- CColumns(CDatabase* pDatabase);
- DECLARE_DYNAMIC(CColumns)
- // Field Data
- CString m_strTableQualifier;
- CString m_strTableOwner;
- CString m_strTableName;
- CString m_strColumnName;
- int m_nDataType;
- CString m_strTypeName;
- long m_nPrecision;
- long m_nLength;
- int m_nScale;
- int m_nRadix;
- int m_fNullable;
- CString m_strRemarks;
- // Operations
- BOOL Open(LPCSTR pszTableQualifier = NULL,
- LPCSTR pszTableOwner = NULL,
- LPCSTR pszTableName = NULL,
- LPCSTR pszColumnName = NULL,
- UINT nOpenType = CRecordset::forwardOnly);
- // Overrides
- virtual CString GetDefaultConnect();
- virtual CString GetDefaultSQL();
- virtual void DoFieldExchange(CFieldExchange*);
- // Implementation
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- };
- #endif // !defined(AFX_COLUMNS_H__23260973_9781_11D2_BD48_204C4F4F5020__INCLUDED_)