April 27, 2007 at 9:40 am
I have a table where some column names include spaces. I don't like this because the program I'm writing to interface with the DB chokes on the spaces. I cannot change the table in any way either. Sooooo, how can I rename these columns between the table and my program?
maybe a proc using the TABLE data-type?
any ideas?
April 27, 2007 at 9:52 am
Build a view over the table and access the table from your program through the view.
April 27, 2007 at 9:59 am
This sounds like a good idea but how do I change [Column Name] to ColumnName?
[Column Name] AS ColumnName?
April 27, 2007 at 10:23 am
Ok I got this. The view is setup and working now. Thanks for the help!
April 27, 2007 at 3:42 pm
Great suggestion. Old gaming trick... if you can't move, "change color".
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy