Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6732165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:37:00+00:00 2026-05-26T10:37:00+00:00

I have a half dozen views in SQL Server that I need to replicate

  • 0

I have a half dozen views in SQL Server that I need to replicate in Teradata, but I haven’t been able to find the TD equivalent of the SQL metadata tables. I’d like to replicate the following functionality (which I assume is fairly self-explainatory):

select table_name, column_id ordinal_position, column_name,
   data_type, char_length char_max_length, 
   data_precision numeric_precision, data_scale numeric_scale
from user_tab_columns

select name as FUNCTION_NAME
from sys.objects
where type_desc='SQL_SCALAR_FUNCTION'

select TABLE_NAME as VIEW_NAME
from INFORMATION_SCHEMA.VIEWS

I’d also like to know if there are any usable Teradata references online; everything I run across seems to be advertising rather than practical information.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:37:00+00:00Added an answer on May 26, 2026 at 10:37 am

    All Teradata system tables are stored under DBC schema.

    For columns, it is dbc.columns

    select * from dbc.columns
    

    For views, it is dbc.tables with a filter on a column something named table_type ‘V’ (where V stands for Views)

    select * from dbc.tables
    

    I am not sure about how to get all functions in Teradata. Whoever knows it, please edit this answer.

    In Teradata DBC.Tables contains many of the objects that exist on the system. (e.g. Stored Procedures, UDF, Triggers, Macros, Views, Tables, Hash Index, Join Index, etc.) The column Table Kind is used to identify the type of object.

    SELECT *
    FROM DBC.TABLES
    WHERE TABLEKIND = '<see below>'
    
    A = Aggregate Function
    B = Combined Aggregate Function and ordered analytical function
    D = JAR
    E = External Stored Procedure
    F = Standard Function
    G = Trigger
    H = Instance or Constructor Method
    I = Join Index
    J = Journal
    M = Macro
    N = Hash Index
    O = No Primary Index (Table)
    P = Stored Procedure
    Q = Queue Table
    R = Table Function
    S = Ordered Analytical Function
    T = Table
    U = User-defined data type
    V = View
    X = Authorization
    Y = GLOP Set
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an object that contains about half a dozen properties. I expect to
I have a half dozen sites on my server and I would like to
I have about half a dozen generic, but fairly complex stored procedures and functions
I have an aggregation project with a half-dozen submodules. The builds all work but
Evening all! I have half a script that I need to change the CSS
Easy question: I have an app that needs to make a half dozen SELECT
I have a Perl program that needs to run about half a dozen programs
I have half a dozen apps that i want to put on Google Market.
I have a cron job on an Ubuntu Hardy VPS that only half works
Have you ever seen any of there error messages? -- SQL Server 2000 Could

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.