The code below gives me an error message:
"Implicit conversion from datatype 'text' to 'varchar' is not allowed. Use CONVERT function to run this query"
Where and how do I use the convert or cast function?
In the VB Program? In the Stored Procedure? Where?
Thanks for any help.
----------------------------------
VB: Something like this,
myParm(0) = txtName.TEXT
myParm(1) = txtAddress.TEXT
myParm(2) = txtCity.TEXT
cmdmySQL.Execute , myParm
----------------------------------
Stored Procedure
CREATE PROC new_order
DECLARE @Name VARCHAR(50)
@Address VARCHAR(50)
@City VARCHAR(30)
AS INSERT card_orders(
Name, Address, City)
VALUES(
@Name, @Address, @City)
----------------------------------
"Implicit conversion from datatype 'text' to 'varchar' is not allowed. Use CONVERT function to run this query"
Where and how do I use the convert or cast function?
In the VB Program? In the Stored Procedure? Where?
Thanks for any help.
----------------------------------
VB: Something like this,
myParm(0) = txtName.TEXT
myParm(1) = txtAddress.TEXT
myParm(2) = txtCity.TEXT
cmdmySQL.Execute , myParm
----------------------------------
Stored Procedure
CREATE PROC new_order
DECLARE @Name VARCHAR(50)
@Address VARCHAR(50)
@City VARCHAR(30)
AS INSERT card_orders(
Name, Address, City)
VALUES(
@Name, @Address, @City)
----------------------------------