Search found 8 matches

by ChrisCross
16.11.2014, 23:24
Forum: ZeosLib 7.2 Forum
Topic: MSSQL + FreeTDS proper version of TDS
Replies: 4
Views: 948

Re: MSSQL + FreeTDS proper version of TDS

I also have problems but with nvarchar fields ... an error about utf standard. Converting nvarchar to varchar column lose the error but i have to investigate/replicate the error. Hope to give you an example about this issue also. Activating debug on freetds may help also with your issue. (TDSDUMP or...
by ChrisCross
16.11.2014, 23:14
Forum: ZeosLib 7.2 Forum
Topic: Proposal for MSSQL issue getting identity column
Replies: 5
Views: 1217

Re: Proposal for MSSQL issue getting identity column

Hi!
Acording to this http://technet.microsoft.com/en-us/libr ... l.80).aspx it's also suported since sql2000.

I'll try it tomorow on an instance but i'm sure of it because i made this modification some time ago and we have clients on sql2000 (hoping to upgrade soon).
by ChrisCross
15.11.2014, 14:04
Forum: ZeosLib 7.2 Forum
Topic: Proposal for MSSQL issue getting identity column
Replies: 5
Views: 1217

Proposal for MSSQL issue getting identity column

On MSSQL we can use 3 ways of getting last inserted identity in a table 1.@@IDENTITY which gets last inserted identity 2. SCOPE_IDENTITY() which gets last inserted identity in current scope 3. IDENT_CURRENT( 'table_name' ) which gets the last identity value generated for a specified table or view. I...
by ChrisCross
15.11.2014, 13:48
Forum: ZeosLib 7.2 Forum
Topic: MSSQL + Problem with StringReplace function for #0
Replies: 2
Views: 1403

Re: MSSQL + Problem with StringReplace function for #0

The issue is happening also when using varchar columns or varbinary columns and using db editors for rtf ( Rich text format).
by ChrisCross
15.11.2014, 13:45
Forum: ZeosLib 7.2 Forum
Topic: MSSQL + Problem with StringReplace function for #0
Replies: 2
Views: 1403

MSSQL + Problem with StringReplace function for #0

In unit ZDbcDbLibUtils.pas is used to replace #0 in string format for "stAsciiStream, stUnicodeStream, stBinaryStream:" with ''. The Delphi StringReplace function (at least Delphi 7 or Delphi XE2 one) uses AnsiPos and later StrPosLen witch ignores the #0 character so the replacement does n...
by ChrisCross
15.11.2014, 13:18
Forum: ZeosLib 7.2 Forum
Topic: MSSQL + FreeTDS proper version of TDS
Replies: 4
Views: 948

MSSQL + FreeTDS proper version of TDS

Small fix for setting the version after login on MSSQL using FreeTDS.

Code: Select all

 function TZFreeTDSBasePlainDriver.dbLogin: PLOGINREC;
 begin
   Result := inherited dbLogin;
  if not Assigned(Result)  then
if not Assigned(Result) then must be if Assigned(Result).

patch in atachment
by ChrisCross
19.10.2011, 10:08
Forum: MS SQL Server
Topic: Problem with String Fields Zeos 7
Replies: 7
Views: 2420

Please see this..

http://zeos.firmos.at/viewtopic.php?t=3105

It should resolve your problem.
by ChrisCross
21.02.2011, 17:31
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] empty varchar in mssql server return bad buffer
Replies: 2
Views: 618

[patch_done] empty varchar in mssql server return bad buffer

i have a unit composed from tZConnection connected to mssql using ntwdblib tZQuery using tZConnection with following sql SELECT top 1 name, convert(varchar(100), '') as name1, name as name2 from sysobjects when open query return for name1 column the value of name column i traced the problem into ZDb...