![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Testing upscaling to SQL Server 2009. |
#3
| |||
| |||
|
|
BobAlston<bobalston9 (AT) yahoo (DOT) com> wrote in news:iuq0pb$35t$1 (AT) dont-email (DOT) me: Testing upscaling to SQL Server 2009. No such thing. Oops big bad typo. I am trying to test out Access 2003 app to SQL |
#4
| |||
| |||
|
|
On 7/3/2011 4:05 PM, David-W-Fenton wrote: BobAlston<bobalston9 (AT) yahoo (DOT) com> wrote in news:iuq0pb$35t$1 (AT) dont-email (DOT) me: Testing upscaling to SQL Server 2009. No such thing. Oops big bad typo. I am trying to test out Access 2003 app to SQL Server 2008. OK. Now that I corrected my typo, any ideas what the problem may be? Bob |
#5
| |||
| |||
|
|
On 7/3/2011 4:51 PM, BobAlston wrote: On 7/3/2011 4:05 PM, David-W-Fenton wrote: BobAlston<bobalston9 (AT) yahoo (DOT) com> wrote in news:iuq0pb$35t$1 (AT) dont-email (DOT) me: Testing upscaling to SQL Server 2009. No such thing. Oops big bad typo. I am trying to test out Access 2003 app to SQL Server 2008. OK. Now that I corrected my typo, any ideas what the problem may be? Bob I found that this works. Sub TestADODB() Dim conn As ADODB.Connection Dim rs As ADODB.Recordset Set conn = CurrentProject.Connection Set rs = New ADODB.Recordset rs.Open "SELECT * FROM tbl_client_data ", conn Stop End Sub Not sure why my DAO code fails. Bob |
#6
| |||
| |||
|
|
On 7/3/2011 5:35 PM, BobAlston wrote: On 7/3/2011 4:51 PM, BobAlston wrote: On 7/3/2011 4:05 PM, David-W-Fenton wrote: BobAlston<bobalston9 (AT) yahoo (DOT) com> wrote in news:iuq0pb$35t$1 (AT) dont-email (DOT) me: Testing upscaling to SQL Server 2009. No such thing. Oops big bad typo. I am trying to test out Access 2003 app to SQL Server 2008. OK. Now that I corrected my typo, any ideas what the problem may be? Bob I found that this works. Sub TestADODB() Dim conn As ADODB.Connection Dim rs As ADODB.Recordset Set conn = CurrentProject.Connection Set rs = New ADODB.Recordset rs.Open "SELECT * FROM tbl_client_data ", conn Stop End Sub Not sure why my DAO code fails. Bob Anyone know why my DAO code did not work yet the ADO code did? bob |
#7
| |||
| |||
|
|
Anyone know why my DAO code did not work yet the ADO code did? bob Probably because DAO has not been updated to handle timestamp data. Actually, timestamp fields are not intended to be modified by users - why bother including it in your recordset? They have no information that is useful to users, and are updated automatically by the database engine when a row is changed. I was puzzled by that SSMA thing, so I googled it and found " ... is generated so that the Migration assistant can detect changes to the data during the migration. I don't think it is used after migration is complete, so it should be safe to drop these new columns once you are sure everything is done." |
#8
| |||
| |||
|
|
On Sun, 10 Jul 2011 18:45:45 -0400, "Bob Barrows" reb01501 (AT) NOSPAMyahoo (DOT) com> wrote: Anyone know why my DAO code did not work yet the ADO code did? bob Probably because DAO has not been updated to handle timestamp data. Actually, timestamp fields are not intended to be modified by users - why bother including it in your recordset? They have no information that is useful to users, and are updated automatically by the database engine when a row is changed. I was puzzled by that SSMA thing, so I googled it and found " ... is generated so that the Migration assistant can detect changes to the data during the migration. I don't think it is used after migration is complete, so it should be safe to drop these new columns once you are sure everything is done." Not sure what all is in that quote |
|
but TimeStamp aka RowVersion fields are strongly recommended for use by Access when going against SQL Server backends. It saves Access from having to examine each field individually when doing updates to see if someone/thing else has changed a field in the record. |
#9
| |||
| |||
|
|
Probably because DAO has not been updated to handle timestamp data. Actually, timestamp fields are not intended to be modified by users - why bother including it in your recordset? They have no information that is useful to users, and are updated automatically by the database engine when a row is changed. |
#10
| |||
| |||
|
|
"Bob Barrows" <reb01501 (AT) NOSPAMyahoo (DOT) com> wrote in news:ivda4d$qr7$1 (AT) dont-email (DOT) me: Probably because DAO has not been updated to handle timestamp data. Actually, timestamp fields are not intended to be modified by users - why bother including it in your recordset? They have no information that is useful to users, and are updated automatically by the database engine when a row is changed. The timestamp field is READ by Jet/ACE to determine whether the record needs to be refreshed. That is, if the timestamp has changed, it means somebody edited the record and the new data should be pulled over. |
|
So, it's absolutely CRUCIAL that the timestamp field be included. I include a timestamp field in EVERY TABLE in SQL Server databases where the front end is Access because it makes things much easier. |
![]() |
| Thread Tools | |
| Display Modes | |
| |