Click here to Skip to main content
15,905,136 members
Home / Discussions / Database
   

Database

 
Generalgrant permission to access the Msysobjects Pin
Daminda12-Feb-04 2:53
Daminda12-Feb-04 2:53 
GeneralRe: grant permission to access the Msysobjects Pin
Mazdak12-Feb-04 3:30
Mazdak12-Feb-04 3:30 
GeneralData out of large File into MS Access DB Pin
93Current12-Feb-04 2:50
93Current12-Feb-04 2:50 
GeneralRe: Data out of large File into MS Access DB Pin
Bill Dean13-Feb-04 3:18
Bill Dean13-Feb-04 3:18 
GeneralRe: Data out of large File into MS Access DB Pin
93Current13-Feb-04 8:24
93Current13-Feb-04 8:24 
GeneralStoring RichText data in SQL Database Field Pin
bjulien11-Feb-04 15:54
bjulien11-Feb-04 15:54 
GeneralRe: Storing RichText data in SQL Database Field Pin
basementman13-Feb-04 6:01
basementman13-Feb-04 6:01 
GeneralTable Names Of a MS Access Database Pin
Daminda11-Feb-04 1:04
Daminda11-Feb-04 1:04 
I Want to List the Table Names Of a MS Access Database Using ADO Connection.

This is How I tried

ADODB.Connection myConnection = new ADODB.ConnectionClass();
ADODB.Recordset rsTblNames = new ADODB.RecordsetClass();


if (optAccess.Checked)
{
ConnStr= "Provider=Microsoft.Jet.OLEDB.4.0;User ID=;Data Source="+ txtDbPath.Text +";Mode=ReadWrite;Extended Properties='';Jet OLEDB:System database='';Jet OLEDB:Registry Path='';Jet OLEDB:Engine Type=5;Jet OLEDB:Database Locking Mode=0;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False";

myConnection.Open(ConnStr,"","",0);

StrSql= "SELECT Name FROM MSysObjects WHERE Type = 1";
rsTblNames.Open(StrSql, myConnection, ADODB.CursorTypeEnum.adOpenKeyset, ADODB.LockTypeEnum.adLockReadOnly,0);


}


But This returns a Error
GeneralRe: Table Names Of a MS Access Database Pin
Ian Darling11-Feb-04 2:18
Ian Darling11-Feb-04 2:18 
GeneralRe: Table Names Of a MS Access Database Pin
Thea Burger12-Feb-04 4:01
Thea Burger12-Feb-04 4:01 
GeneralRe: Table Names Of a MS Access Database Pin
FASTian17-Mar-04 20:11
FASTian17-Mar-04 20:11 
GeneralRe: Table Names Of a MS Access Database Pin
Thea Burger18-Mar-04 19:49
Thea Burger18-Mar-04 19:49 
GeneralStored procedure question Pin
LasVegasGuy10-Feb-04 8:20
LasVegasGuy10-Feb-04 8:20 
GeneralRe: Stored procedure question Pin
Bill Dean10-Feb-04 9:26
Bill Dean10-Feb-04 9:26 
GeneralRe: Stored procedure question Pin
Mazdak10-Feb-04 9:28
Mazdak10-Feb-04 9:28 
GeneralRe: Stored procedure question Pin
Husein12-Feb-04 5:45
Husein12-Feb-04 5:45 
GeneralBrick Wall!! Pin
Kwai Cheng Kane10-Feb-04 6:04
Kwai Cheng Kane10-Feb-04 6:04 
GeneralRe: Brick Wall!! Pin
Bill Dean10-Feb-04 8:09
Bill Dean10-Feb-04 8:09 
GeneralRe: Brick Wall!! Pin
Bill Dean10-Feb-04 8:12
Bill Dean10-Feb-04 8:12 
GeneralRe: Brick Wall!! Pin
10-Feb-04 10:13
suss10-Feb-04 10:13 
GeneralRe: Brick Wall!! Pin
Kwai Cheng Kane10-Feb-04 9:06
Kwai Cheng Kane10-Feb-04 9:06 
GeneralRe: Brick Wall!! Pin
Bill Dean10-Feb-04 10:28
Bill Dean10-Feb-04 10:28 
GeneralRe: Brick Wall!! Pin
Kwai Cheng Kane10-Feb-04 10:51
Kwai Cheng Kane10-Feb-04 10:51 
GeneralRe: Brick Wall!! Pin
Kwai Cheng Kane10-Feb-04 11:34
Kwai Cheng Kane10-Feb-04 11:34 
GeneralRe: Brick Wall!! Pin
Kwai Cheng Kane10-Feb-04 12:45
Kwai Cheng Kane10-Feb-04 12:45 

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.