any Param is varchar(8000) ,why ?
Posted: Thu 24 Sep 2009 14:51
UniQuery+DataSetProvider+Remobjects SDK(DataSnap)+ClientDataSet
DataBase:SQL Server 2000
ClientDataSet.CommandText:='Select Itembh,Qty From Table1';
first run profiler.exe monitor,ClinetDataSet append new record,ApplyUpdates,why all param is varchar(8000)?
Modify ClientDataSet,ApplyUpdates,why all param is varchar(8000)??
If you are using DBX's SQLDataSet+DataSetProvider+Remobjects SDK(DataSnap)+ClientDataSet,not the problem.
If UniQuery + DataSetProvider + ClientDataSet in the same Form, no problem.
if UniQuery+DataSetProvider+Remobjects SDK(DataSnap)+ClientDataSet,There should be a UniDac than UniQuery simpler UniDataSet, similar to the DBX's SQLDataSet
sorry,my english is very very poor,
DataBase:SQL Server 2000
Code: Select all
CREATE TABLE Table1
( itembh varchar(20) PRIMARY KEY CLUSTERED , Qty Numeric(12,2) )
ClientDataSet.CommandText:='Select Itembh,Qty From Table1';
first run profiler.exe monitor,ClinetDataSet append new record,ApplyUpdates,why all param is varchar(8000)?
Code: Select all
exec sp_executesql N'insert into [Table1]
([itembh], [Qty])
values
(@P1, @P2)', N'@P1 varchar(8000),@P2 varchar(8000)', 'aaaa', '1000'
Code: Select all
exec sp_executesql N'update [Table1] set
[itembh] = @P1,
[Qty] = @P2
where
[itembh] = @P3 and
[Qty] = @P4', N'@P1 varchar(8000),@P2 varchar(8000),@P3 varchar(8000),@P4 varchar(8000)', 'bbbb', '50', 'aaaa', '1000'
If UniQuery + DataSetProvider + ClientDataSet in the same Form, no problem.
if UniQuery+DataSetProvider+Remobjects SDK(DataSnap)+ClientDataSet,There should be a UniDac than UniQuery simpler UniDataSet, similar to the DBX's SQLDataSet
sorry,my english is very very poor,