aziz rasul
Active member
- Local time
 - Today, 02:37
 
- Joined
 - Jun 26, 2000
 
- Messages
 - 1,935
 
I am trying to convert a MS access 2002 adp file to a accdb MS Access 2016 file. 
In the adp file I have a stored procedure, which when opened has the following:-
	
	
	
		
How do I create this stored procedure in the accdb file?
 In the adp file I have a stored procedure, which when opened has the following:-
		Code:
	
	
	-- =============================================
-- Author:		XXXXX XXX
-- Create date: 17th August 2011
-- Description:	Gets the user details.
--              Used on frmSplashScreen
-- =============================================
ALTER PROCEDURE dbo.GetUserDetails 
	@UserName nvarchar(50)
	
AS BEGIN
SET NOCOUNT ON
DECLARE
	@UserNameLOCAL nvarchar(50) = @UserName
SELECT
	FullName = A.Title + ' ' + A.Forename + ' ' + A.Surname,
	A.PeopleId,
	A.UserName,
	A.Email,
	A.UserReason,
	A.SeeAnEnhancements,
	A.UserEnabled,
	A.Site,
	A.AdminGroup
FROM
	dbo.tblPeople A
WHERE
	A.UserName = @UserNameLOCAL
	AND
	A.UserEnabled = 1
	
END
	How do I create this stored procedure in the accdb file?