Incorrect syntax near 'ANSI_PADDING'.
  Home FAQ Contact Sign in
microsoft.public.sqlserver.tools only
 
Advanced search
POPULAR GROUPS

more...

microsoft ... sqlserver.tools Profile…
 Up
Incorrect syntax near 'ANSI_PADDING'.         


Author: ....DotNet4Ever....
Date: Jun 27, 2008 05:00

I have scripted my whole database and one of the parts that is installed in
two different database applications is the ASP.NET Membership schemas. These
schemas come delivered as 4 or 5 SQL files. Let us call this "Membership
Schema". These are files delivered by Microsoft as part of the ASP.NET
membership system. Both projects are based on Microsoft SQL Server 2005
(standard edition, not the express version). In both database projects the
ANSI_PADDING option is disabled.

Both of my projects use SQLCMD to run a "master script" that sequences all
the other 'child' SQL scripts including the 4-5 files mentioned above. In
project A the Membership Schema passes through the installation without any
problems.

I copied the same 4-5 files into Project B but when I run the script then
the very first SQL file of the Membership Schema using the standard
Microsoft SQL Server SQLCMD tool I get:

--> Starting execution of InstallCommon.SQL
Msg 102, Level 15, State 4, Server TLXDEV011, Line 1
Incorrect syntax near 'ANSI_PADDING'.

The only place in the InstallCommon.SQL (the first of the 4-5) where
ANSI_PADDING is mentioned is at the beginning:

/**********************************************************************/
/* InstallCommon.SQL */
/* ...
Show full article (2.84Kb)
3 Comments
Re: Incorrect syntax near 'ANSI_PADDING'.         


Author: ....DotNet4Ever....
Date: Jun 30, 2008 00:19

I can't believe nobody has seen this error happening...

"....DotNet4Ever...." nowhere.com> wrote in message
news:O6QDv1E2IHA.5140@TK2MSFTNGP02.phx.gbl...
>I have scripted my whole database and one of the parts that is installed in
>two different...
Show full article (2.97Kb)
no comments
Re: Incorrect syntax near 'ANSI_PADDING'.         


Author: Erland Sommarskog
Date: Jun 30, 2008 15:43

....DotNet4Ever.... (hate.spam@nowhere.com) writes:
> I can't believe nobody has seen this error happening...

I don't know. It must something funny in the atmosphere were you live...

In any case, I looked at your post, and I could not a get grip of what
you were doing, and finally I gave it up, as I did not really have a
good answer.

In any case, since SET ANSI_PADDING ON is in a command batch on its
own, and ANSI_PADDING is on by default anyway in SQLCMD, why not just
ignore it, or delete the line?

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
no comments
Re: Incorrect syntax near 'ANSI_PADDING'.         


Author: ....DotNet4Ever....
Date: Jul 1, 2008 03:58

Well, as I mentioned that particular file that gives the error is provided
by Microsoft :-) I can try removing it and hope that the rest of the
Microsoft SQL code keeps on working as they think it should....

Emilio

"Erland Sommarskog" wrote in message
news:Xns9ACE757E9D88Yazorman@127.0.0.1...
> ....DotNet4Ever.... (hate.spam@nowhere.com) writes:
>> I can't believe nobody has seen this error...
Show full article (1.15Kb)
no comments