Search found 16 matches

by cytrinox
19.01.2012, 11:34
Forum: 6.6 - stable
Topic: Timeout expired while executing MS-SQL function
Replies: 1
Views: 584

Any updates to this problem?
by cytrinox
05.10.2010, 12:23
Forum: 6.6 - stable
Topic: ZEOS AND MSSQL TIME OUT
Replies: 3
Views: 720

I've the same problem.

timeout=x only sets the login timeout, but not query timeout.
by cytrinox
14.12.2009, 12:52
Forum: 6.6 - stable
Topic: Timeout expired while executing MS-SQL function
Replies: 1
Views: 584

Timeout expired while executing MS-SQL function

Hi, I've a very complex table-value function in MS-SQL (ADO protocol) which takes a long time to complete/send the first resultset row. For example: SELECT * FROM MY_FUNC(param1, param2, ...); Sometimes it takes more than 60 seconds (using SQL Management Studio) until the server returns the first ro...
by cytrinox
25.02.2009, 13:54
Forum: 6.6 - stable
Topic: Column type metadata request for MSSQL returns no type
Replies: 10
Views: 1229

Yes, it works correctly with Tables containing TEXT columns.
by cytrinox
17.02.2009, 15:26
Forum: 6.6 - stable
Topic: Bulk DDL Statements from script
Replies: 2
Views: 530

Bulk DDL Statements from script

Hi, I have a script which contains all CREATE statements for my views, procedures and indicies. This script is an export from IBExpert (Firebird 2.0 DB). That's not a special format, it's just a list of multiline CREATE statements: SET TERM ^ ; CREATE PROCEDURE FOOO.... BEGIN ........ END^ CREATE PR...
by cytrinox
16.02.2009, 13:31
Forum: 6.6 - stable
Topic: TZMetadata Access Violation and duplicated rows
Replies: 1
Views: 843

TZMetadata Access Violation and duplicated rows

Hi, I'm using TZMetadata on a Firebird 2.0 database to receive the tables, views, procedures. etc. mdTables works fine for TABLE objects, but not for VIEWs. Examples: Some VIEWs are returned correnct: one row, containing the VIEW name and the type "VIEW". This VIEWs have a VIEW_CONTEXT = 0...
by cytrinox
12.01.2009, 18:20
Forum: 6.6 - stable
Topic: Column type metadata request for MSSQL returns no type
Replies: 10
Views: 1229

Oops, my fault - sorry :roll: I have only uncommented Result.UpdateShortByName('DATA_TYPE', Ord(ConvertAdoToSqlType(GetShortByName('DATA_TYPE')))); but not the rest of the code which checks the column flags reported by the server. At my first post, there wasn't any blob fields in my database, so unc...
by cytrinox
12.01.2009, 16:04
Forum: 6.6 - stable
Topic: Column type metadata request for MSSQL returns no type
Replies: 10
Views: 1229

This effect is strange, as that code didn't change... Mark The point is, the exception is only raised if I uncomment the code showed in my first post. In the official version, the exception is not raised! The Metadata Resultset column "COLUMN_SIZE" is initialized with GetIntByName('CHARAC...
by cytrinox
12.01.2009, 14:20
Forum: 6.6 - stable
Topic: Column type metadata request for MSSQL returns no type
Replies: 10
Views: 1229

ColumnInfo.Precision is for text datatypes 2147483647 UPDATE: I have found the reason why the exception is raised: FColumnLengths[I] := GetColumnSize(Current); FColumnOffsets[I] := FColumnsSize; Inc(FColumnsSize, FColumnLengths[I] + 1); FColumnsSize is the size of all columns. So, adding 2147483647+...
by cytrinox
12.01.2009, 13:42
Forum: 6.6 - stable
Topic: Column type metadata request for MSSQL returns no type
Replies: 10
Views: 1229

I have tried my "fixed" zeoslib in some existing projects. Every attempt to open a query, an integer overflow exception is raised. The exception is raised in ZDbcCache on line 323 in method TZRowAccessor.GetColumnSize. stString: Result := ColumnInfo.Precision + 1; So, uncommenting the code...
by cytrinox
11.12.2008, 15:13
Forum: 6.6 - stable
Topic: Column type metadata request for MSSQL returns no type
Replies: 10
Views: 1229

Column type metadata request for MSSQL returns no type

Hi, I've just tried to request the column type of an mdColumns metadata request. I have many different datatypes used in my tables, but every request to self.FMetadata.FieldByName('DATA_TYPE').AsInteger returns 0 (for MSSQL/ADO connections). On line 1584 in ZDbcAdoMetadata.pas I have found the follo...
by cytrinox
26.11.2008, 22:11
Forum: 6.6 - stable
Topic: Count and datatype of unnamed params
Replies: 9
Views: 1179

I'm only use Firebird or MSSQL and the Stored Procedures are only procs with input params and one result set.
by cytrinox
26.11.2008, 21:50
Forum: 6.6 - stable
Topic: Count and datatype of unnamed params
Replies: 9
Views: 1179

The current API spec. requires the exact type, so if I always assume the type is string, the application allways calls set_param_asString. But I think I can change the API so the application must call set_param(index, datatype, databuf); because you're right - the application should know the exact t...
by cytrinox
26.11.2008, 21:15
Forum: 6.6 - stable
Topic: Count and datatype of unnamed params
Replies: 9
Views: 1179

Hm okay, an Integer param can be set with asString := '2' and asInteger := 2;.

But how can I set a date value? I have tried asString := '24.12.2008' and many other formats, but none works.
by cytrinox
26.11.2008, 17:53
Forum: 6.6 - stable
Topic: Count and datatype of unnamed params
Replies: 9
Views: 1179

UAHH :cry:

okay, but what about myapi_get_paramtype()?

With paramCheck := true the Params are added, but the type is 0 (unknow).