Database Change Management
Database Change Management
Home | Profile | Register | Active Topics | Active Polls | Members | Private Messages | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Support
 DB Ghost Support Forum
 SET ANSI_PADDING ON
 New Topic  New Poll New Poll
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mikas


7 Posts

Posted - 09/18/2009 :  11:00:19  Show Profile Send Mikas a Private Message  Reply with Quote
I am having troubles. We need this set to OFF.

I set it to FALSE in my Master and in my Target, but the Delta Script sets in ON at the begining.

The main purpose of the upgrade is to set all [char] columns to [nvarchar]

If I manually change this to OFF in the Delta Script the columns are altered and the data is left alone, i.e. No padding added.

But we are planning to use Packager Plus and I think it will also set this ON and I don't know how to ensure it will be OFF.

Any help appreciated.

Mike


I appear to be in error, even after setting it off all data appears to be padded now. There is something I am missing here. I need to do some more research.

Edited by - Mikas on 09/18/2009 18:32:48

dbghost



13 Posts

Posted - 09/21/2009 :  05:42:46  Show Profile  Visit dbghost's Homepage Send dbghost a Private Message  Reply with Quote
Hi Mikas,

I think you problem is because SET ANSI_PADDING is always ON for nchar and nvarchar. SET ANSI_PADDING OFF does not apply to the nchar or nvarchar data types.

Go to Top of Page

dbghost



13 Posts

Posted - 09/21/2009 :  06:04:42  Show Profile  Visit dbghost's Homepage Send dbghost a Private Message  Reply with Quote
Hi,

A further thought. Could the padding you are seeing in the altered column just be the padding from when the column was fixed length char. This will not be trimmed. You might have to trim it yourself in the after script.

Regards
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  New Poll New Poll
 Reply to Topic
 Printer Friendly
Jump To:
Database Change Management © Copyright 2005 Innovartis Ltd. Go To Top Of Page
Snitz Forums 2000
RSS Feed 1 RSS Feed 2
Powered by ForumCo 2000-2008
TOS - AUP - URA