We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4c84f1 commit 41f5bc4Copy full SHA for 41f5bc4
pkg/mssqldb/server.go
@@ -35,13 +35,13 @@ func (c *Client) GetServer(ctx context.Context) (*ServerModel, error) {
35
return &ret, nil
36
}
37
38
-func (c *Client) DisableUserFromServer(ctx context.Context, userName string) error {
+func (c *Client) DeleteUserFromServer(ctx context.Context, userName string) error {
39
if strings.ContainsAny(userName, "[]\"';") {
40
return fmt.Errorf("invalid characters in userName")
41
42
43
query := fmt.Sprintf(`
44
-ALTER LOGIN [%s] DISABLE;`, userName)
+DROP LOGIN [%s];`, userName)
45
46
_, err := c.db.ExecContext(ctx, query)
47
if err != nil {
0 commit comments