| |

VerySource

 Forgot password?
 Register
Search
View: 645|Reply: 2

vb.net implementation to add a user for sqlserver and give the user a certain full line

[Copy link]

2

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-21 22:20:01
| Show all posts |Read mode
As the title
Please help me a lot, waiting for urgent use, thank you in advance
Reply

Use magic Report

0

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-3-8 17:30:02
| Show all posts
This is the sql problem. Not a .net problem. Let me write it for you.
Reply

Use magic Report

0

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 Unknown

Post time: 2020-3-17 01:15:01
| Show all posts
Create a login if there is no login
The first parameter is the name of the login, the second is the password, and the third is the default database.
EXEC sp_addlogin 'abcd', '123', 'northwind'
Then create user
The first parameter is the name of the login, the second is the username, and the third is the groupname, which can be omitted.
EXEC sp_adduser 'abcd', 'Victoria'
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list