Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
MSSQL 2005 change scale in column
Name: lumpy Date: September 16, 2008 at 16:13:23 Pacific OS: MS 2003 CPU/Ram: u/k Product: dell
Comment:
Hello
Forgive my poor SQL knowledge.
Im looking after an SQL 2005 machine which i inherited. I typically just need to maintain it, however, Im after getting a request to change something . I have a table which has information on discounts based on percentage. The percentage number that the calculation is done is to 4 decimal places. eg 10.4755%. I need to increase the number to 6 decimal places. I figured it was easy using this article on increasing the scale in column properties. (Right click table, select design and then go to column properties) http://msdn.microsoft.com/en-us/lib... However, the column I am looking at which has the percentage, does not have scale in column properties.
I can see the figure I want to change when I look right click column and select properties but I cant see it in the design column properties view.
Can someone suggest how I can figure this out, other then hire in a dba who will charge me through the nose (which is very tempting)
Name: lumpy Date: September 17, 2008 at 11:22:01 Pacific
Reply:
I found an answer to this on another forum. (You know, sometimes you just need to walk away for a while) If the datatype is Money, the scale is set at 4 and cant be changed.
Summary: A recent change means that the sql being produced has too much text in column 22 for the target system which is limited to 30 characters. I need to know how to post process the sql file to truncate wh...
Summary: Hi everyone, I have to run a conversion on multiple tables to change the data in one column on each table. I am happy to run this separately for each table, but I would like to know the best way to d...