Altering Collumn Values and data type properties (SQL Server 2005)

I have undertaken a Data Warehousing project. I am using the SQL Server Business Intelligence 2005 and Visual Studio 2005 to achieve my goals.

As of now, I have managed to extract data from a few flat files and loaded them in a relational table by mapping collumns from the flat files to the output table.

I have the following questions:

1) How do you update a certain collumn with new values by replacing the old ones simply by referencing the specific row numbers that I can visually see. For example I would like to replace all values from the collumn "name" and row number 1-23 with "Barry". Can this be done using a simple SQL "Update" statement.

2) Can I alter the properties of a collumn. For example, I would like change the data type of collumn from VARCHAR(50) to integer, decimal or float.

3) Can I use regular expressions in SQL statements to change the structure of data within certain collumns. This is a transformation process.

If you are getting a drift of what I am trying to accomplish from the above description, please feel free to suggest better and more efficient ways to accomplish the same task. However, I would like to accomplish everything within the SQL Server Business Intelligence tool 2005 and Visual Studio 2005 environment.

Thanks.



 
scarface7Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SjoerdVerweijCommented:
1) Have a look at Row_Number(). Note that this is a Bad Idea.

2) Alter Table ... Alter Column ... Int / Dec / Float

3) http://www.microsoft.com/downloads/details.aspx?familyid=C16F11AD-150A-4091-B3A2-83D21D3E0973&displaylang=en
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.