# generateChangeLog truncate sql of create view.

**URL:** <https://forum.liquibase.org/t/generatechangelog-truncate-sql-of-create-view/1164>\
**Category:** General Discussion\
**Created:** [March 11, 2011, 12:44am UTC](https://forum.liquibase.org/t/generatechangelog-truncate-sql-of-create-view/1164 "2011-03-11T00:44:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forum.liquibase.org/u/Guest)\
**Post date:** [March 11, 2011, 12:44am UTC](https://forum.liquibase.org/t/generatechangelog-truncate-sql-of-create-view/1164/1 "2011-03-11T00:44:00Z")

</div>

Hi,   
I’m trying to use liquibase, but I have a problem when using generateChangeLog. In fact when generating change log of some views quite big I see that liquibase truncate the select of the View.  
Seems only a certain number of characters are allowed.  
The database I’m using is SQL Server 2005 and the driver is&nbsp; jtds-1.2.5.jar  
  
Does someone already get this problem ?  
  
Thanks for help,  
  
Laty

---

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forum.liquibase.org/u/Guest)\
**Post date:** [March 11, 2011, 12:44am UTC](https://forum.liquibase.org/t/generatechangelog-truncate-sql-of-create-view/1164/2 "2011-03-11T00:44:00Z")

</div>

Thanks for answering.   
I’ve been using liquibase-2.0.1  
  
Laty

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [March 11, 2011, 12:44am UTC](https://forum.liquibase.org/t/generatechangelog-truncate-sql-of-create-view/1164/3 "2011-03-11T00:44:00Z")

</div>

What version of liquibase are you using? &nbsp;I believe there was a change in 2.0 to try to pull more chars, it was a limitation of what sqlserver was providing us through the information\_schema.

Nathan

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [March 11, 2011, 12:44am UTC](https://forum.liquibase.org/t/generatechangelog-truncate-sql-of-create-view/1164/4 "2011-03-11T00:44:00Z")

</div>

It is an issue with the data we get back from&nbsp;INFORMATION\_SCHEMA.VIEWS. &nbsp;There was a couple attempts to use a different function to get the view definition, but they did not work either. &nbsp;

At this point, I don’t know if it’s a limitation of sqlserver or if there is a workaround

Nathan
