- Local time
- Tomorrow, 07:28
- Joined
- Jan 20, 2009
- Messages
- 12,887
Sounds like you are trying to port inefficient VBA techniques you employed in Access to SQL Server. Learn the mantra "USE THE ENGINE".For instance, I am really good at loops and if statements in Access VBA but I have to get good at stored procedures and IF statements in tsql.
I just learned about IF OBJECT_ID(db_name) BEGIN...END and I need to learn more about the other metadata function but here I think I am going to create a stored procedure that will take a field as a parameter and if a value in that field ends with 'R', it will change its value by removing the R.
This is where I am and I am working on finding a solution that works.
You are complicating matters unnecessarily. A query like arnelgp posted should do the job. If it doesn't then you are missing something.