Start Free Trial
Come for the solution, stay for everything else.
Start Free Trial
I need to create bulk users say 500.
so while creating, coming to the passwords....
we use substring(lower(master.dbo
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.....
Microsoft SQL Server
8/22/2022 - Mon
LEFT(username, 4) + "password" does not work??
Should just be able to do this.
ameField + 'password'))),3,32)
Where UserNameField is the users name.
None of them works!
Thing is I would like use a variable in place of the username part, so that sproc can be developed.....
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
ASKER CERTIFIED SOLUTION
Log in or sign up to see answer
Become an EE member today
7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Got the solution.....using 2 variables.....thanks all.
It was more easy and appropriate.
Plans and Pricing
Certified Expert Program
© 1996-2022 Experts Exchange, LLC. All rights reserved. Covered by US Patent