Board index » delphi » INSERT INTO command with dbExpress and MS SQL Server 2000
Eric Harmon
![]() Delphi Developer |
Fri, 04 Mar 2005 23:10:38 GMT
INSERT INTO command with dbExpress and MS SQL Server 2000
I have the following code:
sql.CommandText := 'INSERT INTO User1 (Code, Description) ' + where sql is a TSQLDataSet, Code is defined as VARCHAR(12) and Description I run the following code: sql.ParamByName('Code').AsString := 'TEST'; The row inserts correctly, but when I look at it in SQL Server Enterprise SELECT * FROM User1 WHERE Code = 'TEST' fails to return any data. If I enter the row data directly into SQL Server My question is, what do I need to do? Change the data type of the parameter -Eric Harmon |