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 3 years ago
0 Posts
1 Users
0 Reactions
179 Views
RSS
Tim Rodman
Posts: 3199
 Tim Rodman
Admin
Topic starter
June 30, 2023 3: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,527 Topics
  • 10.9 K Posts
  • 26 Online
  • 2,412 Members
Our newest member: Peter Paasch
Latest Post: Can't export GI's to excel that contain the FATrans DAC after upgrade to 2025 R1 in less than 25 min
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

  • Tom Fahres, PMP bwarrell amassey
Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

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

‹›×

    ‹›×