Ask a Question related to ASP Database, Design and Development.
-
Kevin Ingram #1
List Access database tables
I am using ASP and a MS-Access database. Can read and write to tables fine,
but now I have a need to list all the tables in a given database.
I am using IIS5 and Visual InterDev 6.0, and ODBC System DSN.
So far, every attempt I have made returns this error:
ADODB.Connection error '800a0cb3'
Object or provider is not capable of performing requested operation.
/TESTDB.asp, line 74
Is there something I am doing wrong, or is MS-Access unable to list the
tables in ASP?
I can post the code I've been trying if that will help.
Kevin Ingram Guest
-
mysql dbi list of tables
Hello, I'm trying to get a list of table names from a mysql database in my perl program. I've been hacking through lots of possible ways to do it,... -
list tables from Access 2000
What is the output variable? Who do you give read permissions to? Why would this need more permissons that a script that actually makes tables?... -
how I can get a list of tables with asp and access 2000
Hi guys, I have dsn connection to my access 2000 database and I am using clasic asp. So I wanna get a list of tables so, could you gelp me... -
HOW TO - Import all Access tables into an existing SQL Database
Andrew, In Queary analyzer, paste the following: SELECT 'TRUNCATE TABLE ' + + char(13) +char(10) +'GO' FROM sysobjects WHERE xtype='U' run... -
Getting list of available tables
Thanks for all input... Complete newbee here. Here is my version: Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production PL/SQL Release... -
Ray at #2
Re: List Access database tables
Posting the relevant snippet of code would certainly be helpful, as we
cannot see what operation was requested.
Ray at work
"Kevin Ingram" <tcr@myrealbox.com> wrote in message
news:btk9le06cf@enews2.newsguy.com...fine,> I am using ASP and a MS-Access database. Can read and write to tables> but now I have a need to list all the tables in a given database.
>
> I am using IIS5 and Visual InterDev 6.0, and ODBC System DSN.
>
> So far, every attempt I have made returns this error:
>
> ADODB.Connection error '800a0cb3'
>
> Object or provider is not capable of performing requested operation.
> /TESTDB.asp, line 74
>
> Is there something I am doing wrong, or is MS-Access unable to list the
> tables in ASP?
>
> I can post the code I've been trying if that will help.
>
>
>
>
>
>
>
>
>
>
Ray at Guest
-
Kevin Ingram #3
Re: List Access database tables
Here is the code:
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionString = "DSN=MYDATA"
objConn.Open
Set objRS = objConn.OpenSchema(adSchemaTables)
The last line produces this error:
ADODB.Connection error '800a0cb3'
Object or provider is not capable of performing requested operation.
/TESTDB.asp, line 74
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:O3gKn%23h1DHA.832@TK2MSFTNGP09.phx.gbl...> Posting the relevant snippet of code would certainly be helpful, as we
> cannot see what operation was requested.
>
> Ray at work
>
> "Kevin Ingram" <tcr@myrealbox.com> wrote in message
> news:btk9le06cf@enews2.newsguy.com...> fine,> > I am using ASP and a MS-Access database. Can read and write to tables>> > but now I have a need to list all the tables in a given database.
> >
> > I am using IIS5 and Visual InterDev 6.0, and ODBC System DSN.
> >
> > So far, every attempt I have made returns this error:
> >
> > ADODB.Connection error '800a0cb3'
> >
> > Object or provider is not capable of performing requested operation.
> > /TESTDB.asp, line 74
> >
> > Is there something I am doing wrong, or is MS-Access unable to list the
> > tables in ASP?
> >
> > I can post the code I've been trying if that will help.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
Kevin Ingram Guest
-
Ray at #4
Re: List Access database tables
Did you define your adSchemaTables constant anywhere? (&h14)
Ray at work
"Kevin Ingram" <tcr@myrealbox.com> wrote in message
news:btkcf10a6b@enews2.newsguy.com...the> Here is the code:
>
> Set objConn = Server.CreateObject("ADODB.Connection")
> objConn.ConnectionString = "DSN=MYDATA"
> objConn.Open
> Set objRS = objConn.OpenSchema(adSchemaTables)
>
> The last line produces this error:
>
> ADODB.Connection error '800a0cb3'
> Object or provider is not capable of performing requested operation.
> /TESTDB.asp, line 74
>
>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:O3gKn%23h1DHA.832@TK2MSFTNGP09.phx.gbl...> > Posting the relevant snippet of code would certainly be helpful, as we
> > cannot see what operation was requested.
> >
> > Ray at work
> >
> > "Kevin Ingram" <tcr@myrealbox.com> wrote in message
> > news:btk9le06cf@enews2.newsguy.com...> > fine,> > > I am using ASP and a MS-Access database. Can read and write to tables> > > but now I have a need to list all the tables in a given database.
> > >
> > > I am using IIS5 and Visual InterDev 6.0, and ODBC System DSN.
> > >
> > > So far, every attempt I have made returns this error:
> > >
> > > ADODB.Connection error '800a0cb3'
> > >
> > > Object or provider is not capable of performing requested operation.
> > > /TESTDB.asp, line 74
> > >
> > > Is there something I am doing wrong, or is MS-Access unable to list>> >> > > tables in ASP?
> > >
> > > I can post the code I've been trying if that will help.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
Ray at Guest
-
Kevin Ingram #5
Re: List Access database tables
Apparently I am missing something here, how do I define the constant other
than: dim adSchemaTables?
Thanks!
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:uInSdki1DHA.2060@TK2MSFTNGP10.phx.gbl...tables> Did you define your adSchemaTables constant anywhere? (&h14)
>
> Ray at work
>
>
> "Kevin Ingram" <tcr@myrealbox.com> wrote in message
> news:btkcf10a6b@enews2.newsguy.com...> > Here is the code:
> >
> > Set objConn = Server.CreateObject("ADODB.Connection")
> > objConn.ConnectionString = "DSN=MYDATA"
> > objConn.Open
> > Set objRS = objConn.OpenSchema(adSchemaTables)
> >
> > The last line produces this error:
> >
> > ADODB.Connection error '800a0cb3'
> > Object or provider is not capable of performing requested operation.
> > /TESTDB.asp, line 74
> >
> >
> > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> > news:O3gKn%23h1DHA.832@TK2MSFTNGP09.phx.gbl...> > > Posting the relevant snippet of code would certainly be helpful, as we
> > > cannot see what operation was requested.
> > >
> > > Ray at work
> > >
> > > "Kevin Ingram" <tcr@myrealbox.com> wrote in message
> > > news:btk9le06cf@enews2.newsguy.com...
> > > > I am using ASP and a MS-Access database. Can read and write to> the> > > fine,
> > > > but now I have a need to list all the tables in a given database.
> > > >
> > > > I am using IIS5 and Visual InterDev 6.0, and ODBC System DSN.
> > > >
> > > > So far, every attempt I have made returns this error:
> > > >
> > > > ADODB.Connection error '800a0cb3'
> > > >
> > > > Object or provider is not capable of performing requested operation.
> > > > /TESTDB.asp, line 74
> > > >
> > > > Is there something I am doing wrong, or is MS-Access unable to list>> >> > > > tables in ASP?
> > > >
> > > > I can post the code I've been trying if that will help.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
>
Kevin Ingram Guest
-
Ray at #6
Re: List Access database tables
Const adSchemaTables = 20
or
Const adSchemaTables = &h14
or
Just use 20 in place of the named constant.
Ray at work
"Kevin Ingram" <tcr@myrealbox.com> wrote in message
news:btkkaa0q7l@enews2.newsguy.com...message> Apparently I am missing something here, how do I define the constant other
> than: dim adSchemaTables?
>
> Thanks!
>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:uInSdki1DHA.2060@TK2MSFTNGP10.phx.gbl...> > Did you define your adSchemaTables constant anywhere? (&h14)
> >
> > Ray at work
> >
> >
> > "Kevin Ingram" <tcr@myrealbox.com> wrote in message
> > news:btkcf10a6b@enews2.newsguy.com...> > > Here is the code:
> > >
> > > Set objConn = Server.CreateObject("ADODB.Connection")
> > > objConn.ConnectionString = "DSN=MYDATA"
> > > objConn.Open
> > > Set objRS = objConn.OpenSchema(adSchemaTables)
> > >
> > > The last line produces this error:
> > >
> > > ADODB.Connection error '800a0cb3'
> > > Object or provider is not capable of performing requested operation.
> > > /TESTDB.asp, line 74
> > >
> > >
> > > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote inwe> > > news:O3gKn%23h1DHA.832@TK2MSFTNGP09.phx.gbl...
> > > > Posting the relevant snippet of code would certainly be helpful, asoperation.> tables> > > > cannot see what operation was requested.
> > > >
> > > > Ray at work
> > > >
> > > > "Kevin Ingram" <tcr@myrealbox.com> wrote in message
> > > > news:btk9le06cf@enews2.newsguy.com...
> > > > > I am using ASP and a MS-Access database. Can read and write to> > > > fine,
> > > > > but now I have a need to list all the tables in a given database.
> > > > >
> > > > > I am using IIS5 and Visual InterDev 6.0, and ODBC System DSN.
> > > > >
> > > > > So far, every attempt I have made returns this error:
> > > > >
> > > > > ADODB.Connection error '800a0cb3'
> > > > >
> > > > > Object or provider is not capable of performing requestedlist> > > > > /TESTDB.asp, line 74
> > > > >
> > > > > Is there something I am doing wrong, or is MS-Access unable to>> > the> >> > > > > tables in ASP?
> > > > >
> > > > > I can post the code I've been trying if that will help.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
Ray at Guest
-
Aaron Bertrand [MVP] #7
Re: List Access database tables
Plenty of other approaches.
[url]http://www.aspfaq.com/2178[/url]
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
Aaron Bertrand [MVP] Guest
-
Kevin Ingram #8
Re: List Access database tables
Wow, that's perfect, thanks!
Man, I searched and searched but just could not stumble on this information,
have it saved as a favorite now.
Thanks again!
"Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
news:%23UocRvl1DHA.2412@TK2MSFTNGP10.phx.gbl...> Plenty of other approaches.
> [url]http://www.aspfaq.com/2178[/url]
>
> --
> Aaron Bertrand
> SQL Server MVP
> [url]http://www.aspfaq.com/[/url]
>
>
Kevin Ingram Guest



Reply With Quote

