﻿



CREATE PROCEDURE [dbo].[USR_Users_GetData]

	@UserId	Bigint 


AS 

SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED

		SELECT [UserId]
			  ,[UserRoleId]
			  ,[Email]
			  ,[UserTypeId]
			  ,[Password]
			  ,[UserName]
			  ,[FirstName]
			  ,[LastName]
			  ,[CountryId]
			  ,[PhonePrefix]
			  ,[Phone]
			  ,[Address]
			  ,[City]
			  ,[ZipCode]
			  ,[BirthDate]
			  ,[Gender]
			  ,[LanguageId]
			  ,[IsUSTaxEntity]
			  ,[RegistrationDate]
			  ,[KYC_Approved]
			  ,[CreateDate]
			  ,[CreateOrigin]
			  ,[CreateIPAddress]
			  ,[Source]
			  ,[LastModifyDate]
			  ,[LastModifyOrigin]
			  ,[LastModifyOperatorId]
			  ,[TermsOfServiceChecked]
			  ,[MailVerfied]
			  ,[PhoneVerified]
	  FROM [dbo].[Users]
	  where UserId = @UserId




	SELECT [AccountId]
		  ,[UserId]
		  ,[Symbol]
		  ,[CurrentBalance]
		  ,[CurrentBonusBalance]
		  ,[TotalPending]
		  ,[CreateDate]
		  ,[LastModifyDate]
		  ,[LastModifyOrigin]
		  ,[LastModifyOperatorId]
	  FROM [dbo].[Accounts]
	  WHERE UserId = @UserId