btw. i'm using such data type mapping setting
DataTypeMap.AddDBTypeRule(msReal, ftFloat);
and the field is a real field (defined in query like "(cast 0 as float(15))" )
Search found 301 matches
- Fri 15 Apr 2016 09:02
- Forum: SQL Server Data Access Components
- Topic: EDataMappingError Value is out of range: 0
- Replies: 2
- Views: 1707
- Fri 15 Apr 2016 08:42
- Forum: SQL Server Data Access Components
- Topic: EDataMappingError Value is out of range: 0
- Replies: 2
- Views: 1707
EDataMappingError Value is out of range: 0
Hi,
what does such exception mean?
It references a very normal TFloatField, without any constraints...
callstack:
what does such exception mean?
It references a very normal TFloatField, without any constraints...
callstack:
Code: Select all
(0000FE1D){} [05330E1D] System.@RaiseExcept
(002EE6C6){} [0663F6C6] CRAccess.TCRRecordSet.PutFieldData
(000D9714){} [0642A714] MemData.TData.PutField
(00250ED0){} [065A1ED0] MemDS.TMemDataSet.SetFieldData
(0037E0BC){} [066CF0BC] OLEDBAccess.TOLEDBRecordSet.CheckBCDOverflow
(00250C59){} [065A1C59] MemDS.TMemDataSet.SetFieldData
(0042493F){} [0574593F] Data.DB.TDataSet.SetFieldData
(00250747){} [065A1747] MemDS.TMemDataSet.GetFieldData
(00250CDA){} [065A1CDA] MemDS.TMemDataSet.SetFieldData
(004137F3){} [057347F3] Data.DB.TField.SetData
(00416C31){} [05737C31] Data.DB.TFloatField.SetAsFloat
- Thu 14 Apr 2016 07:24
- Forum: SQL Server Data Access Components
- Topic: stored procedure initialization & call generates 3 unneeded commands
- Replies: 1
- Views: 1832
stored procedure initialization & call generates 3 unneeded commands
hi,
following code (especially the line with storedprocname :=)
generates 2 commands in the profiler log:
the execution then reverts the NO_BROWSETABLE flag back to ON.
is there a way to get rig of those 3 weird commands? it slows down much the execution of stored procedures...
Thanks for tips, Ludek.
following code (especially the line with storedprocname :=)
Code: Select all
sp := TMSStoredProc.Create(nil);
sp.Connection := amsconnection;
sp.StoredProcName := 'dbo.somestoredsp';
Code: Select all
SET NO_BROWSETABLE OFF
exec [tt].[sys].sp_procedure_params_100_rowset N'somestoredsp',1,N'dbo',NULL
is there a way to get rig of those 3 weird commands? it slows down much the execution of stored procedures...
Thanks for tips, Ludek.
- Tue 12 Apr 2016 10:22
- Forum: SQL Server Data Access Components
- Topic: AddRefStr failed (D:\Projects\Delphi\Dac\Common\Source\MemData.pas, Zeile 8271)
- Replies: 1
- Views: 1798
AddRefStr failed (D:\Projects\Delphi\Dac\Common\Source\MemData.pas, Zeile 8271)
sdac 7.2.9, delphi 10.
irreproducible, but again and again at customer:
(000107F5){} [038C17F5] System.@Assert
(000E4E7D){} [049C5E7D] MemData.TStringHeap.AddRef
(000DBAEB){} [049BCAEB] MemData.TData.AddRefComplexFields
(00252918){} [04B33918] MemDS.TMemDataSet.Cancel
(003B4B81){} [04C95B81] MSAccess.TCustomMSDataSet.Cancel
(00427C01){} [03CD8C01] Data.DB.TDataSet.CheckBrowseMode
(0042694D){} [03CD794D] Data.DB.TDataSet.MoveBy
Do you have an idea? Our bug/your bug? solved perhaps in newer sdac? some explanation/way to analyze & correct?
Thanks very much for some tips, Ludek.
(I don't want to begin with just newer sdac, because i'm very afraid it will not help and introduce new more drastic bugs, till I now, it really helps...)
irreproducible, but again and again at customer:
(000107F5){} [038C17F5] System.@Assert
(000E4E7D){} [049C5E7D] MemData.TStringHeap.AddRef
(000DBAEB){} [049BCAEB] MemData.TData.AddRefComplexFields
(00252918){} [04B33918] MemDS.TMemDataSet.Cancel
(003B4B81){} [04C95B81] MSAccess.TCustomMSDataSet.Cancel
(00427C01){} [03CD8C01] Data.DB.TDataSet.CheckBrowseMode
(0042694D){} [03CD794D] Data.DB.TDataSet.MoveBy
Do you have an idea? Our bug/your bug? solved perhaps in newer sdac? some explanation/way to analyze & correct?
Thanks very much for some tips, Ludek.
(I don't want to begin with just newer sdac, because i'm very afraid it will not help and introduce new more drastic bugs, till I now, it really helps...)
- Thu 17 Dec 2015 12:45
- Forum: SQL Server Data Access Components
- Topic: cached updates & filter record bug
- Replies: 9
- Views: 2096
Re: cached updates & filter record bug
It seems to work now. Thanks!
- Tue 15 Dec 2015 14:01
- Forum: SQL Server Data Access Components
- Topic: cached updates & filter record bug
- Replies: 9
- Views: 2096
Re: cached updates & filter record bug
Thank you very much, I'll try!
- Fri 11 Dec 2015 12:25
- Forum: SQL Server Data Access Components
- Topic: cached updates & filter record bug
- Replies: 9
- Views: 2096
Re: cached updates & filter record bug
Thank you. I tried to delete these 2 lines
in tdata.open with acceptable results, but i'll wait for an official solution.
Code: Select all
if FCachedUpdates then
FilterUpdated;
- Fri 11 Dec 2015 10:18
- Forum: SQL Server Data Access Components
- Topic: cached updates & filter record bug
- Replies: 9
- Views: 2096
Re: cached updates & filter record bug
In the meantime found out, that even 6.11.23 & d10 seattle end with the same failure... something changed in delphi...???
- Wed 09 Dec 2015 15:12
- Forum: SQL Server Data Access Components
- Topic: login
- Replies: 3
- Views: 3328
Re: login
I think you cannot use TMSCompactConnection for connecting to regular MS SQL database (.mdf & .ldf is used by "normal" sql server - enterprise, standard, express; NOT compact).
You should use TMSConnection to connect to running SQL instance with those files attached as database.
You should use TMSConnection to connect to running SQL instance with those files attached as database.
- Mon 07 Dec 2015 08:16
- Forum: SQL Server Data Access Components
- Topic: cached updates & filter record bug
- Replies: 9
- Views: 2096
Re: cached updates & filter record bug
What can I do to use SDAC with delphi 10 seattle? Modify myself the 6.x version for delphi 10? would you mind returning the subscription fee, as the substription is completely useless? the new version for d10s does not work and there's also no support?
- Wed 02 Dec 2015 07:33
- Forum: SQL Server Data Access Components
- Topic: cached updates & filter record bug
- Replies: 9
- Views: 2096
Re: cached updates & filter record bug
Are there any news? Need to continue in testing, so that my d10 seattle version is finished before release of delphi 11...
- Wed 25 Nov 2015 18:57
- Forum: SQL Server Data Access Components
- Topic: cached updates & filter record bug
- Replies: 9
- Views: 2096
cached updates & filter record bug
hi,
if you build an application with:
Delphi 10 Seattle Update 1,
SDAC 7.2.8,
activate cached updates,
write an OnFilterRecordHandler
the application crashes with an access violation.
with delphi XE7 and SDAC 6.11.23 everything works fine.
sample code to reproduce this bug:
.pas
.dfm:
Please help.
Thanks, Ludek.
if you build an application with:
Delphi 10 Seattle Update 1,
SDAC 7.2.8,
activate cached updates,
write an OnFilterRecordHandler
the application crashes with an access violation.
with delphi XE7 and SDAC 6.11.23 everything works fine.
sample code to reproduce this bug:
.pas
Code: Select all
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, DBAccess, MSAccess, Data.DB, MemDS,
Vcl.StdCtrls, Vcl.Grids, Vcl.DBGrids,
Vcl.ActnMan, Vcl.ActnColorMaps, System.Actions,
Vcl.ActnList, Vcl.Menus, Vcl.ExtCtrls, Vcl.ToolWin, Vcl.ActnCtrls, Vcl.ActnMenus;
type
TForm1 = class(TForm)
MainQ: TMSQuery;
MSConnection1: TMSConnection;
MainQfield: TIntegerField;
procedure MainQSimpleFilterRecord(DataSet: TDataSet; var Accept: Boolean);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.MainQSimpleFilterRecord(DataSet: TDataSet; var Accept: Boolean);
begin
inherited;
accept := MainQfield.AsInteger = 0;
end;
end.
Code: Select all
object Form1: TForm1
Left = 0
Top = 0
ClientHeight = 201
ClientWidth = 304
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = True
PixelsPerInch = 96
TextHeight = 13
object MainQ: TMSQuery
Connection = MSConnection1
SQL.Strings = (
'select 1 as field'
''
'')
CachedUpdates = True
Filtered = True
OnFilterRecord = MainQSimpleFilterRecord
Active = True
object MainQfield: TIntegerField
FieldName = 'field'
end
end
object MSConnection1: TMSConnection
Database = 'master'
Authentication = auWindows
Server = 'localhost'
Connected = True
LoginPrompt = False
end
end
Thanks, Ludek.
- Fri 30 Oct 2015 13:51
- Forum: SQL Server Data Access Components
- Topic: fetchall = false only with MARS?
- Replies: 4
- Views: 2016
Re: fetchall = false only with MARS?
Thank you, I'll try.
- Tue 27 Oct 2015 15:05
- Forum: SQL Server Data Access Components
- Topic: fetchall = false only with MARS?
- Replies: 4
- Views: 2016
Re: fetchall = false only with MARS?
That is the thing I'm trying NOT to do. And second thing - the setting of the property does not mean at all, that the MARS is really active (especially with provider AUTO and no native client installed...)
- Fri 23 Oct 2015 14:22
- Forum: SQL Server Data Access Components
- Topic: TMSSQLMonitor shows fake openings
- Replies: 2
- Views: 1719
Re: TMSSQLMonitor shows fake openings
Thank you.