June 17, 2013 at 11:57 am
what are the list of things to be considered when data type is changed in a table...
how to do impact analysis...
June 17, 2013 at 12:03 pm
First ensure that your data will all fit in the new datatype. That could easily be an issue.
Next, you have to find all objects that reference this column. Views, stored procs, functions, constraints, etc. Those may or may not need to be changed.
after that, your application might have issues. Parameters sent to the database might need to be changed in code.
June 17, 2013 at 12:08 pm
To Add to Steve's answer, You may need to see if the existing data is upgradable to new type or not and then write an upgrade script.
June 17, 2013 at 12:18 pm
Ok thanks for the replies...how to check if the stored procedure has to be changed or not...
June 17, 2013 at 12:22 pm
Lucky9 (6/17/2013)
Ok thanks for the replies...how to check if the stored procedure has to be changed or not...
Well if the column that is being changed is used as a parameter you would likely need to change your proc. I am guessing that since you posted another similar thread that you are changing from varchar to nvarchar? If your proc has varchar as a parameter it will need to be changed.
create proc myProc
(
@ColToBeChanged varchar(10)
) as....
If you have a proc like the above you will have to change it.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply