Click here to Skip to main content
15,920,632 members
Home / Discussions / C#
   

C#

 
GeneralRe: Connection to access database with C#.net Pin
leppie23-Dec-04 3:27
leppie23-Dec-04 3:27 
GeneralRe: Connection to access database with C#.net Pin
Robske23-Dec-04 4:25
Robske23-Dec-04 4:25 
GeneralRe: Connection to access database with C#.net Pin
leppie23-Dec-04 4:42
leppie23-Dec-04 4:42 
GeneralRe: Connection to access database with C#.net Pin
Robske23-Dec-04 8:06
Robske23-Dec-04 8:06 
GeneralRe: Connection to access database with C#.net Pin
Rob Graham23-Dec-04 8:56
Rob Graham23-Dec-04 8:56 
GeneralRe: Connection to access database with C#.net Pin
Robske25-Dec-04 1:23
Robske25-Dec-04 1:23 
GeneralRe: Connection to access database with C#.net Pin
Heath Stewart23-Dec-04 5:32
protectorHeath Stewart23-Dec-04 5:32 
GeneralRe: Connection to access database with C#.net Pin
SeMartens23-Dec-04 3:32
SeMartens23-Dec-04 3:32 
Hi,

I think that the message within the exception would help a little bit more.

So what you have to do is to put your method getNieuws in a try-catch:

<br />
public DataSet getNieuws()<br />
{<br />
try {<br />
string SqlString = "select * from user";<br />
DataSet dstResult= new DataSet();<br />
<br />
dataAdapter = new OleDbDataAdapter(SqlString, connectionString); <br />
dataAdapter.Fill(dstResult);<br />
<br />
return dstResult; <br />
} catch (OleDbException ex) {<br />
Console.WriteLine(ex.Message)<br />
return null;<br />
}<br />
}<br />


Smile | :) Then look at your console what the exception writes back...

I think that would help a bit more


Sebastian Martens
GeneralRe: Connection to access database with C#.net Pin
Robske23-Dec-04 4:27
Robske23-Dec-04 4:27 
GeneralRe: Connection to access database with C#.net Pin
Rob Graham24-Dec-04 6:14
Rob Graham24-Dec-04 6:14 
Generalundo implemention Pin
ppp00123-Dec-04 0:34
ppp00123-Dec-04 0:34 
GeneralRe: undo implemention Pin
benjymous23-Dec-04 1:07
benjymous23-Dec-04 1:07 
GeneralCall external COM object, want to catch S_FALSE return code Pin
ohadp22-Dec-04 21:07
ohadp22-Dec-04 21:07 
Questionhow to share class on vss? Pin
montu337722-Dec-04 20:50
montu337722-Dec-04 20:50 
AnswerRe: how to share class on vss? Pin
Alex Korchemniy22-Dec-04 22:42
Alex Korchemniy22-Dec-04 22:42 
GeneralRe: how to share class on vss? Pin
montu337722-Dec-04 23:14
montu337722-Dec-04 23:14 
General[SQL] Using 'Like' operator for prepared statement Pin
ting66822-Dec-04 19:17
ting66822-Dec-04 19:17 
GeneralRe: [SQL] Using 'Like' operator for prepared statement Pin
Heath Stewart22-Dec-04 19:26
protectorHeath Stewart22-Dec-04 19:26 
GeneralDirectX and C# - Display AVI file Pin
Ahindika22-Dec-04 18:50
Ahindika22-Dec-04 18:50 
GeneralRe: DirectX and C# - Display AVI file Pin
Heath Stewart22-Dec-04 20:00
protectorHeath Stewart22-Dec-04 20:00 
GeneralDatagrid with textbox Pin
marck.santos22-Dec-04 15:15
marck.santos22-Dec-04 15:15 
GeneralRe: Datagrid with textbox Pin
Heath Stewart22-Dec-04 19:33
protectorHeath Stewart22-Dec-04 19:33 
GeneralPassing Value Types by Reference Pin
paulsawyer22-Dec-04 15:00
paulsawyer22-Dec-04 15:00 
GeneralRe: Passing Value Types by Reference Pin
Heath Stewart22-Dec-04 19:17
protectorHeath Stewart22-Dec-04 19:17 
GeneralRe: Passing Value Types by Reference Pin
Salil Khedkar22-Dec-04 19:20
Salil Khedkar22-Dec-04 19:20 

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.