PC Review


Reply
Thread Tools Rate Thread

Cannot Create a Dataset for an OLEDB DataAdapter

 
 
=?Utf-8?B?Q2hyaXM=?=
Guest
Posts: n/a
 
      25th Jan 2005
Hello,

I have an OLEDB DataAdapter and cannot create a Dataset to use with the
adapter because the SelectCommand contains a parameter. Is there a work
around for this?

Any Help is appreciated.

Thank You
 
Reply With Quote
 
 
 
 
W.G. Ryan eMVP
Guest
Posts: n/a
 
      25th Jan 2005
Chris - I'm not sure what you mean - in the designer or with code? Using
parameterized queries is definitely not an issue in code. Can you tell me a
little more aobut the problem.

--
W.G. Ryan MVP (Windows Embedded)

TiBA Solutions
www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"Chris" <(E-Mail Removed)> wrote in message
news:494FA9CB-FC29-4895-BEC9-(E-Mail Removed)...
> Hello,
>
> I have an OLEDB DataAdapter and cannot create a Dataset to use with the
> adapter because the SelectCommand contains a parameter. Is there a work
> around for this?
>
> Any Help is appreciated.
>
> Thank You



 
Reply With Quote
 
=?Utf-8?B?Q2hyaXM=?=
Guest
Posts: n/a
 
      26th Jan 2005
Hi,

I'm trying to do this in the designer. I can graphically create the
DataAdapter using the wizard. I can build the Select Query using the Query
Builder and placing a ?
in the criteria field for the appropriate field. This all seems to work
fine, however once I try to graphically build the dataset using the wizard,
it throws an error because the parameter value is empty and will not let me
create a dataset.

Thanks



"W.G. Ryan eMVP" wrote:

> Chris - I'm not sure what you mean - in the designer or with code? Using
> parameterized queries is definitely not an issue in code. Can you tell me a
> little more aobut the problem.
>
> --
> W.G. Ryan MVP (Windows Embedded)
>
> TiBA Solutions
> www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
> "Chris" <(E-Mail Removed)> wrote in message
> news:494FA9CB-FC29-4895-BEC9-(E-Mail Removed)...
> > Hello,
> >
> > I have an OLEDB DataAdapter and cannot create a Dataset to use with the
> > adapter because the SelectCommand contains a parameter. Is there a work
> > around for this?
> >
> > Any Help is appreciated.
> >
> > Thank You

>
>
>

 
Reply With Quote
 
=?Utf-8?B?S3VydCBTY2hyb2VkZXI=?=
Guest
Posts: n/a
 
      20th Apr 2005
In the designer you can set a default value for the dataadapter.
(better late than never)
thanks
kes

"Chris" wrote:

> Hi,
>
> I'm trying to do this in the designer. I can graphically create the
> DataAdapter using the wizard. I can build the Select Query using the Query
> Builder and placing a ?
> in the criteria field for the appropriate field. This all seems to work
> fine, however once I try to graphically build the dataset using the wizard,
> it throws an error because the parameter value is empty and will not let me
> create a dataset.
>
> Thanks
>
>
>
> "W.G. Ryan eMVP" wrote:
>
> > Chris - I'm not sure what you mean - in the designer or with code? Using
> > parameterized queries is definitely not an issue in code. Can you tell me a
> > little more aobut the problem.
> >
> > --
> > W.G. Ryan MVP (Windows Embedded)
> >
> > TiBA Solutions
> > www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
> > "Chris" <(E-Mail Removed)> wrote in message
> > news:494FA9CB-FC29-4895-BEC9-(E-Mail Removed)...
> > > Hello,
> > >
> > > I have an OLEDB DataAdapter and cannot create a Dataset to use with the
> > > adapter because the SelectCommand contains a parameter. Is there a work
> > > around for this?
> > >
> > > Any Help is appreciated.
> > >
> > > Thank You

> >
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dataset and dataadapter Ronny Microsoft ADO .NET 2 24th Sep 2008 10:16 PM
oledb DataAdapter and DataTables Chris Mayers Microsoft Dot NET 1 18th May 2005 02:17 PM
oledb DataAdapter and DataTables Chris Mayers Microsoft ADO .NET 1 18th May 2005 02:17 PM
oledb DataAdapter and DataTables Chris Mayers Microsoft Dot NET Framework 1 18th May 2005 02:17 PM
OleDb DataAdapter Fill puzzle rhino Microsoft ADO .NET 3 31st Aug 2003 11:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:07 AM.