Click here to Skip to main content
15,891,657 members

Comments by Madhugundi (Top 87 by date)

Madhugundi 3-Sep-13 4:35am View    
please refer the below link
http://www.jquery4u.com/tutorials/thumbnail-image-upload-ajaxphp/
Madhugundi 3-Apr-13 3:12am View    
then how to get monthId to insert query
insert into HX_MonthInventory(MonthId,ItemId,StartingQty,NewShipmentQty,CreatedBy,CreatedOn ) values(@MonthId,@ItemId,@startingQty,@NewQty,@UserName,GETDATE())
Madhugundi 3-Apr-13 3:11am View    
i need to capture monthId in local variable to insert record in tblMonthInventory
Madhugundi 3-Apr-13 3:09am View    
after @MonthId=
Madhugundi 3-Apr-13 3:09am View    
thank you consider my post please check the following code i am getting errors
if exists( select @MonthId= Id from HX_Month where MonthName=@monthNm)
begin
insert into HX_MonthInventory(MonthId,ItemId,StartingQty,NewShipmentQty,CreatedBy,CreatedOn ) values(@MonthId,@ItemId,@startingQty,@NewQty,@UserName,GETDATE())
end
else
begin
insert into HX_MonthInventory(MonthId,ItemId,StartingQty,NewShipmentQty,CreatedBy,CreatedOn ) values(@MonthId,@ItemId,@startingQty,@NewQty,@UserName,GETDATE())
end

Msg 102, Level 15, State 1, Procedure Usp_UpdateItemInventory, Line 24
Incorrect syntax near '='.
Msg 156, Level 15, State 1, Procedure Usp_UpdateItemInventory, Line 28
Incorrect syntax near the keyword 'else'.