Re: Please Help

From: Greg Low \(MVP\) (greglow_at_lowell.com.au)
Date: 04/22/04


Date: Thu, 22 Apr 2004 14:59:13 +1000

Hi Bill,

Yep, from what I've seen, the Configuration wizard just uses the command
builder anyway.

HTH,

-- 
Greg Low (MVP)
MSDE Manager SQL Tools
www.whitebearconsulting.com
"William Ryan eMVP" <dotnetguru@comcast.nospam.net> wrote in message
news:uZsAkr6JEHA.3920@TK2MSFTNGP10.phx.gbl...
> Irikli:
>
> Just to touch on what Greg said, you are using batch command for the
> query... that's two different select commands. Remember that the
> commandbuilder (if you are using it) infers the update/insert/delete logic
> from the select statement.  You can see how this would get messy.
>
> You only get one command for your update/insert/delete respectively so it
> would be very confusing to generate logic like this.  I know the
> commandbuilder won't work and I really doubt the Configuration wizard
could
> handle this either.  Break it up into two queries (if you do a union, I
> still think you'll have a problem b/c the command builder which is very
> limited).
>
> So you can break this up into two queries with two adapters and use a
> datarelation with them (not sure if this is the reason or not, don't use
it
> if it doesn't fit).
>
> Also, For anything, the Configuration wizard or the commandbuilder to
> generate update logic, you need to have a key on your table, so ensure
that
> the table is keyed.
>
> HTH,
>
> Bill
> "Irakli Lomidze" <Irakli_lomidze@access.sanet.ge> wrote in message
> news:#VjTi83JEHA.2880@TK2MSFTNGP10.phx.gbl...
> > Dear Sirs.
> > I have Query like this;
> > string sql = "SELECT T_ID, T_ORDER, T_CAPTION FROM Codex_DTYPE; \n "+
> >
> > "SELECT A_ID, A_ORDER, A_CAPTION FROM Codex_DAUTHOR; ";
> >
> > SqlDataAdapter Da = new SqlDataAdapter(sql,Codex2004Connection);
> >
> > DataSet ds1 = new DataSet("SZo");
> >
> > Da.Fill(ds1);
> >
> > All works Fine but, When I Generate Update,Insert,Delete code i gives
> error
> > message.
> >
> > how i should generate code for it.
> >
> >
> >
> >
> >
>
>


Relevant Pages

  • Re: A couple of questions about updating data through a dataset
    ... >> And if I do have to use the BeginEdit() method, do I also have to issue ... > added, deleted, then it looks to the corresponding command and fires it. ... BTW, I am doing this programmatically, rather than using any wizard like the ... > Configuration wizard and deconstructing what it created. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Please Help
    ... You only get one command for your update/insert/delete respectively so it ... Break it up into two queries (if you do a union, ... Also, For anything, the Configuration wizard or the commandbuilder to ... > I have Query like this; ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Changes not committed
    ... the command. ... you may always want to use the IN alias clause of the Replace ... I am asking it to set the logical flag ...
    (microsoft.public.fox.vfp.forms)
  • Re: List Box to Open Form
    ... calculated time field is located) and the command buttons, ... >>> standard module. ... >>> hth ...
    (microsoft.public.access.forms)
  • Re: How can I change the login name and password?
    ... > I got the error message that sp_password is not a recognized command. ... >> HTH, Jens Suessmeyer. ... >>> login name to be same as my WIndows login and no passwrod. ...
    (microsoft.public.sqlserver.msde)