How to set up end-users to run the SQL command?

In my SQL ERP there is a table sometimes with a blank record. As the result, the Shipping department will NOT be able to print shipping document. Whenever this issue occurs, the Shipping will call me and I will need to get into SSMS to issue a command to delete that blank record so they can print document. Now I am wondering it would be better to set up so the Shipping clerk can issue that command by themselves to clear this error without bothering me. But we don't want them to access SSMS.
Can you tell me how to set up so the end-users can issue the SQL command from her computer without SSMS?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jagdish DevakuSr DB ArchitectCommented:

You can create procedure for deleting the blank record and you can ask shipping clerk to execute the command from batch file or command prompt.

Command Line:

Batch File (Using Batch File):

Hope this helps you and let me know if this works for you.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Vikas GargAssociate Principal EngineerCommented:

What you can do is set up a sql job on the server writing the query which you are firing to delete the blank row.
You can schedule the job so that there will not be any blank row for any condition.
CastlewoodAuthor Commented:

On the client's computer (Win 7) command SQLCMD is not available.
Vitor MontalvãoMSSQL Senior EngineerCommented:
But we don't want them to access SSMS.
Why not? If their logins don't have the necessary permissions they can only do what they are permissioned to.

Anyway you can install MSSQLCmdLnUtils in a client machine and create a script to be run by SQLCmd then create a batch file where you call SQLCmd with the T-SQL script as parameter.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.