Page 1 of 1

Incorrect syntax near 'ON'

Posted: Fri 17 Apr 2015 01:52
by FredS
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

Re: Incorrect syntax near 'ON'

Posted: Mon 20 Apr 2015 08:43
by azyk
Thank you for the information. We have reproduced the problem and will investigate it.

Re: Incorrect syntax near 'ON'

Posted: Tue 21 Apr 2015 17:08
by FredS
Hi azyk,

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

Fred

Re: Incorrect syntax near 'ON'

Posted: Tue 05 May 2015 22:38
by FredS
Still no update on this issue?

Re: Incorrect syntax near 'ON'

Posted: Wed 06 May 2015 12:55
by azyk
We have fixed this problem. This fix will be included in the next UniDAC build.

Re: Incorrect syntax near 'ON'

Posted: Wed 06 May 2015 17:31
by FredS
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?

Re: Incorrect syntax near 'ON'

Posted: Thu 07 May 2015 11:28
by azyk
We have answered you via email.