Re: OleDbDataAdapter appears to use incorrect path to DB

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: id (idkrome_at_hotmail.com)
Date: 02/19/04


Date: Wed, 18 Feb 2004 20:52:11 -0800


"Scott M." <s-mar@BADSPAMsnet.net> wrote in
news:e2xqDXp9DHA.1128@tk2msftngp13.phx.gbl:

>> > No need to have your Try...Catch return nothing.
>>
>> Interesting. The reason i do this is so I exit the function and I
>> return Nothing because this will signify that the function failed. By
>> the way, I am returning a DataTable from this function.
>
> Ok, you didn't show that you had this code in a function, so I didn't
> understand why you were using Return. If your function's return type
> is seet to a DataTable, won't you error out if your return Nothing
> (which is not a DataTable)?

Yep sorry i didn't include that function.
Returning Nothing works ok. From my understanding it's like passing a
reference to nothing back.

Also, I sorted out my original problem! It was an error in the SQL select
query. However, I still can't understand why this would change the path to
the database within the Data Adapter's Select Command's connection string.

Thanks for you help.
 



Relevant Pages

  • Re: OleDbDataAdapter appears to use incorrect path to DB
    ... The reason i do this is so I exit the function and I return ... > Nothing because this will signify that the function failed. ... seet to a DataTable, won't you error out if your return Nothing (which is ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Buffoon Kozel and a few other things.
    ... How can you support two proven liars and damn liars? ... See Scott, I don't drink, and have never drank. ... If conservatism is so widely held why oh why are the conservatives ... Reason Foundation and Heritage Foundation, ...
    (misc.transport.road)
  • Re: Buffoon Kozel and a few other things.
    ... How can you support two proven liars and damn liars? ... See Scott, I don't drink, and have never drank. ... If conservatism is so widely held why oh why are the conservatives ... Reason Foundation and Heritage Foundation, ...
    (misc.transport.road)
  • Re: New X-Men: Cipher/Cypher Sounds Different?
    ... people assumed it was a clue that Scott was ... Even the Emma ... And since Dark Reign itself used a different reason to get Emma ... Wolverine will no doubt back him up completeley. ...
    (rec.arts.comics.marvel.xbooks)
  • Re: Dive tables
    ... this for one simple reason. ... Cetaceans archives. ... Then Scott should be able to produce the ... You can bluster and look guilty or address it somehow. ...
    (rec.scuba)