Click here to Skip to main content
15,881,559 members
Home / Discussions / C#
   

C#

 
AnswerRe: Crystal Reports viewing Pin
Sean8922-Apr-06 14:56
Sean8922-Apr-06 14:56 
QuestionTextBox databinding problem Pin
wasife21-Apr-06 19:47
wasife21-Apr-06 19:47 
AnswerRe: TextBox databinding problem Pin
tvshkaa22-Apr-06 19:45
tvshkaa22-Apr-06 19:45 
GeneralPut a Chatroom in your site! Free Ajax C#.NET Simple Chat Code. Pin
spilafis21-Apr-06 19:07
spilafis21-Apr-06 19:07 
GeneralRe: Put a Chatroom in your site! Free Ajax C#.NET Simple Chat Code. Pin
leppie21-Apr-06 22:20
leppie21-Apr-06 22:20 
Questionmedia encoder Pin
d_onK21-Apr-06 18:02
d_onK21-Apr-06 18:02 
Questionrecording video clips Pin
d_onK21-Apr-06 17:58
d_onK21-Apr-06 17:58 
Question'Access' a protected Access 97 database with Access 2003 Installed Pin
ndavie21-Apr-06 15:07
ndavie21-Apr-06 15:07 
Background:

I have Access 2003 installedand the database I'm trying to connect to via C# was probably created using Access 97. I don't have the option to upgrade the database and must remain in Access 97 format. The database is protected by a workgroup ID. The command line option for spawning the database is:

MSACCESS.EXE c:\master.mdb /wrkgrp c:\master.mdw /user foo /pwd bar

This brings up the database, but I get an error stating:

You can't make changes to the database objects in the database 'master.' This database was created in an eariler version of Microsoft Office Access....

Problem 1: Read-only connection

If I try and connect to this database from c#, I get the following error. Cry | :((

System.Data.OleDb.OleDBException: Cannot start your application. The workgroup information file is missing or opened exclusively by another user.

Since I can open the database using the command line above, I suspect in order to read the database, I need to somehow specify read-only access within the connection string. Here's my connection string:

String conStr =

"PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\master.mdb;SystemDB=C:\\master.mdw;User Id=foo;Password=bar;";

Problem 2: Actually altering the data

Is there a way to modify this database without either upgrading the database or downgrading my access application? Confused | :confused:


Code Cowboy
QuestionComparing Images Pin
clickman21-Apr-06 12:41
clickman21-Apr-06 12:41 
AnswerRe: Comparing Images Pin
eclipse2k122-Apr-06 10:42
eclipse2k122-Apr-06 10:42 
QuestionRead strings between delimiters Pin
kani9821-Apr-06 11:28
kani9821-Apr-06 11:28 
AnswerRe: Read strings between delimiters Pin
Ravi Bhavnani21-Apr-06 11:31
professionalRavi Bhavnani21-Apr-06 11:31 
AnswerRe: Read strings between delimiters Pin
Guffa21-Apr-06 12:55
Guffa21-Apr-06 12:55 
AnswerRe: Read strings between delimiters Pin
sujithkumarsl22-Apr-06 16:47
sujithkumarsl22-Apr-06 16:47 
QuestionHaving a max line count in a list control Pin
BambooMoon21-Apr-06 11:25
BambooMoon21-Apr-06 11:25 
AnswerRe: Having a max line count in a list control Pin
Ravi Bhavnani21-Apr-06 11:30
professionalRavi Bhavnani21-Apr-06 11:30 
QuestionObserver Pattern Pin
martin_hughes21-Apr-06 11:07
martin_hughes21-Apr-06 11:07 
AnswerRe: Observer Pattern Pin
Ravi Bhavnani21-Apr-06 11:26
professionalRavi Bhavnani21-Apr-06 11:26 
GeneralRe: Observer Pattern Pin
martin_hughes21-Apr-06 11:51
martin_hughes21-Apr-06 11:51 
General64 bit / IME / WindowsHook problem Pin
Daniel Grunwald21-Apr-06 10:11
Daniel Grunwald21-Apr-06 10:11 
GeneralRe: 64 bit / IME / WindowsHook problem Pin
LongRange.Shooter21-Apr-06 15:02
LongRange.Shooter21-Apr-06 15:02 
GeneralRe: 64 bit / IME / WindowsHook problem Pin
Daniel Grunwald22-Apr-06 2:06
Daniel Grunwald22-Apr-06 2:06 
QuestionSwitching from DG tp DGV !!!???!!!???!!!??? Pin
mrkeivan21-Apr-06 9:44
mrkeivan21-Apr-06 9:44 
AnswerRe: Switching from DG tp DGV !!!???!!!???!!!??? Pin
Josh Smith21-Apr-06 10:04
Josh Smith21-Apr-06 10:04 
QuestionHow to find what file/s was selected by mouse? Pin
FocusedWolf21-Apr-06 8:35
FocusedWolf21-Apr-06 8:35 

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.