•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 397,800 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,394 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser:
Views: 3252 | Replies: 4
![]() |
•
•
Join Date: Aug 2006
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
Not sure what you mean when you ask if you can store the column alias when you create the table. A column alias can be assigned when you perofrm a query on the table.
My wish is to store assigned aliases for all tables and columns so that users can use them consistently and as column headings in reports
•
•
Join Date: Aug 2006
Posts: 7
Reputation:
Rep Power: 0
Solved Threads: 1
I don't believe there is a way to store a column alias with a table. If you really need to do this, I'd suggest creating a table of aliases which relate back to the original column and table name. Then have the user use stored procedures or views to access the data, which would relate back to this new table, thus giving you the alias rather than the actual column names.
•
•
Join Date: Aug 2006
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
I think I have found a solution, but I need this confirmed. In Visual Studio 2005, I was able to create a view for one table and use aliases for the columns in the query. I need to do this with multiple tables in the same view. The problem is I'm not too familiar with Visual Studio and the view query is created with a CROSS JOIN statement (whatever that is).
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb MS SQL Marketplace
- How to Change Column Settings in Windows Explorer (Windows tips 'n' tweaks)
- sorting by a bound column (Visual Basic 4 / 5 / 6)
- Adding a checkbox column dynamically (C#)
- mySQL database searching for registration (MySQL)
Other Threads in the MS SQL Forum
- Previous Thread: Views in SQL
- Next Thread: Autonumber in a SQL Server table


Linear Mode