troubleshooting Question

string operation

Avatar of w3brang3r
w3brang3r asked on
Microsoft SQL ServerMicrosoft ApplicationsMicrosoft Development
6 Comments1 Solution487 ViewsLast Modified:
I need to create bulk users say 500.

so while creating, coming to the passwords....

we use substring(lower(master.dbo.fn_varbintohexstr(hashbytes('MD5','yulkpassword'))),3,32)

which assigns password as password and yulk is the username.....

for eg: if username is rock, we put rockpassword in the above script, so password will be password for rock.

Now, I am developing a storedproc to use for 500 creation activity.

Issue is how to replace the first 4 chars with the username in the above query.....

Please provide solution asap....with proper example.....
ASKER CERTIFIED SOLUTION
w3brang3r

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros