Re: Replacing stored procedure
From: William Ryan eMVP (dotnetguru_at_comcast.nospam.net)
Date: 06/30/04
- Next message: Cowboy \(Gregory A. Beamer\) [MVP]: "Re: Replacing stored procedure"
- Previous message: John: "Replacing stored procedure"
- In reply to: John: "Replacing stored procedure"
- Next in thread: John: "Re: Replacing stored procedure"
- Reply: John: "Re: Replacing stored procedure"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 30 Jun 2004 16:24:01 -0400
It's essentially the same, you just use a Paramaterized sql statement (in
oledb it's ? instead or "@VariableName"). So you'll have an insert command,
update command, delete command and select command - for the first three
you'll declare the params the same way you do with a Stored proc specifying
the column mapping so the adapter will know what to pass to what field.
-- W.G. Ryan, eMVP Have an opinion on the effectiveness of Microsoft Embedded newsgroups? Let Microsoft know! https://www.windowsembeddedeval.com/community/newsgroups "John" <john@nospam.infovis.co.uk> wrote in message news:uXuiB4tXEHA.2908@TK2MSFTNGP10.phx.gbl... > Hi > > I need to insert a new record in an access table with values for various > fields provided. In sql server you have an insert stored procedure to which > you pass the field values as parameters. How do you do something like this > in access using oledb & vb.net? Whatever is easiest. > > Thanks > > Regards > >
- Next message: Cowboy \(Gregory A. Beamer\) [MVP]: "Re: Replacing stored procedure"
- Previous message: John: "Replacing stored procedure"
- In reply to: John: "Replacing stored procedure"
- Next in thread: John: "Re: Replacing stored procedure"
- Reply: John: "Re: Replacing stored procedure"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|