...using the sqlcmd utility
sqlcmd -S . -d MyDatabaseName -U userName -P pazzword -Q "EXEC[dbo].[spGiveMeSomeData] @Par1 = 5, @Par2 = NULL, @Par3 = N'AnotherString'"
Tags:
SQL Server