Incorrect syntax near 'ON'

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
FredS
Posts: 272
Joined: Mon 10 Nov 2014 17:52

Incorrect syntax near 'ON'

Post by FredS » Fri 17 Apr 2015 01:52

This is part of a db update script stripped to bare bones, I executed this against SQLServer in the previous version of UniDAC without issues, now I get the error below. Something changed?

It uses TUniScript:

Code: Select all

  UniScript.NoPreconnect := False;
  UniScript.AutoCommit := False;
  ..
  UniScript.ExecuteStream(ResourceSream); 
-------------------------
PA2
-------------------------
Incorrect syntax near 'ON'.
-------------------------
OK
-------------------------

Code: Select all

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
Go

ALTER PROCEDURE [dbo].[WriteShareAccessList] 
 @ServerShareID bigint,
 @Access AccessType, 
 @Mask DWORD, 
 @FULLACCESS int, 
 @CHANGEACCESS int, 
 @READACCESS int, 
 @UserGroupSID nvarchar(64)
AS
declare  @CurrentMask DWORD;
declare @Exists bit;
BEGIN

  -- SET NOCOUNT ON added to prevent extra result sets from
  -- interfering with SELECT statements.
  SET NOCOUNT ON;

  return 0
END

GO

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: Incorrect syntax near 'ON'

Post by azyk » Mon 20 Apr 2015 08:43

Thank you for the information. We have reproduced the problem and will investigate it.

FredS
Posts: 272
Joined: Mon 10 Nov 2014 17:52

Re: Incorrect syntax near 'ON'

Post by FredS » Tue 21 Apr 2015 17:08

Hi azyk,

Needless to say this is a show stopper, cannot create nor update SQL-Server dbs at this time.

Fred

FredS
Posts: 272
Joined: Mon 10 Nov 2014 17:52

Re: Incorrect syntax near 'ON'

Post by FredS » Tue 05 May 2015 22:38

Still no update on this issue?

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: Incorrect syntax near 'ON'

Post by azyk » Wed 06 May 2015 12:55

We have fixed this problem. This fix will be included in the next UniDAC build.

FredS
Posts: 272
Joined: Mon 10 Nov 2014 17:52

Re: Incorrect syntax near 'ON'

Post by FredS » Wed 06 May 2015 17:31

azyk wrote:We have fixed this problem. This fix will be included in the next UniDAC build.
Thanks azyk, but that brings up the next Q; when will that be and are there interim fixes available?

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: Incorrect syntax near 'ON'

Post by azyk » Thu 07 May 2015 11:28

We have answered you via email.

Post Reply