|
-
April 8th, 2002, 11:02 PM
#1
ADO help!!!
1. How can i create a database programatically using ado?
2. How can i determine the no of tables in a database programatically?
3.How can i determine the no of sheets present in a excel sheet programatically?
Expecting positive and quick reply
regards
anish
-
April 9th, 2002, 02:12 AM
#2
Re: ADO help!!!
Hi there! I think you'd better have a look at MSDN library help for more detail information, however, the outline of using ADO object from your code as follows:
1) firstly create an ADO object;
2) then using EXECUTE method execute sql query against a database that creates a db.
Best regards,
Bayram.
-
April 9th, 2002, 02:15 AM
#3
Re: ADO help!!!
But how do i create a database (an access 2000 database) programatically??
-
April 9th, 2002, 02:28 AM
#4
Re: ADO help!!!
for example:
CREATE DATABASE 'C:\myFolder\myDatabase'
Bayram.
-
April 9th, 2002, 02:36 AM
#5
Re: ADO help!!!
but how could i create a connection string for the connection object
plz do give me some code
-
April 9th, 2002, 03:50 AM
#6
Re: ADO help!!!
a connection string should look like:
"Provider=MSDASQL;Driver=Microsoft dBase Driver (*.dbf);SERVER=myServer; UID=myUser;PWD=myPwd;Database=myDatabase; DEFAULTDIR=C:\\myFolder"
Bayram.
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
|