عرض مشاركة واحدة
قديم 02-06-2016, 09:08 PM   #5

eslam00
عضو جديد





• الانـتـسـاب » Feb 2008
• رقـم العـضـويـة » 14307
• المشـــاركـات » 44
• الـدولـة »
• الـهـوايـة »
• اسـم الـسـيـرفـر »
• الـجـنـس »
• نقـاط التقييم » 10
eslam00 صـاعـد

eslam00 غير متواجد حالياً



افتراضي رد: GlobalManager Problem in C-Sro



الحمد لله المشكله اتحلت برده من موقع اجنبي
والحل اهوه

كود PHP:
USE [SRO_R_Accountdb]
GO
/****** Object:  StoredProcedure [dbo].[_CertifyUser]    Script Date: 01/03/2015 13:10:12 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER  procedure 
[dbo].[_CertifyUser]
    @
szUserID        varchar(25),
    @
szPassword    varchar(50),
    @
szSSNumber    varchar(32)
as
    declare @
nUserJID int
    
declare @sec_primary tinyint
    
declare @sec_content tinyint
    set    
@nUserJID        0
    set    
@sec_primary    0
    set    
@sec_content    0
    
if (not exists(select JID from TB_User where StrUserID = @szUserID))
    
begin
        select convert
int0), converttinyint0), converttinyint0)
        return
    
end
    select 
@nUserJID JID from TB_User where StrUserID = @szUserID
    
if (@nUserJID or @nUserJID is null or @@error <> or @@rowcount 0)
    
begin
        select convert
int0), converttinyint0), converttinyint0)
        return
    
end    
    
if (not exists(select JID from TB_User where JID = @nUserJID and password = @szPassword))
    
begin
        select convert
int0), converttinyint0), converttinyint0)
        return
    
end    
    
    select 
@sec_primary sec_primary, @sec_content sec_content from dbo.TB_User with (nolockwhere JID = @nUserJID
    select 
@nUserJID, @sec_primary, @sec_content 
شكراً




رد مع اقتباس