Pho3nix
The Legend
Looking to create a stored procedure that will give me a table that already exist's with the database but with a new Identifier. Is this the best way to create a new identifier as the current identifier's as they are already being used in the solution meaning I need a new one that I can parse values too.
Hope this makes sense. This is what I have so far.
Ok, is something wrong with my syntax?
Hope this makes sense. This is what I have so far.
Code:
CREATE PROCEDURE usp_FetchPackage
(
@P_ID GUID = NULL
)
AS
BEGIN
SET NOCOUNT ON;
SELECT [TaskUID]
,[TaskParentUID]
,[ProjectUID]
,[TaskName]
FROM [TEST_Reporting].[dbo].[EpmTask]
WHERE (@P_ID IS NULL OR ProjectUID = @P_ID)
GO
Ok, is something wrong with my syntax?
Last edited: