Click here to Skip to main content
15,910,886 members
Home / Discussions / Database
   

Database

 
GeneralDate convert function Pin
Kissy1615-Jan-08 23:57
Kissy1615-Jan-08 23:57 
GeneralRe: Date convert function Pin
Elizma16-Jan-08 0:37
Elizma16-Jan-08 0:37 
GeneralRe: Date convert function Pin
Kissy1616-Jan-08 0:47
Kissy1616-Jan-08 0:47 
QuestionUrgent:2nd highest salary without using a subquery in sql Pin
rockz...15-Jan-08 23:24
rockz...15-Jan-08 23:24 
GeneralRe: Urgent:2nd highest salary without using a subquery in sql Pin
Paul Conrad17-Jan-08 13:40
professionalPaul Conrad17-Jan-08 13:40 
GeneralRe: Urgent:2nd highest salary without using a subquery in sql Pin
Adeel Chaudhry17-Jan-08 22:34
Adeel Chaudhry17-Jan-08 22:34 
GeneralRe: Urgent:2nd highest salary without using a subquery in sql Pin
Paul Conrad19-Jan-08 7:06
professionalPaul Conrad19-Jan-08 7:06 
GeneralProcedure with Multiple Update Problem Pin
Vimalsoft(Pty) Ltd15-Jan-08 22:55
professionalVimalsoft(Pty) Ltd15-Jan-08 22:55 
Good Morning All


i have Create a Procedure for Update, am using Procedure to update the datagrid in vb.net. well it updates well, but it does not run the last Update Statement. my Procedure is like this..

<br />
Create Procedure PrcUpdate_Pro_View<br />
(<br />
@Original_Primary_ID int,<br />
@Original_Tshwane_Prediction  float,<br />
@Lis_key varchar(50),<br />
@Tshwane_Prediction float<br />
)<br />
as<br />
UPDATE Property_mass SET   Tshwane_Prediction = @Tshwane_Prediction<br />
WHERE (Primary_ID = @Original_Primary_ID) And<br />
 (Tshwane_Prediction = @Original_Tshwane_Prediction <br />
OR @Original_Tshwane_Prediction IS NULL AND Tshwane_Prediction IS NULL)<br />
<br />
Update Property_Mass set Locked = Null  <br />
WHERE (SUBSTRING(Lis_Key, 1, 4) = @Lis_key And Locked=1) <br />
;SELECT Primary_ID, Boundary_area, Attrib_Code, Lis_Key, Func_Key,<br />
Actual_Extent, Improved_Value, Site_Value, Purchase_price,<br />
Purchase_date, prop_id, confidence_score, fin_ls_prediction, <br />
new_lis_key, new_func_key, Tshwane_Prediction, matchflag,<br />
source, flagtype FROM Property_mass WHERE (Primary_ID = @Original_Primary_ID)<br />
<br />


The Last Update does not Run, and this Update Depends on the "Lis_key" Parameter Declared above.


PLease Help

Vuyiswa Maseko,

Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding

VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za


GeneralRe: Procedure with Multiple Update Problem Pin
Joe15-Jan-08 23:43
Joe15-Jan-08 23:43 
GeneralRe: Procedure with Multiple Update Problem Pin
Vimalsoft(Pty) Ltd16-Jan-08 0:28
professionalVimalsoft(Pty) Ltd16-Jan-08 0:28 
GeneralHelp me with SQL Query Pin
Vimalsoft(Pty) Ltd15-Jan-08 21:59
professionalVimalsoft(Pty) Ltd15-Jan-08 21:59 
GeneralCommand object use to add data to a database Pin
CodingLover15-Jan-08 18:28
CodingLover15-Jan-08 18:28 
GeneralRe: Command object use to add data to a database Pin
CodingLover15-Jan-08 19:12
CodingLover15-Jan-08 19:12 
QuestionWhat is 'IsMSShipped' ?? Pin
imsathy15-Jan-08 16:51
imsathy15-Jan-08 16:51 
GeneralRe: What is 'IsMSShipped' ?? Pin
Kishore.P15-Jan-08 18:02
Kishore.P15-Jan-08 18:02 
GeneralCreating a View Pin
AAGTHosting15-Jan-08 7:37
AAGTHosting15-Jan-08 7:37 
GeneralRe: Creating a View Pin
Colin Angus Mackay15-Jan-08 9:58
Colin Angus Mackay15-Jan-08 9:58 
GeneralRe: Creating a View Pin
AAGTHosting15-Jan-08 20:16
AAGTHosting15-Jan-08 20:16 
QuestionPerformance question Pin
Kosta Cherry15-Jan-08 7:35
Kosta Cherry15-Jan-08 7:35 
GeneralRe: Performance question Pin
Colin Angus Mackay15-Jan-08 9:49
Colin Angus Mackay15-Jan-08 9:49 
GeneralRe: Performance question Pin
Kosta Cherry15-Jan-08 13:48
Kosta Cherry15-Jan-08 13:48 
GeneralRe: Performance question Pin
Colin Angus Mackay15-Jan-08 14:19
Colin Angus Mackay15-Jan-08 14:19 
GeneralRe: Performance question Pin
Paul Conrad19-Jan-08 7:07
professionalPaul Conrad19-Jan-08 7:07 
Generalcreating table adapter queries using code Pin
Cory Kimble15-Jan-08 7:10
Cory Kimble15-Jan-08 7:10 
GeneralRe: creating table adapter queries using code Pin
Kishore.P15-Jan-08 18:22
Kishore.P15-Jan-08 18:22 

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.