Click here to Skip to main content
15,918,808 members
Home / Discussions / Database
   

Database

 
AnswerRe: Filter records between Two Dates ... Pin
Mycroft Holmes29-Aug-10 21:48
professionalMycroft Holmes29-Aug-10 21:48 
QuestionDAORecordSet Fails to update... Pin
Kyudos29-Aug-10 13:58
Kyudos29-Aug-10 13:58 
AnswerRe: DAORecordSet Fails to update... Pin
Mycroft Holmes29-Aug-10 22:02
professionalMycroft Holmes29-Aug-10 22:02 
AnswerRe: DAORecordSet Fails to update... Pin
Kyudos31-Aug-10 12:34
Kyudos31-Aug-10 12:34 
Questionconvert sql2005 to sql2008 Pin
moein.serpico28-Aug-10 3:36
moein.serpico28-Aug-10 3:36 
AnswerRe: convert sql2005 to sql2008 Pin
dan!sh 28-Aug-10 4:08
professional dan!sh 28-Aug-10 4:08 
AnswerRe: convert sql2005 to sql2008 Pin
Mycroft Holmes28-Aug-10 14:28
professionalMycroft Holmes28-Aug-10 14:28 
QuestionWeird SQL Server 2005 Sybase interaction [modified] Pin
jchalfant27-Aug-10 11:10
jchalfant27-Aug-10 11:10 
How's this for weird?

One of my co-workers was attempting to develop an update trigger for an application that is developed using power-builder and (as far as I can tell) communicates to the database through a Sybase layer. The application is talking to a SQL Server 2005 server with a database set to SQL Server 2000 compatibility level.

In the trigger, he is inserting into a table variable and running some logic based on that. The entire trigger runs just fine through all test cases in the DB; however it fails when the update is called from the application. With the error: Row changed between retrieve and update. Not having access to the application source, we couldn't debug very much through the app and Google was not our friend.

Through debugging the trigger, we found the insert statement to be the culprit, but only when it insert 0 records into the table variable(we knew the logic below the trigger to be irrelevant as it was commented out).

Being curious about the error message, I went ahead and printed @@error before and after the insert; then tested through Management Studio. I received no errors. Still curious, we ran the update through the app. We encountered no errors here either. Eventually we found that printing anything before the insert resolved the issue. In an attempt to figure out the problem, I even tried PRINT char(13)+'(0 row(s) affected)'. It ran with no problem through the app.

Happy to be rid of the error, my colleague continued his development; but we're still wondering: "WTF?"

What do you guys think? Shall we chalk it up to Sybase oddities or is there a reasonable explanation for this?

modified on Friday, August 27, 2010 9:47 PM

AnswerRe: Wierd SQL Server 2005 Sybase interaction Pin
Mycroft Holmes27-Aug-10 12:06
professionalMycroft Holmes27-Aug-10 12:06 
GeneralRe: Wierd SQL Server 2005 Sybase interaction Pin
jchalfant30-Aug-10 2:30
jchalfant30-Aug-10 2:30 
QuestionAccess 2003 disable popup messages Pin
dcode2527-Aug-10 5:01
dcode2527-Aug-10 5:01 
AnswerRe: Access 2003 disable popup messages Pin
SilimSayo27-Aug-10 5:58
SilimSayo27-Aug-10 5:58 
GeneralRe: Access 2003 disable popup messages Pin
dcode2527-Aug-10 6:03
dcode2527-Aug-10 6:03 
AnswerRe: Access 2003 disable popup messages Pin
Luc Pattyn27-Aug-10 6:08
sitebuilderLuc Pattyn27-Aug-10 6:08 
Question@@rowcount is now working with while and if statement Pin
Jagz W27-Aug-10 0:12
professionalJagz W27-Aug-10 0:12 
AnswerRe: @@rowcount is now working with while and if statement Pin
Goutam Patra27-Aug-10 2:16
professionalGoutam Patra27-Aug-10 2:16 
GeneralRe: @@rowcount is now working with while and if statement Pin
Corporal Agarn27-Aug-10 3:49
professionalCorporal Agarn27-Aug-10 3:49 
Questionsql function for day of week Pin
Thanusree Duth26-Aug-10 23:09
Thanusree Duth26-Aug-10 23:09 
AnswerRe: sql function for day of week Pin
Mycroft Holmes26-Aug-10 23:20
professionalMycroft Holmes26-Aug-10 23:20 
AnswerRe: sql function for day of week Pin
Corporal Agarn27-Aug-10 3:55
professionalCorporal Agarn27-Aug-10 3:55 
AnswerRe: sql function for day of week Pin
dave_1610871-Sep-10 22:54
dave_1610871-Sep-10 22:54 
QuestionSending email from ms Access using CDO , Problem ? Pin
dcode2526-Aug-10 8:30
dcode2526-Aug-10 8:30 
AnswerRe: Sending email from ms Access using CDO , Problem ? Pin
Blue_Boy26-Aug-10 22:01
Blue_Boy26-Aug-10 22:01 
GeneralRe: Sending email from ms Access using CDO , Problem ? Pin
dcode2527-Aug-10 0:57
dcode2527-Aug-10 0:57 
AnswerRe: Sending email from ms Access using CDO , Problem ? Pin
jchalfant27-Aug-10 16:17
jchalfant27-Aug-10 16:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.