M
Me
I am trying to run the sql server procedure thru' Access form.
I want to run the sql server procedure sp_password to
change the sql server database password for logged on user.
How can I do it?
I tried using DoCmd.RunSQL SQL
where SQL = EXEC sp_password NULL, 'newpwd', 'username'
but it seems it won't accept statements other than 'SELECT/INSERT/UPDATE/ or
the like thereof'
I also tried creating a function with the following -
Application.CurrentProject.Connection.Execute s SQL , but when I execute it
I get the error EXEC isn't found or something like that.
Thank you,
-Me
I want to run the sql server procedure sp_password to
change the sql server database password for logged on user.
How can I do it?
I tried using DoCmd.RunSQL SQL
where SQL = EXEC sp_password NULL, 'newpwd', 'username'
but it seems it won't accept statements other than 'SELECT/INSERT/UPDATE/ or
the like thereof'
I also tried creating a function with the following -
Application.CurrentProject.Connection.Execute s SQL , but when I execute it
I get the error EXEC isn't found or something like that.
Thank you,
-Me