# Problem getting full Netezza view definition using toad data point

**URL:** <https://forums.toadworld.com/t/problem-getting-full-netezza-view-definition-using-toad-data-point/34171>\
**Category:** Toad Data Point & Toad Intelligence Central\
**Created:** [September 25, 2015, 2:50pm UTC](https://forums.toadworld.com/t/problem-getting-full-netezza-view-definition-using-toad-data-point/34171 "2015-09-25T14:50:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rao\_M](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@Rao\_M](https://forums.toadworld.com/u/Rao_M)\
**Post date:** [September 25, 2015, 2:50pm UTC](https://forums.toadworld.com/t/problem-getting-full-netezza-view-definition-using-toad-data-point/34171/1 "2015-09-25T14:50:39Z")

</div>

We are currently using Aginity workbench for Netezza and switching to Toad data point. Using Toad data point base 3.7, I am not able to get the full view definition. How to fix this issue? Thanks.

---

<div class="post-metadata">

**Author:** ![RyanJohnson](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@RyanJohnson](https://forums.toadworld.com/u/RyanJohnson)\
**Post date:** [September 29, 2015, 1:47pm UTC](https://forums.toadworld.com/t/problem-getting-full-netezza-view-definition-using-toad-data-point/34171/2 "2015-09-29T13:47:07Z")

</div>

Hello! Sorry for the wait!

How are you attempting to get the view definition within TDP? Are you looking in the script tab?

---

<div class="post-metadata">

**Author:** ![Rao\_M](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@Rao\_M](https://forums.toadworld.com/u/Rao_M)\
**Post date:** [September 29, 2015, 2:19pm UTC](https://forums.toadworld.com/t/problem-getting-full-netezza-view-definition-using-toad-data-point/34171/3 "2015-09-29T14:19:19Z")

</div>

Yes, I look at the script tab. I can get the entire view definition when i connect to UAT or Prod servers. When i connect to dev server, i only see first two lines like:

CREATE VIEW VIEWNAME

AS

thats it. Not sure why it does not display entire view definition. I use the same netezza sql ODBC driver, setting and options all same for all connections. May be something to do with server settings.

Also I noticed another issue. There is no way i can get synonym definition in any environment. TDP has lot of features, but looks like it has some limitations when it comes to Netezza connection.

---

<div class="post-metadata">

**Author:** ![GregDavis11009](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/gregdavis11009/32/122_2.png) [@GregDavis11009](https://forums.toadworld.com/u/GregDavis11009)\
**Post date:** [September 29, 2015, 2:24pm UTC](https://forums.toadworld.com/t/problem-getting-full-netezza-view-definition-using-toad-data-point/34171/4 "2015-09-29T14:24:11Z")

</div>

I have seen this type of problem with permissions on the server for SQL server where Toad will not display the script for an area that I did not have the correct permissions. Check with your DBA.

---

<div class="post-metadata">

**Author:** ![RyanJohnson](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@RyanJohnson](https://forums.toadworld.com/u/RyanJohnson)\
**Post date:** [September 30, 2015, 5:28pm UTC](https://forums.toadworld.com/t/problem-getting-full-netezza-view-definition-using-toad-data-point/34171/5 "2015-09-30T17:28:22Z")

</div>

Can you try running this query and let us know what you get back?

select DEFINITION from \_V\_VIEW where OBJTYPE=‘VIEW’ and OWNER = ‘{0}’ and VIEWNAME = ‘{1}’

Replace {0} and {1} with the owner and name of the view, respectively.

---

<div class="post-metadata">

**Author:** ![Rao\_M](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@Rao\_M](https://forums.toadworld.com/u/Rao_M)\
**Post date:** [October 1, 2015, 7:11am UTC](https://forums.toadworld.com/t/problem-getting-full-netezza-view-definition-using-toad-data-point/34171/6 "2015-10-01T07:11:10Z")

</div>

Hi Ryan. yes it (querying system catalog) works. This is alternate way of getting the view definition instead from the script tab in view details. Also for synonym, there is no way to get definition. So i had to use something like.

select 'CREATE SYNONYM ‘||SYNONYM\_NAME||’ AS '||

REFDATABASE||’…’||REFOBJNAME||’;’

from \_V\_SYNONYM

where SYNONYM\_NAME = ‘synonym name’

and OWNER = ‘ownername here’

AND OBJTYPE = ‘SYNONYM’;

---

<div class="post-metadata">

**Author:** ![RyanJohnson](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@RyanJohnson](https://forums.toadworld.com/u/RyanJohnson)\
**Post date:** [October 1, 2015, 5:22pm UTC](https://forums.toadworld.com/t/problem-getting-full-netezza-view-definition-using-toad-data-point/34171/7 "2015-10-01T17:22:42Z")

</div>

Sorry, if you could clairfy: Does the query I give you return the correct results while on the dev server? Or does it give you what you see in the Script tab?

Also, I am afraid to say, we do not have time this release to fix synonyms. I did make a task for this under QAT-6543

---

<div class="post-metadata">

**Author:** ![Rao\_M](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@Rao\_M](https://forums.toadworld.com/u/Rao_M)\
**Post date:** [October 2, 2015, 8:19am UTC](https://forums.toadworld.com/t/problem-getting-full-netezza-view-definition-using-toad-data-point/34171/8 "2015-10-02T08:19:22Z")

</div>

Yes, the query you gave me returns full view definition in dev environment. Script tab returns only the first two lines.

---

<div class="post-metadata">

**Author:** ![RyanJohnson](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@RyanJohnson](https://forums.toadworld.com/u/RyanJohnson)\
**Post date:** [October 2, 2015, 10:27am UTC](https://forums.toadworld.com/t/problem-getting-full-netezza-view-definition-using-toad-data-point/34171/9 "2015-10-02T10:27:54Z")

</div>

Okay, we need to put in additional logging to identify the issue. Please create a support ticket at [support.quest.com/create-service-request](https://support.quest.com/create-service-request) so we can get in touch with you.

---

<div class="post-metadata">

**Author:** ![lance.christenson](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@lance.christenson](https://forums.toadworld.com/u/lance.christenson)\
**Post date:** [October 2, 2015, 10:40am UTC](https://forums.toadworld.com/t/problem-getting-full-netezza-view-definition-using-toad-data-point/34171/10 "2015-10-02T10:40:48Z")

</div>

OK, done. Ticket number 3002468

**From:** Ryan Johnson [[mailto:bounce-RyanJohnson@toadworld.com](mailto:bounce-RyanJohnson@toadworld.com)]

**Sent:** Friday, October 02, 2015 10:29 AM

**To:** [toaddatapoint@toadworld.com](mailto:toaddatapoint@toadworld.com)

**Subject:** RE: [Toad Data Point - Discussion Forum] Problem getting full Netezza view definition using toad data point

**[RE: Problem getting full Netezza view definition using toad data point](http://www.toadworld.com/products/toad-data-point/f/36/p/25495/56477#56477)**

Reply by Ryan Johnson

Okay, we need to put in additional logging to identify the issue. Please create a support ticket at [  
support.quest.com/create-service-request](https://support.quest.com/create-service-request) so we can get in touch with you.

To reply, please reply-all to this email.

[Stop receiving emails](http://www.toadworld.com/products/toad-data-point/f/36/t/25495?subscribe=false) on this subject.

Or [  
Unsubscribe from Toad Data Point - General](http://www.toadworld.com/products/toad-data-point/f/36?subscribe=false) notifications altogether.

Toad Data Point - Discussion Forum

[Flag](http://www.toadworld.com/products/toad-data-point/f/36/p/25495/56477?AbuseContentId=66b7fbe9-19b0-4bb8-a673-83ce9754f87e&AbuseContentTypeId=f586769b-0822-468a-b7f3-a94d480ed9b0&AbuseFlag=true)  
this post as spam/abuse.

---

<div class="post-metadata">

**Author:** ![RyanJohnson](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@RyanJohnson](https://forums.toadworld.com/u/RyanJohnson)\
**Post date:** [October 2, 2015, 10:54am UTC](https://forums.toadworld.com/t/problem-getting-full-netezza-view-definition-using-toad-data-point/34171/11 "2015-10-02T10:54:54Z")

</div>

Lance, I apologize, but I believe you are in the wrong thread ;). I was talking about in regards to a Neteeza issue.

---

<div class="post-metadata">

**Author:** ![lance.christenson](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@lance.christenson](https://forums.toadworld.com/u/lance.christenson)\
**Post date:** [October 2, 2015, 11:16am UTC](https://forums.toadworld.com/t/problem-getting-full-netezza-view-definition-using-toad-data-point/34171/12 "2015-10-02T11:16:09Z")

</div>

Ooops, my bad. This is my first week in the discussion groups. The ticket can be cancelled.

**From:** Ryan Johnson [[mailto:bounce-RyanJohnson@toadworld.com](mailto:bounce-RyanJohnson@toadworld.com)]

**Sent:** Friday, October 02, 2015 10:55 AM

**To:** [toaddatapoint@toadworld.com](mailto:toaddatapoint@toadworld.com)

**Subject:** RE: [Toad Data Point - Discussion Forum] Problem getting full Netezza view definition using toad data point

**[RE: Problem getting full Netezza view definition using toad data point](http://www.toadworld.com/products/toad-data-point/f/36/p/25495/56480#56480)**

Reply by Ryan Johnson

Lance, I apologize, but I believe you are in the wrong thread ;). I was talking about in regards to a Neteeza issue.

To reply, please reply-all to this email.

[Stop receiving emails](http://www.toadworld.com/products/toad-data-point/f/36/t/25495?subscribe=false) on this subject.

Or [  
Unsubscribe from Toad Data Point - General](http://www.toadworld.com/products/toad-data-point/f/36?subscribe=false) notifications altogether.

Toad Data Point - Discussion Forum

[Flag](http://www.toadworld.com/products/toad-data-point/f/36/p/25495/56480?AbuseContentId=9a39a41f-0a61-4bc7-b1e4-db25f29140d0&AbuseContentTypeId=f586769b-0822-468a-b7f3-a94d480ed9b0&AbuseFlag=true)  
this post as spam/abuse.
