• So what you really want is a way to randomize the values in your test system? This is an entirely different situation than encrypting data in a column. Of course all you are really going to do here is to change the value of the account number. This would be really simple to do. Just create a quick and easy algorithm to take the existing value and turn it into something different. Then update all of your tables using the same algorithm.

    Also, you mentioned twice about developing cursors and you throw that out there like it is something you do frequently. Cursors and other forms of looping in sql server is probably the absolute worst thing you can do for performance. There are times that they are needed but those are generally left to administrative tasks and NOT something that you need in every day sql programming. Next time you are about to create a cursor, instead start a new thread on SSC and we will help you figure out how to perform the same thing a LOT faster.

    _______________________________________________________________

    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/