473,413 Members | 1,718 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

SQL Server - Remote Command Line Management

JDB
As a Sys Admin, I was wondering - if I have admin rights to a Win2k machine
that is hosting SQL Server 2000, do I have the ability using any
command-line tools such as OSQL or ISQL to add, delete, or change accounts
registered in SQL Server for the various databases if I don't have access to
a specific account within SQL Server?

I ask, because the question that came up was - what if we have a DBA leave
under less than amicable circumstances? Could I, someone who has admin
rights on the machine, be able to log into that machine remotely and somehow
via command line (I don't maintain active SQL clients centrally), change the
SA password, remove an account, and/or add an account with sysadmin rights,
etc?

Thanks in advance for any help -



Jul 20 '05 #1
3 4714
JDB (jb***@vitria.com) writes:
As a Sys Admin, I was wondering - if I have admin rights to a Win2k
machine that is hosting SQL Server 2000, do I have the ability using any
command-line tools such as OSQL or ISQL to add, delete, or change
accounts registered in SQL Server for the various databases if I don't
have access to a specific account within SQL Server?

I ask, because the question that came up was - what if we have a DBA
leave under less than amicable circumstances? Could I, someone who has
admin rights on the machine, be able to log into that machine remotely
and somehow via command line (I don't maintain active SQL clients
centrally), change the SA password, remove an account, and/or add an
account with sysadmin rights, etc?


If you have administrator rights on the machine SQL Server is running on,
the you can log in through integrated security, and in the default
configuration, you would have sysadmin access through the role
BUILTIN\Administrators. However, I think this can be revoked.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #2
Thanks for the response.

Can this be done via command line? Or a thin SQL Server client such as
SQLExpress?

Thanks ...
"Erland Sommarskog" <es****@sommarskog.se> wrote in message
news:Xn*********************@127.0.0.1...
JDB (jb***@vitria.com) writes:
As a Sys Admin, I was wondering - if I have admin rights to a Win2k
machine that is hosting SQL Server 2000, do I have the ability using any
command-line tools such as OSQL or ISQL to add, delete, or change
accounts registered in SQL Server for the various databases if I don't
have access to a specific account within SQL Server?

I ask, because the question that came up was - what if we have a DBA
leave under less than amicable circumstances? Could I, someone who has
admin rights on the machine, be able to log into that machine remotely
and somehow via command line (I don't maintain active SQL clients
centrally), change the SA password, remove an account, and/or add an
account with sysadmin rights, etc?


If you have administrator rights on the machine SQL Server is running on,
the you can log in through integrated security, and in the default
configuration, you would have sysadmin access through the role
BUILTIN\Administrators. However, I think this can be revoked.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp

Jul 20 '05 #3
ScottT (rd*@drewscott.com) writes:
Can this be done via command line? Or a thin SQL Server client such as
SQLExpress?


Yes, you can use Integrated Security with any tool that supports it.
(And most tools should to that, since Integrated Security is always
available, whereas SQL authentication is not.)

So OSQL should do. SQLExpress is nothing I know about.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Robert | last post by:
I am using the php4-cgi Debian package which is based on PHP 4.3.4. I have problems when running php4 on the command line. If I say something like $ php4 index.cgi a number of variables...
0
by: Fraser Campbell | last post by:
Hi, We're trying enter polish language into mysql. My understanding is that polish language uses iso-8859-2 character set. I am cutting and pasting polish text from a web browser (Konqueror)...
3
by: JStrummer | last post by:
I have a mySQL database located on a remote host's server. I would like to schedule a task on my local Windows computer to retrieve a backup/dump of this remote database. I have contacted my...
3
by: Billy Cormic | last post by:
Hello, I would like to write a windows application that can get the IP address of the computer the appliation is installed on. Then the program should ftp a file to another computer. I have no...
1
by: mcyi2mr3 | last post by:
hi all how do i make a command line connection to a remote mysql server? for local connections i know it is: mysql -u root dbname how do i connect to a remote server with a password? thanks...
0
by: Siebbel | last post by:
Hello, I would like to install DB2 on a remote linux computer using command line. Does anybody know if that is possible? Or if not, are there possibilities to have the graphical interface on my...
2
by: tedpottel | last post by:
Hi, Is their a version of pythons IDLE that will run in a dos command line? The reason is that I would like to be able to run python code interactively from my parable by connecting to my desktop...
1
by: Dayakar Reddy | last post by:
Hi, we are trying to use CLP tool provided by DB2 client installer to create DB2 database. We followed the following steps 1)Invoked command line processor (CLP) 2) catalog tcpip node DB2_01...
0
by: ivan lim | last post by:
I'm trying to copy a file from remote server which installed freesshd with public/private key authentication, how could i write a function in VB6 or any windows API to lauch psftp (sftp command-line)...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.