Can someone please help me to create an SP in sql server.
I need to insert data through foxpro9 into my SP. And I need to auto increment a number field according to a group. As an example,
Table1
If that is my table in my SP and I need to insert data from my foxpro table. In my foxpro table there have duplicate records like this.
Table2
Now I need to insert one record set to my SP through foxpro and I need my output as below,
SP,
How can I crate an SP for these and how to pass my data from foxpro table to SP
I need to insert data through foxpro9 into my SP. And I need to auto increment a number field according to a group. As an example,
Table1
Code:
ParaId ParaNo ParaYear ParaCD
218 1 2020 vtmc
217 1 2020 vtmf
456 1 2021 sfcc
If that is my table in my SP and I need to insert data from my foxpro table. In my foxpro table there have duplicate records like this.
Table2
Code:
ParaID ParaNo ParaYear ParaCD FctCD INVnO
218 1 2020 vtmc vtm 001/20/S
218 1 2020 vtmc vtm 001/20/S
218 1 2020 vtmc vtm 001/20/S
SP,
Code:
ParaId ParaNo ParaYear ParaCD
218 1 2020 vtmc
[b]218 2 2020 vtmc[/b][COLOR=#CC0000][/color]
217 1 2020 vtmf
456 1 2021 sfcc