April 18, 2018 at 9:24 am
Hello ,
I have a situation where the company does not want to show actual values to the user ( loan information) as we are just sending a test file to the client , we do not want to send our actual /sensitive information.
This information includes laonnumber , Firstname , last name , address etc.
Example : For loannnumber i genertaed random sequential numbers .
But with Names I am little confused. Is there a way to generate a random firstnames , lastnames , address ?
April 18, 2018 at 9:30 am
komal145 - Wednesday, April 18, 2018 9:24 AMHello ,
I have a situation where the company does not want to show actual values to the user ( loan information) as we are just sending a test file to the client , we do not want to send our actual /sensitive information.
This information includes laonnumber , Firstname , last name , address etc.Example : For loannnumber i genertaed random sequential numbers .
But with Names I am little confused. Is there a way to generate a random firstnames , lastnames , address ?
You could scramble the names from AdventureWorks or WideWorldImporters (depending on your version) to assign them randomly to your data. There's also a Red-gate tool for that, but you need to pay for it.
April 18, 2018 at 9:42 am
Luis Cazares - Wednesday, April 18, 2018 9:30 AMkomal145 - Wednesday, April 18, 2018 9:24 AMHello ,
I have a situation where the company does not want to show actual values to the user ( loan information) as we are just sending a test file to the client , we do not want to send our actual /sensitive information.
This information includes laonnumber , Firstname , last name , address etc.Example : For loannnumber i genertaed random sequential numbers .
But with Names I am little confused. Is there a way to generate a random firstnames , lastnames , address ?
You could scramble the names from AdventureWorks or WideWorldImporters (depending on your version) to assign them randomly to your data. There's also a Red-gate tool for that, but you need to pay for it.
Thanks for suggestion but 1) I need to download the adventure works on Development server for that right? No access to do that ...... I have version 2016. Is there any way through?
2) Company wont pay anything for now ( redgate ) tool for this purpose.
April 18, 2018 at 9:52 am
Well technically you can also just use sequential first/last names 😛
Firstname1, Lastname1
Firstname2, Lastname2
Firstname3, Lastname3
.
.
.
April 18, 2018 at 10:09 am
ZZartin - Wednesday, April 18, 2018 9:52 AMWell technically you can also just use sequential first/last names 😛Firstname1, Lastname1
Firstname2, Lastname2
Firstname3, Lastname3
.
.
.
Lol...this looks not real data ......need to generate data which looks like real.
April 18, 2018 at 10:12 am
You can get a list of common names from sources like the Census Bureau. They have separate files available for first names by gender, and last names:
https://www.census.gov/topics/population/genealogy/data/1990_census/1990_census_namefiles.html
I import them into tables and use these to randomly generate names when I need them.
April 18, 2018 at 10:12 am
komal145 - Wednesday, April 18, 2018 10:09 AMZZartin - Wednesday, April 18, 2018 9:52 AMWell technically you can also just use sequential first/last names 😛Firstname1, Lastname1
Firstname2, Lastname2
Firstname3, Lastname3
.
.
.Lol...this looks not real data ......need to generate data which looks like real.
Why? Are you not telling the third party they're getting fake data?
April 18, 2018 at 10:32 am
komal145 - Wednesday, April 18, 2018 9:42 AMLuis Cazares - Wednesday, April 18, 2018 9:30 AMkomal145 - Wednesday, April 18, 2018 9:24 AMHello ,
I have a situation where the company does not want to show actual values to the user ( loan information) as we are just sending a test file to the client , we do not want to send our actual /sensitive information.
This information includes laonnumber , Firstname , last name , address etc.Example : For loannnumber i genertaed random sequential numbers .
But with Names I am little confused. Is there a way to generate a random firstnames , lastnames , address ?
You could scramble the names from AdventureWorks or WideWorldImporters (depending on your version) to assign them randomly to your data. There's also a Red-gate tool for that, but you need to pay for it.
Thanks for suggestion but 1) I need to download the adventure works on Development server for that right? No access to do that ...... I have version 2016. Is there any way through?
2) Company wont pay anything for now ( redgate ) tool for this purpose.
You can also use your database and just scramble names from your table.
This is a sample code but you can adapt it as you need it. It uses a copy from the AdventureWorks table Person.
WITH cteNames AS(
SELECT p.FirstName, p.LastName
ROW_NUMBER() OVER(ORDER BY NEWID()) AS ORDER_1,
ROW_NUMBER() OVER(ORDER BY NEWID()) AS ORDER_2,
ROW_NUMBER() OVER(ORDER BY BusinessEntityID) AS ORDER_Original
FROM PersonCopy AS p
)
UPDATE p SET
FirstName = fn.FirstName,
LastName = ln.LastName
FROM cteNames p
JOIN cteNames fn ON p.ORDER_Original = fn.ORDER_1
JOIN cteNames ln ON p.ORDER_Original = ln.ORDER_2;
April 18, 2018 at 12:24 pm
Luis Cazares - Wednesday, April 18, 2018 10:32 AMkomal145 - Wednesday, April 18, 2018 9:42 AMLuis Cazares - Wednesday, April 18, 2018 9:30 AMkomal145 - Wednesday, April 18, 2018 9:24 AMHello ,
I have a situation where the company does not want to show actual values to the user ( loan information) as we are just sending a test file to the client , we do not want to send our actual /sensitive information.
This information includes laonnumber , Firstname , last name , address etc.Example : For loannnumber i genertaed random sequential numbers .
But with Names I am little confused. Is there a way to generate a random firstnames , lastnames , address ?
You could scramble the names from AdventureWorks or WideWorldImporters (depending on your version) to assign them randomly to your data. There's also a Red-gate tool for that, but you need to pay for it.
Thanks for suggestion but 1) I need to download the adventure works on Development server for that right? No access to do that ...... I have version 2016. Is there any way through?
2) Company wont pay anything for now ( redgate ) tool for this purpose.You can also use your database and just scramble names from your table.
This is a sample code but you can adapt it as you need it. It uses a copy from the AdventureWorks table Person.
WITH cteNames AS(
SELECT p.FirstName, p.LastName
ROW_NUMBER() OVER(ORDER BY NEWID()) AS ORDER_1,
ROW_NUMBER() OVER(ORDER BY NEWID()) AS ORDER_2,
ROW_NUMBER() OVER(ORDER BY BusinessEntityID) AS ORDER_Original
FROM PersonCopy AS p
)
UPDATE p SET
FirstName = fn.FirstName,
LastName = ln.LastName
FROM cteNames p
JOIN cteNames fn ON p.ORDER_Original = fn.ORDER_1
JOIN cteNames ln ON p.ORDER_Original = ln.ORDER_2;
Thank you. It works for me 🙂
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply