C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




About stored procedures


Posted Date: 06 Apr 2007      Total Responses: 3

Posted By: Chitra A       Member Level: Silver     Points: 2


Hello,

We are using Asp.net 2005 and Sql Server 2005 . We have to INSERT and
UPDATE data using stored procedures with a join query but we are not knowing what is the problem in the query itself so please provide us help with any sample query using joins of only
INSERT and UPDATE. Its very URGENT............

ThankU




Responses

Author: shilpa    06 Apr 2007Member Level: SilverRating:     Points: 2
Hi chitra,

How r u ?...

here is ur Answer............still problem, let me know Ms.Chitra



Create Procedure prInsertNewSchedule
@intLeaseId int,
@intLeaseFrequencyId int
As
Insert LeaseSchedule(LeaseId, StartDate,
EndDate, LeaseFrequencyId)
Values (@intLeaseId, GetDate(),
DateAdd(Year, 3, GetDate()), @intLeaseFrequencyId)
return @@Error


******************

-- update information

update Equipment

Set Make = @chvMake,

Model = @chvModel,

EqTypeId = @intEqTypeId

where EquipmentId = @intEquipmentId

if exists(select EquipmentId

from EquipmentBC


where EquipmentId = @intEquipmentId)

update EquipmentBC

Set EquipmentBC = @intNewEquipmentBC

where EquipmentId = @intEquipmentId


else

insert EquipmentBC (EquipmentId, EquipmentBC)

values (@intEquipmentId, @intNewEquipmentBC)

end

return



Author: Chitra A    07 Apr 2007Member Level: SilverRating:     Points: 2
We have problem in inserting and updating the data using INNER JOINS and OUTER JOINS.We are using ASP.NET 2005 and SQL SERVER 2005 using SQL DATASOURCE.Please give us the sample code
of INSERT and UPDATE using INNER and OUTER JOINS for
joining the tables.Please give prompt reply.Its very
URGENT.......


Author: Chitra A    07 Apr 2007Member Level: SilverRating:     Points: 2
We have problem in inserting and updating the data using INNER JOINS and OUTER JOINS.We are using ASP.NET 2005 and SQL SERVER 2005 using SQL DATASOURCE.Please give us the sample code
of INSERT and UPDATE using INNER and OUTER JOINS for
joining the tables.Please give prompt reply.Its very
URGENT.......

ThankU


Post Reply
You must Sign In to post a response.
Next : Error provider control in vb.net
Previous : How to upload asp.net website to internet ,its very urgent plz help me
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

it outsourcing

Contact Us    Privacy Policy    Terms Of Use