This is my sp,
I did SP based on this table,
And this is my foxpro table,
I need to get my final result as below and I need to insert auto increment number to SP when I click on my button.
what should I do for this.
Code:
USE [MIS]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[Wash_Para_Inc]
(
@nParaID smallint ,
@cParaNo varchar(15),
@cParaYear char(4) ,
@cParaCD varchar(4)
)
AS
BEGIN
SET NOCOUNT ON
SET IDENTITY_INSERT wshPara ON;
Select nParaID ,cParaYear,cParaCD , row_number() over (partition by cParaCD order by nParaID ) as cParaNo from wshPara;
END
I did SP based on this table,
Code:
ParaID cParaYear cParaCD cParaNo
218 2021 VTMC 1
54 2020 VTMF 1
And this is my foxpro table,
Code:
nParaID cParaNo cParaCD cParaYear cFtyCD cInvNo
218 1 VTMC 2021 VTM 234/S/34
I need to get my final result as below and I need to insert auto increment number to SP when I click on my button.
Code:
ParaID cParaYear cParaCD cParaNo
218 2021 VTMC 1
[b]218 2021 VTMC 2[/b]
54 2020 VTMF 1
what should I do for this.