G
Guest
Hi,
Me again. I want to create a SQL Server StoreProcedure and I want to access
it with ADO.NET. I am using VB.NET.
Creating StoreProcedure it was easy but my question is this.
I have table with 4 Column and 6 rows. In the Column 3 for all rows I have
to insert data. The data considt of the decimal value of Croiss Exchange and
6 my variable as:
mUSD = 1.33500
mAUD = 0.91841
mSTG = 2.39300
mJPY = 0.01068
mEuro = 1.63900
mCYP = 2.85700
My Stored Procudure I have to use the CurrncyId as
USD = 1
AUD = 2
STG = 3
JPY = 4
Euro = 5
CYP = 6
Now if I create a Stored Procedure as:
"INSERT INTO tbl_DAILYRATE(xCHANGE) VALUES (@mUSD) WHERE cCHANHEID = USD"
and try to insert data into SQL Server I am getting error that says my
Stored Procedure string has error.
Does anyone know how to Create a Stored procedure to Insert data using some
column as ID Key?
Thank you in advance.
Rgds.
GC
Me again. I want to create a SQL Server StoreProcedure and I want to access
it with ADO.NET. I am using VB.NET.
Creating StoreProcedure it was easy but my question is this.
I have table with 4 Column and 6 rows. In the Column 3 for all rows I have
to insert data. The data considt of the decimal value of Croiss Exchange and
6 my variable as:
mUSD = 1.33500
mAUD = 0.91841
mSTG = 2.39300
mJPY = 0.01068
mEuro = 1.63900
mCYP = 2.85700
My Stored Procudure I have to use the CurrncyId as
USD = 1
AUD = 2
STG = 3
JPY = 4
Euro = 5
CYP = 6
Now if I create a Stored Procedure as:
"INSERT INTO tbl_DAILYRATE(xCHANGE) VALUES (@mUSD) WHERE cCHANHEID = USD"
and try to insert data into SQL Server I am getting error that says my
Stored Procedure string has error.
Does anyone know how to Create a Stored procedure to Insert data using some
column as ID Key?
Thank you in advance.
Rgds.
GC