02-06-2016, 09:08 PM
|
#5
|
|
• الانـتـسـاب » Feb 2008
|
• رقـم العـضـويـة » 14307
|
• المشـــاركـات » 44
|
• الـدولـة »
|
• الـهـوايـة »
|
• اسـم الـسـيـرفـر »
|
• الـجـنـس »
|
• نقـاط التقييم » 10
|
|
|
رد: 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( int, 0), convert( tinyint, 0), convert( tinyint, 0) return end select @nUserJID = JID from TB_User where StrUserID = @szUserID if (@nUserJID = 0 or @nUserJID is null or @@error <> 0 or @@rowcount = 0) begin select convert( int, 0), convert( tinyint, 0), convert( tinyint, 0) return end if (not exists(select JID from TB_User where JID = @nUserJID and password = @szPassword)) begin select convert( int, 0), convert( tinyint, 0), convert( tinyint, 0) return end select @sec_primary = sec_primary, @sec_content = sec_content from dbo.TB_User with (nolock) where JID = @nUserJID select @nUserJID, @sec_primary, @sec_content
شكراً
|
|
|