Re: how to select or update data when column name has space
From: haiwen (haiwen_at_discussions.microsoft.com)
Date: 10/11/04
- Next message: hoa: ".NET 2.0 rows.insertat not working"
- Previous message: W.G. Ryan eMVP: "Re: AutoIncrement Column on dataColumn"
- In reply to: W.G. Ryan eMVP: "Re: how to select or update data when column name has space"
- Next in thread: W.G. Ryan eMVP: "Re: how to select or update data when column name has space"
- Reply: W.G. Ryan eMVP: "Re: how to select or update data when column name has space"
- Reply: Eric Renken: "Re: how to select or update data when column name has space"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 11 Oct 2004 13:39:08 -0700
Hello, Ryan:
Thanks for your reply. I used it, such as:
s="select [Company name],CompanyID from companies order by CompanyID asc";
OleDbDataAdapter adapter=new OleDbDataAdapter(s,con);
adapter.Fill(ds);
But I always get follow exception:
System.Data.OleDb.OleDbException: No value given for one or more required
parameters.
what's wrong I have done?
Sincerely,
haiwen
"W.G. Ryan eMVP" wrote:
> use [Company Name]
>
> --
> W.G. Ryan, MVP
>
> www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
> "haiwen" <haiwen@discussions.microsoft.com> wrote in message
> news:9169E853-AB4A-42DE-BE55-17C8C986FBD0@microsoft.com...
> > Hello, everyone:
> >
> > I am writing an ado.net componet in c# to fetch data from MS Acess
> database.
> >
> > I got a problem is some table has column with space, such as "company
> name",
> >
> > Could anyone tell me how to select this kind of column?
> >
> > sincerely,
> >
> > haiwen
>
>
>
- Next message: hoa: ".NET 2.0 rows.insertat not working"
- Previous message: W.G. Ryan eMVP: "Re: AutoIncrement Column on dataColumn"
- In reply to: W.G. Ryan eMVP: "Re: how to select or update data when column name has space"
- Next in thread: W.G. Ryan eMVP: "Re: how to select or update data when column name has space"
- Reply: W.G. Ryan eMVP: "Re: how to select or update data when column name has space"
- Reply: Eric Renken: "Re: how to select or update data when column name has space"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|