Click here to Skip to main content
15,896,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: exception for ADO recordset open method Pin
Christian Graus19-Nov-02 19:39
protectorChristian Graus19-Nov-02 19:39 
GeneralRe: exception for ADO recordset open method Pin
devvvy19-Nov-02 19:44
devvvy19-Nov-02 19:44 
GeneralRe: exception for ADO recordset open method Pin
Christian Graus19-Nov-02 19:48
protectorChristian Graus19-Nov-02 19:48 
GeneralRe: exception for ADO recordset open method Pin
devvvy19-Nov-02 20:06
devvvy19-Nov-02 20:06 
GeneralRe: exception for ADO recordset open method Pin
devvvy19-Nov-02 20:07
devvvy19-Nov-02 20:07 
Questionhow can u enumerate tables given a database? Pin
devvvy19-Nov-02 17:12
devvvy19-Nov-02 17:12 
AnswerRe: how can u enumerate tables given a database? Pin
Christian Graus19-Nov-02 17:22
protectorChristian Graus19-Nov-02 17:22 
GeneralRe: how can u enumerate tables given a database? Pin
devvvy19-Nov-02 17:34
devvvy19-Nov-02 17:34 
just scan yr article briefly. isnt it for .NET?

anyway, i'm building all my code with VC6 - lots of anti microsoft types here in this company.

anyway, i am thinking, perhaps I can read MyDB.Tables.sysobjects

there're three columns of interests:

a. "names" -- object name: a simple string

b. "id" -- object id: just a simple integer

c. "xtype" and code as follows:

Object type. Can be one of these object types:
C = CHECK constraint
D = Default or DEFAULT constraint
F = FOREIGN KEY constraint
L = Log
FN = Scalar function
IF = Inlined table-function
P = Stored procedure
PK = PRIMARY KEY constraint (type is K)
RF = Replication filter stored procedure
S = System table
TF = Table function
TR = Trigger
U = User table
UQ = UNIQUE constraint (type is K)
V = View
X = Extended stored procedure


So, I will just count and retrieve an array of names (names - column one of sysobjects table) for all entries where xtype==U

norm
GeneralRe: how can u enumerate tables given a database? Pin
Christian Graus19-Nov-02 17:47
protectorChristian Graus19-Nov-02 17:47 
GeneralRe: how can u enumerate tables given a database? Pin
devvvy19-Nov-02 18:16
devvvy19-Nov-02 18:16 
GeneralRe: how can u enumerate tables given a database? Pin
Christian Graus19-Nov-02 18:17
protectorChristian Graus19-Nov-02 18:17 
GeneralRe: how can u enumerate tables given a database? Pin
devvvy19-Nov-02 18:21
devvvy19-Nov-02 18:21 
GeneralRe: how can u enumerate tables given a database? Pin
Christian Graus19-Nov-02 19:41
protectorChristian Graus19-Nov-02 19:41 
AnswerRe: how can u enumerate tables given a database? Pin
RichardGrimmer19-Nov-02 22:01
RichardGrimmer19-Nov-02 22:01 
QuestionDetect CEdit number of lines? Pin
Anonymous19-Nov-02 16:40
Anonymous19-Nov-02 16:40 
AnswerRe: Detect CEdit number of lines? Pin
Anonymous19-Nov-02 19:38
Anonymous19-Nov-02 19:38 
AnswerRe: Detect CEdit number of lines? Pin
Roger Allen20-Nov-02 2:49
Roger Allen20-Nov-02 2:49 
GeneralRe: Detect CEdit number of lines? Pin
Anonymous20-Nov-02 20:35
Anonymous20-Nov-02 20:35 
GeneralRe: Detect CEdit number of lines? Pin
Anonymous20-Nov-02 20:38
Anonymous20-Nov-02 20:38 
Generalvery good samples on connection string format Pin
devvvy19-Nov-02 15:44
devvvy19-Nov-02 15:44 
GeneralRe: very good samples on connection string format Pin
PJ Arends19-Nov-02 19:56
professionalPJ Arends19-Nov-02 19:56 
GeneralCListCtrl and backgrounds Pin
Developer10119-Nov-02 14:39
Developer10119-Nov-02 14:39 
GeneralRe: CListCtrl and backgrounds Pin
Rickard Andersson2019-Nov-02 21:45
Rickard Andersson2019-Nov-02 21:45 
GeneralWaitable Timers Pin
Anonymous19-Nov-02 10:44
Anonymous19-Nov-02 10:44 
GeneralCEdit::LineLength question Pin
brianwelsch19-Nov-02 10:40
brianwelsch19-Nov-02 10:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.