Search found 52 matches

by Alexander_73
Thu 09 Jul 2015 12:41
Forum: SQL Server Data Access Components
Topic: disappeared licenses
Replies: 2
Views: 1326

Re: disappeared licenses

Thank you
by Alexander_73
Thu 09 Jul 2015 11:10
Forum: SQL Server Data Access Components
Topic: disappeared licenses
Replies: 2
Views: 1326

disappeared licenses

Hi!
Why did expire all of my licences? They cease to be available, even those versions SDAC and UniDac, which were available before, there were only the oldest.
You have changed the policy of licensing fees?
by Alexander_73
Wed 11 Jun 2014 06:34
Forum: SQL Server Data Access Components
Topic: Errors after changing SDAC from 6.9 to 6.10
Replies: 8
Views: 2097

Re: Errors after changing SDAC from 6.9 to 6.10

There is one more problem in SDAC 6.9 and 6.10 I found now. An object of TVirtualTable, after adding FieldDef with type ftGuid, Studio raises exception "Invalid field size" on save project and modules can't be saved.
by Alexander_73
Mon 09 Jun 2014 15:29
Forum: SQL Server Data Access Components
Topic: Errors after changing SDAC from 6.9 to 6.10
Replies: 8
Views: 2097

Re: Errors after changing SDAC from 6.9 to 6.10

After all, I have found property TMSQuery.Options.DefaultValues when true then raises this error. The project cannot work without this property, what I might do?
by Alexander_73
Mon 09 Jun 2014 14:57
Forum: SQL Server Data Access Components
Topic: Errors after changing SDAC from 6.9 to 6.10
Replies: 8
Views: 2097

Errors after changing SDAC from 6.9 to 6.10

RAD Studio XE5.
After installing SDAC 6.10.19 (and 6.10.20) there are mass errors with message "Cannot convert type" on opening datasets in working projects. In a new demo project message reproduces with the Target Platform 64-bit Windows. After reinstalling on 6.9 problem doesn't reproduce. :(
by Alexander_73
Fri 27 Dec 2013 12:10
Forum: SQL Server Data Access Components
Topic: SDAC 6.9.17 problem
Replies: 13
Views: 3121

SDAC 6.9.17 problem

RAD Studio XE5, after installing SDAC 6.9.17 the x64-program crashes on TMSQuery.Locate method (no properties changed) with first exception EOLEDBERROR "All string descriptors must be..." and next exceptions "Access Violation...". This crash raises with MSQuery.Options.Nonblocking=true and MSQuery.CursorType=ctDefaultResultSet. When I change property MSQuery.CursorType to ctDynamic, a first call of Locate takes about 30 seconds and every next call takes 3 minutes more, and with ctStatic or ctKeySet only it works slowly but correct. Without NonBlocking=true it works well.

What must I do, change all of nonblocking for all of TMSQuery objects to false or all of these CursorType to ctStatic? It's terrible for project with 380 forms and 600 static&dynamic objects of TMSQuery and TMSStoredProc...
by Alexander_73
Fri 02 Aug 2013 13:30
Forum: SQL Server Data Access Components
Topic: Incorrect value in procedure output
Replies: 1
Views: 966

Incorrect value in procedure output

A table contains field Id UNIQUEIDENTIFIER. When I see values of this field with MSQuery.Fields[0].AsString, it contains symbols '{' like '{4A38E7AD-494F-E211-9782-00259038EC35}'. But if I call MSStoredProc with output parameter UNIQUEIDENTIFIER for this field with MSStoredProc.FindParam('ID').AsString, it doesn't contain these symbols, like '4A38E7AD-494F-E211-9782-00259038EC35'. Is it true?
by Alexander_73
Wed 20 Mar 2013 13:00
Forum: SQL Server Data Access Components
Topic: newsequentialid() doesn't return value on MSQuery.Post
Replies: 1
Views: 1172

newsequentialid() doesn't return value on MSQuery.Post

table:

Code: Select all

CREATE TABLE [dbo].[PrintInfo](
	[ID] [uniqueidentifier] NOT NULL,
	[FirmID] [int] NOT NULL,
	[FirstInvoiceID] [int] NULL,
	[AddDate] [datetime] NOT NULL,
	[Attributes] [int] NOT NULL,
 CONSTRAINT [PK_PrintInfo] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PrintInfo] ADD  CONSTRAINT [DF_PrintInfo_ID]  DEFAULT (newsequentialid()) FOR [ID]
