|
-
May 5th, 2009, 12:48 PM
#1
Thread Starter
Hyperactive Member
SQL with VB6!
Well, i'm startiing with sql in vb6 and i have a few questions.
First:
I have to make this query:
SELECT [chname] FROM [database].[dbo].[table]
and it must return all the chnames of the table.
Second: i want to count the lines of the same query.
Anyone can help?
-
May 5th, 2009, 01:59 PM
#2
Re: SQL with VB6!
Recommend spending several minutes reviewing the Database FAQ.
Once you have a connection object opened to your database, the query will be used in the .Execute method of the connection object to return a recordset or used in the .Open method of a recordset object.
Either way, the count can be determined by the .RecordCount of the recordset object.
The FAQ page has examples also.
-
May 5th, 2009, 05:33 PM
#3
Re: SQL with VB6!
Thread moved to Database Development forum (the "VB6" forum is meant for questions which don't fit in more specific forums)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|