Click here to Skip to main content
15,881,852 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Messages. Pin
Scott Serl14-Jun-05 10:00
Scott Serl14-Jun-05 10:00 
GeneralRe: SQL Messages. Pin
HahnTech13-Jun-05 12:03
HahnTech13-Jun-05 12:03 
GeneralStop SQL Pin
HahnTech10-Jun-05 12:22
HahnTech10-Jun-05 12:22 
GeneralRe: Stop SQL Pin
Colin Angus Mackay10-Jun-05 22:28
Colin Angus Mackay10-Jun-05 22:28 
GeneralRe: Stop SQL Pin
HahnTech11-Jun-05 12:21
HahnTech11-Jun-05 12:21 
GeneralRe: Stop SQL Pin
Atul Thakor13-Jun-05 23:01
sussAtul Thakor13-Jun-05 23:01 
GeneralConnecting mySQL to Dreamweaver Pin
crazypilot310-Jun-05 12:04
crazypilot310-Jun-05 12:04 
QuestionNHibernate - proper DELETE/UPDATE? Pin
devvvy9-Jun-05 18:00
devvvy9-Jun-05 18:00 
Hi, I'm not sure if I'm doing my UPDATE's and DELETE's the proper way:

Basically, I want to make sure what I updates, or deletes, in fact exists (ie not deleted by another user) before I actually perform the operation:
Code:

o_session = SetupBISConnection(...)<br />
trx = o_session.BeginTransaction()<br />
<br />
Try<br />
  'IF the object with specified UIN does not exist (that it's deleted by another user), then NHibernate will throw ObjectNotFoundException.<br />
  obj = o_session.Load(GetType(CObj), UIN)<br />
Catch ex As NHibernate.ObjectNotFoundException<br />
  'object to be updated does not exist - abort delete<br />
  Throw ex<br />
End Try<br />
<br />
'Okay, if no exception so far, it means the object is there...<br />
o_session.Delete(plan)<br />
o_session.Flush()<br />
<br />
trx.Commit()


Any pointer? Thanks in advance.

Norman Fung
QuestionNHibernate Query Analyzer? Any Tutorial? Pin
devvvy9-Jun-05 17:22
devvvy9-Jun-05 17:22 
Generalremove space in data/string Pin
GoldenStar9-Jun-05 16:55
GoldenStar9-Jun-05 16:55 
GeneralRe: remove space in data/string Pin
Christian Graus9-Jun-05 17:16
protectorChristian Graus9-Jun-05 17:16 
Generalread field description and display on webpage Pin
wpiass9-Jun-05 7:45
wpiass9-Jun-05 7:45 
GeneralError when export data from SQL to Ms Excel Pin
Mekong River9-Jun-05 3:59
Mekong River9-Jun-05 3:59 
GeneralRe: Error when export data from SQL to Ms Excel Pin
Lasse11-Jun-05 12:23
Lasse11-Jun-05 12:23 
GeneralConnecting to pastel using VB6.0 Pin
Member 20223418-Jun-05 23:17
Member 20223418-Jun-05 23:17 
GeneralRe: Connecting to pastel using VB6.0 Pin
toxcct9-Jun-05 5:43
toxcct9-Jun-05 5:43 
GeneralConvertings Tags to Attributes Pin
Tiger4568-Jun-05 22:18
Tiger4568-Jun-05 22:18 
GeneralRe: Convertings Tags to Attributes Pin
Robert Rohde12-Jun-05 3:22
Robert Rohde12-Jun-05 3:22 
Generalsql Pin
rohollahabadan8-Jun-05 21:21
rohollahabadan8-Jun-05 21:21 
GeneralRe: sql Pin
Colin Angus Mackay9-Jun-05 1:10
Colin Angus Mackay9-Jun-05 1:10 
GeneralRe: sql Pin
Vasudevan Deepak Kumar11-Jun-05 2:51
Vasudevan Deepak Kumar11-Jun-05 2:51 
GeneralWorking with stored procedure&#180;s transactions in .NET Pin
riv_luis8-Jun-05 10:00
riv_luis8-Jun-05 10:00 
GeneralRe: Working with stored procedure&#180;s transactions in .NET Pin
Colin Angus Mackay8-Jun-05 10:31
Colin Angus Mackay8-Jun-05 10:31 
GeneralRe: Working with stored procedure&#180;s transactions in .NET Pin
riv_luis9-Jun-05 2:17
riv_luis9-Jun-05 2:17 
GeneralWeb Services Pin
RSootarsing8-Jun-05 2:59
RSootarsing8-Jun-05 2:59 

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.