Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Please help me to complete the code. I want to get all table names to an array.
Will this code work? If not, please suggest a method...

C++
SqlString =  "select * from sys.tables";
	recset.Open(CRecordset::forwardOnly,SqlString,CRecordset::readOnly);
	while( !recset.IsEOF() )
		{
			//Please complete
			recset.MoveNext();
		}
Posted

1 solution

Why ask? Create a small test program, and you'll have your answer ... if you run into any problems at that point, feel free to ask here on the forum.

You can use one of these CRecordset[^] as a starting point.

Best regards
Espen Harlinn
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900