Ask a Question related to ASP Database, Design and Development.
-
Terry Murray #1
Preferred method of doing an update within Asp using Access
I was wondering what is the best method of accomplishing an update within
Asp using Access? I was going to going to use the update method of an ado
recordset, but I thought I would ask in case there is a more efficient way
to do it.
Thanks
Terry
Terry Murray Guest
-
Preferred method/modules for MS SQL Server access on Linux
I've been using FreeTDS and the Sybase DBD to access a MS SQL Server database using DBI. It works reasonably well most of the time, but I've... -
Update method error
I use the following to update: Dim rsEdit1 Set rsEdit1 = Server.CreateObject("ADODB.Recordset") rsEdit1.ActiveConnection = MM_shop_STRING... -
Update method
I use the following to update: Dim rsEdit1 Set rsEdit1 = Server.CreateObject("ADODB.Recordset") rsEdit1.ActiveConnection = MM_shop_STRING... -
A VTI/Access Method for ODBC?
Has anyone worked on developing a VTI/External Data Access Method for linking to other ODBC data sources? sending to informix-list -
update problem in DataGrid's UpdateCommand method
Hi, anyone can help me to solve this little problem that i've spent a lot of time to solve it!! but i can't!!!! actually, i use a DataGrid, and... -
Ray at #2
Re: Preferred method of doing an update within Asp using Access
I'd go with that. Just don't ever fall into the nonsense of creating a
recordset object when doing an update like so many people do for some
unexplained reason!
Ray at work
"Terry Murray" <tgmurray@rogers.com> wrote in message
news:F5vwb.21923$X2W1.10824@news04.bloor.is.net.ca ble.rogers.com...> I was wondering what is the best method of accomplishing an update within
> Asp using Access? I was going to going to use the update method of an ado
> recordset, but I thought I would ask in case there is a more efficient way
> to do it.
>
> Thanks
> Terry
>
>
Ray at Guest
-
Bob Barrows #3
Re: Preferred method of doing an update within Asp using Access
Terry Murray wrote:
With VB, using the recordset's update method is fine. In ASP however, you> I was wondering what is the best method of accomplishing an update
> within Asp using Access? I was going to going to use the update
> method of an ado recordset, but I thought I would ask in case there
> is a more efficient way to do it.
>
> Thanks
> Terry
should use SQL DML (data modification language) instead, since it gets you
in and out of the database so much faster than a cursor.
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows Guest
-
Terry Murray #4
Re: Preferred method of doing an update within Asp using Access
Hi Ray. So if I understand you correctly. I should not have to use the
following statement:
Set rst = Server.CreateObject("ADODB.Recordset")
If its not too much trouble can you provide a little a snippet on how you
would perform an update. Remember I am using access withing Asp.
Thanks
Terry
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:erJQuYtsDHA.3196@TK2MSFTNGP11.phx.gbl...within> I'd go with that. Just don't ever fall into the nonsense of creating a
> recordset object when doing an update like so many people do for some
> unexplained reason!
>
> Ray at work
>
> "Terry Murray" <tgmurray@rogers.com> wrote in message
> news:F5vwb.21923$X2W1.10824@news04.bloor.is.net.ca ble.rogers.com...> > I was wondering what is the best method of accomplishing an updateado> > Asp using Access? I was going to going to use the update method of anway> > recordset, but I thought I would ask in case there is a more efficient>> > to do it.
> >
> > Thanks
> > Terry
> >
> >
>
Terry Murray Guest
-
Ray at #5
Re: Preferred method of doing an update within Asp using Access
Yeah, you shouldn't have to use that statement too often.
sSQL = "UDATE YourTable SET Something='something' WHERE Something='some
value'"
Set oADO = Server.CreateObject("ADODB.Connection")
oADO.Open YourConnectionString
oADO.Execute sSQL
oADO.Close
Set oADO = Nothing
The basic idea is to connect, execute, close, and destroy as fast as
possible. Even the building of your SQL string should be done before
creating, connectiong, etc., for that extra .000000001 seconds. :]
Ray at work
"Terry Murray" <tgmurray@rogers.com> wrote in message
news:gxvwb.22298$X2W1.17474@news04.bloor.is.net.ca ble.rogers.com...> Hi Ray. So if I understand you correctly. I should not have to use the
> following statement:
>
> Set rst = Server.CreateObject("ADODB.Recordset")
>
> If its not too much trouble can you provide a little a snippet on how you
> would perform an update. Remember I am using access withing Asp.
>
> Thanks
> Terry
>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:erJQuYtsDHA.3196@TK2MSFTNGP11.phx.gbl...> within> > I'd go with that. Just don't ever fall into the nonsense of creating a
> > recordset object when doing an update like so many people do for some
> > unexplained reason!
> >
> > Ray at work
> >
> > "Terry Murray" <tgmurray@rogers.com> wrote in message
> > news:F5vwb.21923$X2W1.10824@news04.bloor.is.net.ca ble.rogers.com...> > > I was wondering what is the best method of accomplishing an update> ado> > > Asp using Access? I was going to going to use the update method of an> way> > > recordset, but I thought I would ask in case there is a more efficient>> >> > > to do it.
> > >
> > > Thanks
> > > Terry
> > >
> > >
> >
>
Ray at Guest
-
Terry Murray #6
Re: Preferred method of doing an update within Asp using Access
Hi Bob. You have definitely got me interested. Does this SQL DML work with
Access? And if so, where can I learn how to use it?
Thanks
Terry
"Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
news:%237AntltsDHA.3496@TK2MSFTNGP11.phx.gbl...> Terry Murray wrote:> With VB, using the recordset's update method is fine. In ASP however, you> > I was wondering what is the best method of accomplishing an update
> > within Asp using Access? I was going to going to use the update
> > method of an ado recordset, but I thought I would ask in case there
> > is a more efficient way to do it.
> >
> > Thanks
> > Terry
> should use SQL DML (data modification language) instead, since it gets you
> in and out of the database so much faster than a cursor.
>
> Bob Barrows
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
>
>
Terry Murray Guest
-
Bob Barrows #7
Re: Preferred method of doing an update within Asp using Access
DML is simply SQL statements using the UPDATE, INSERT and DELETE commands.
Ray has shown you an example.
Check out the JetSQL Reference in Access Online help. You will need to use
the Contents tab to find it.
Bob Barrows
Terry Murray wrote:--> Hi Bob. You have definitely got me interested. Does this SQL DML
> work with Access? And if so, where can I learn how to use it?
>
> Thanks
> Terry
>
> "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
> news:%237AntltsDHA.3496@TK2MSFTNGP11.phx.gbl...>> Terry Murray wrote:>> With VB, using the recordset's update method is fine. In ASP>>> I was wondering what is the best method of accomplishing an update
>>> within Asp using Access? I was going to going to use the update
>>> method of an ado recordset, but I thought I would ask in case there
>>> is a more efficient way to do it.
>>>
>>> Thanks
>>> Terry
>> however, you should use SQL DML (data modification language)
>> instead, since it gets you in and out of the database so much faster
>> than a cursor.
>>
>> Bob Barrows
>> --
>> Microsoft MVP -- ASP/ASP.NET
>> Please reply to the newsgroup. The email account listed in my From
>> header is my spam trap, so I don't check it very often. You will get
>> a quicker response by posting to the newsgroup.
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows Guest
-
Terry Murray #8
Re: Preferred method of doing an update within Asp using Access
Thanks again Ray
Terry
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:uGr$nqtsDHA.4056@TK2MSFTNGP11.phx.gbl...you> Yeah, you shouldn't have to use that statement too often.
>
> sSQL = "UDATE YourTable SET Something='something' WHERE Something='some
> value'"
> Set oADO = Server.CreateObject("ADODB.Connection")
> oADO.Open YourConnectionString
> oADO.Execute sSQL
> oADO.Close
> Set oADO = Nothing
>
> The basic idea is to connect, execute, close, and destroy as fast as
> possible. Even the building of your SQL string should be done before
> creating, connectiong, etc., for that extra .000000001 seconds. :]
>
> Ray at work
>
>
> "Terry Murray" <tgmurray@rogers.com> wrote in message
> news:gxvwb.22298$X2W1.17474@news04.bloor.is.net.ca ble.rogers.com...> > Hi Ray. So if I understand you correctly. I should not have to use the
> > following statement:
> >
> > Set rst = Server.CreateObject("ADODB.Recordset")
> >
> > If its not too much trouble can you provide a little a snippet on howa> > would perform an update. Remember I am using access withing Asp.
> >
> > Thanks
> > Terry
> >
> > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> > news:erJQuYtsDHA.3196@TK2MSFTNGP11.phx.gbl...> > > I'd go with that. Just don't ever fall into the nonsense of creatingan> > within> > > recordset object when doing an update like so many people do for some
> > > unexplained reason!
> > >
> > > Ray at work
> > >
> > > "Terry Murray" <tgmurray@rogers.com> wrote in message
> > > news:F5vwb.21923$X2W1.10824@news04.bloor.is.net.ca ble.rogers.com...
> > > > I was wondering what is the best method of accomplishing an update> > > > Asp using Access? I was going to going to use the update method ofefficient> > ado> > > > recordset, but I thought I would ask in case there is a more>> > way> >> > > > to do it.
> > > >
> > > > Thanks
> > > > Terry
> > > >
> > > >
> > >
> > >
> >
>
Terry Murray Guest
-
Ray at #9
Re: Preferred method of doing an update within Asp using Access
You bet. :]
Ray at home
"Terry Murray" <tgmurray@rogers.com> wrote in message
news:F_vwb.22693$X2W1.6812@news04.bloor.is.net.cab le.rogers.com...> Thanks again Ray
> Terry
Ray at Guest
-
Jeff Cochran #10
Re: Preferred method of doing an update within Asp using Access
On Mon, 24 Nov 2003 16:59:04 -0500, "Ray at <%=sLocation%>"
<myfirstname at lane34 dot com> wrote:
I think it has to do with working in VB, and I've seen a number of>I'd go with that. Just don't ever fall into the nonsense of creating a
>recordset object when doing an update like so many people do for some
>unexplained reason!
tutorials that use that method. Some of my first ASP code still has
record sets for updates and inserts, simply because I copied tutorials
when creating it and I'm too busy (or lazy) to go back through and
optimize it. Besides, if it works... :)
Yeah, I know. It could work *better*.
Jeff
Jeff Cochran Guest



Reply With Quote

