These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Need help to call this SQL Server Stored procedure from .Net
PostPosted: Wed Dec 10, 2008 2:24 pm 
Newbie

Joined: Wed Dec 10, 2008 2:14 pm
Posts: 17
Hi,

I am new to Hybernate objects.

Can someone pls help me how can I call this SQL Server Stored Procedure using hybernate object, in my .net application?

I request if you can give me code for all hybernate files and also .net code to call this.

Here is my SQL Server Stored Procedure.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
ALTER PROCEDURE [dbo].[RulesDetails_Get]
(
@ELAID INT ,
@FamilyID INT ,
@GroupID INT ,
@SubGroupID INT ,
@ItemComponentID INT ,
@ComponentID INT
)
AS
BEGIN

SELECT
QtyAlreadyOrdered_Component,
QtyAlreadyOrdered_Family,
QtyAlreadyOrdered_Group ,
QtyAlreadyOrdered_SubGroup,
QtyAlreadyOrdered_ELA ,

MaxQtyAllowed_Component ,
MaxQtyAllowed_Family ,
MaxQtyAllowed_Group ,
MaxQtyAllowed_SubGroup ,
MaxQtyAllowed_ELA ,

QtyBalanceAvailable_Component,
QtyBalanceAvailable_Family,
QtyBalanceAvailable_Group,
QtyBalanceAvailable_SubGroup,
QtyBalanceAvailable_ELA
FROM
MyTable1
WHERE
ELAID = @ELAID
AND
FamilyID = @FamilyID

END
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


Top
 Profile  
 
 Post subject: NHibernate and SQL Server Stored Procedures
PostPosted: Tue Dec 16, 2008 11:32 am 
Newbie

Joined: Tue Dec 16, 2008 10:24 am
Posts: 4
Maybe this will help:

http://softwaredevscott.spaces.live.com/blog/cns!1A9E939F7373F3B7!241.entry


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.