Then field default is newsequentialid() it doesn't return on MSQuery.Post params (both OnBeforeUpdateExecute assigned or not) and raises exception 'field must have value',
but if field default value is newid(), it works OK.
by Alexander_73
Sat 29 Dec 2012 11:46
Forum: SQL Server Data Access Components
Topic: Fatal bug with version 6.6.11
Replies: 1
Views: 1044

Fatal bug with version 6.6.11

Delphi 2007, SDAC 6.6.11
An object of TMSQuery contains this sql:

Code: Select all

select Payments.PayID, Payments.UserID, Payments.PayDate, Payments.PayTypeID, Payments.AddPayDate, PL.Attributes PLAttributes, 
(SELECT dbo.Concatenate(S.PayServiceID) FROM PayedServices S (NOLOCK) WHERE S.FirmID=Payments.UserID AND S.PayID=Payments.PayID) AS PayedServicesStr, 
PT.Attributes AS PTAttributes 
FROM payments Payments (NOLOCK) 
LEFT JOIN PayPlaces PL (NOLOCK) ON PL.PayPlaceID=Payments.PayPlaceID 
LEFT JOIN InvoicePayTypes PT (NOLOCK) ON PT.PayTypeID=Payments.PayTypeID 
WHERE Payments.UserID=100 AND ISNULL(Payments.Attributes,0)&2!=2 
AND dbo.sf_IsNonPeriodServices(Payments.UserID, NULL, Payments.PayID)=0 
ORDER BY Payments.PayDate, Payments.PayID
For previous version of SDAC, 6.5.10, this query was workable. Now its raises exception 'An access violation...' on opening. Problem was detected in Query.Options.DefaultValues: when is true then raises AV, else it works OK.
by Alexander_73
Fri 28 Sep 2012 08:27
Forum: SQL Server Data Access Components
Topic: Can't install SDAC on x64 platform
Replies: 2
Views: 1290

Can't install SDAC on x64 platform

SDAC 6.5.9, Windows Server 2008 x64, RAD Studio 2007. Installation of SDAC raises error "can not find .net Framework SDK". FrameWork SDK exists. Windows Update can not install .Net SDK x32. How I can install SDAC?
by Alexander_73
Wed 12 Sep 2012 07:42
Forum: SQL Server Data Access Components
Topic: MSQuery.Insert & newsequentialid()
Replies: 4
Views: 1382

Re: MSQuery.Insert & newsequentialid()

New version of SDAC released, but this error still raised... :(
by Alexander_73
Thu 06 Sep 2012 13:40
Forum: SQL Server Data Access Components
Topic: MSQuery.Insert & newsequentialid()
Replies: 4
Views: 1382

Re: MSQuery.Insert & newsequentialid()

Thanks, I'll prolong the license and wait for next builds.
by Alexander_73
Wed 05 Sep 2012 09:36
Forum: SQL Server Data Access Components
Topic: MSQuery.Insert & newsequentialid()
Replies: 4
Views: 1382

MSQuery.Insert & newsequentialid()

Hi,

RAD Studio 2007, SDAC 6.1.3.

Code: Select all

CREATE TABLE [mb_suprt](
	[MsgID] [int] NOT NULL,
	[Subject] [nvarchar](250) NULL,
	[Message] [nvarchar](max) NULL,
	[SeqID] [uniqueidentifier] NOT NULL,
 CONSTRAINT [PK_mb_suprt] PRIMARY KEY CLUSTERED 
(
	[MsgID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO
ALTER TABLE [mb_suprt] ADD  CONSTRAINT [DF_mb_suprt_SeqID]  DEFAULT (newsequentialid()) FOR [SeqID]
An object of TMSQuery:

Code: Select all

 Q.SQL.Text:='SELECT * FROM mb_suprt WHERE MsgID='+MsgID;
 Q.UpdatingTable:=mb_suprt;
 Q.KeyFields:='MsgID';
 Q.Open;
 [b]Q.Insert;[/b] // this row raises exception
...
The marked row raises an exception EMSError with message built-in function newsequentialid() only for construction CREATE TABLE or ALTER TABLE...

Why there is this error?
by Alexander_73
Fri 22 Apr 2011 12:13
Forum: Universal Data Access Components
Topic: Whether should TUniQuery clear properties at SQL change?
Replies: 2
Views: 1098

It is a pity :). Thanks.