AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AugSQL
AugSQL
Searching Acumatica...
 
Notifications
Clear all

#AcumaticaTnT Searching Acumatica Database Column Names

 
Votes Received: 0

AugSQL
Last Post by Tim Rodman 2 years ago
0 Posts
1 Users
0 Reactions
54 Views
RSS
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
Topic starter
June 30, 2023 4:54 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Here's some SQL code that you can use to search across all of the column names in the Acumatica database. This code will return all Columns that have InventoryID in the name, but only from Tables that start with IN:

SELECT t.name AS 'TableName',c.name AS 'ColumnName'
FROM sys.columns c
JOIN sys.tables t ON c.object_id = t.object_id
WHERE c.name LIKE '%InventoryID%' AND t.name LIKE 'IN%'
ORDER BY TableName,ColumnName
image

The % symbol acts like a wildcard so %InventoryID% means anything with InventoryID anywhere in the column name. IN% means only tables that start with IN. If you only wanted columns that equal InventoryID, just remove the % symbols. If you only want columns or tables that end with the letter "y", you could put %y.

Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,521 Topics
  • 10.9 K Posts
  • 11 Online
  • 2,321 Members
Our newest member: Courtney Wilder
Latest Post: Can UDFs be populated using an Import Scenario?
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×