Re: Automatically stopping an SQL Service

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Ashish Ruparel [MSFT] (v-ashrup_at_online.microsoft.com)
Date: 04/21/04


Date: Wed, 21 Apr 2004 05:42:34 GMT

Hi Bob,

-U option of the osql utility works only with the SQL Server
Authentication. You can enter the Windows Credential using the same.

-E uses the local logged in users credentials and tries to login to the SQL
Server using the Windows Authentication.

This is the reason why the first command was failing as the username
specified was not a valid SQL server user.

To stop the instance of a SQL Server running accross the network, you can
try using the Net Stop <Servername> command.

or pass the SQL server login and password for connecting to the remote
server.

More information about the osql Utility can be found at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/coprompt/cp
_osql_1wxl.asp

and at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/acdata/ac_8
_mta_01_2r1e.asp

HTH
Ashish
This posting is provided "AS IS" with no warranties, and confers no rights.



Relevant Pages

  • Re: Windows Authentication in asp.net 2005 to SQL Server?
    ... If the domains do not trust each other, Windows authentication is not going ... Basic authentication sometimes makes the need for Kerberos delegation go ... generic account to do the backend data stuff on our SQL Server. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: I dont want to re-invent the Login/Login Wheel - Help with utilities
    ... Yes, if you use .NET1.1, there isn't built-in login control, and more importanltly there isn't ready-to-use membership component to use. ... the membership provider uses SQL Server or SQL Server Express. ... We feel that having the capability to force password change would be a better benefit in securing our application and data access. ... Both Windows authentication and authorization wolud be be fine if we wanted the world to have access to our application data, but not very intuitive for maintaining integrity over our data. ...
    (microsoft.public.vstudio.general)
  • RE: IIS (ASP) -> SQLServer Authentication Issue
    ... I understand that you'd like to use IIS Intergration authentication in the ... and ASP "impersonates" authencitaed users to access SQL Server on ... only kerberos authentication allows double-hops from clients ...
    (microsoft.public.sqlserver.security)
  • Re: SBS Premium Edition .. what way is SQL licenced
    ... Another thing to note in using your SQL Server as a backend database is the ... concept of Forms-based authentication and Integrated Windows authentication. ... thereby requiring individual CALs to access SQL Server. ... Chad A. Gross - SBS MVP ...
    (microsoft.public.windows.server.sbs)
  • Unable to Serialize.
    ... I have a remote Sql Server Instance locally. ... Unable to serialize the session state. ... session state store in 'Custom' mode. ... This section sets the authentication policies of the ...
    (microsoft.public.dotnet.framework.aspnet)