473,401 Members | 2,139 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,401 software developers and data experts.

SQL daily

Coming from Oracle background:

How do you carry thiese admin tasks in SQL 2000 Environment :

Check instance availability
Check listener availability
Check alert log files for error messages
Clean up old log files before log destination gets filled
Analyze tables and indexes for better performance
Check tablespace usage
Find out invalid objects
Monitor users and transactions
Thanks for help.
Jul 20 '05 #1
1 2214

"Frank" <so******@yahoo.com> wrote in message
news:42*************************@posting.google.co m...
Coming from Oracle background:

How do you carry thiese admin tasks in SQL 2000 Environment :

Check instance availability
The easiest way is to try connecting, and if you can connect then the
instance is available. You could use osql.exe, or the SQLDMO or ADO COM
objects from your own script. Or if you already have a tool to monitor
Windows services, then you can use that to check the MSSQLServer and
SQLServerAgent services.
Check listener availability
I'm not sure what a listener is, but there is no separate component in MSSQL
to handle connections - you connect directly to an instance.
Check alert log files for error messages
The MSSQL error log is a text file, so any tool for parsing log files will
work. In addition, MSSQL writes to the Windows Application event log, so if
you already have a tool for reading those logs, then you could use that. Or
configure MSSQL alerts for the specific errors that you're interested in.
Clean up old log files before log destination gets filled
This depends on your backup strategy. If you want to be able to do
point-in.time recovery, then you need log backups - backing up the log
trunctates it (ie frees up space in the log file). If you don't need that,
then you can use the simple recovery model, where the log is automatically
truncated. See "Selecting a Recovery Model" and "Truncating the Transaction
Log" in Books Online.
Analyze tables and indexes for better performance
The Index Tuning Wizard might be the best place to start - you trace some
typical activity in the database (using Profiler), then the wizard analyzes
it and suggests changes to the current indexes.
Check tablespace usage
Check out sp_spaceused, sp_helpfilegroup, sp_helpfile, and DBCC SQLPERF in
Books Online. You can also use the SQLDMO COM interface to get information
on files and filegroups.
Find out invalid objects
I'm not sure what you mean by an "invalid" object - you might want to
explain some more.
Monitor users and transactions


Profiler is probably the best general tool - you can view all commands sent
to the server, long.running queries, execution plans etc. In Query Analyzer,
you can use sp_who2 to see the current connections, sp_lock to view the
current locks, and fn_get_sql() to view the commands being executed by each
user.

Simon
Jul 20 '05 #2

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

Similar topics

7
by: Paddy McCarthy | last post by:
I sent the following this morning: -------- Original Message -------- Subject: Threats to the: Daily Python URL! Date: Mon, 19 Apr 2004 07:50:04 +0100 From: Donald 'Paddy' McCarthy...
0
by: Ray in HK | last post by:
I have 2 tables, they are daily and monthly tables. I want to update the monthly table with the max and min value of the daily table with the corresponding month. I figure out the following...
0
by: Marcel - IDUG Europe 2005 | last post by:
Visit the IDUG Europe Conference Blog for Daily Updates and Conference Information IDUG 2005 - Europe Blog New for this year's conference, IDUG 2005 - Europe has created a blog to give you...
1
by: gbb0330 | last post by:
hi guys -the code (all capital letters) generates daily packing number, it is in the on click event of a command button that moves to the next record. dpkn is unbound control - i use it to...
1
by: guy | last post by:
hi I am looking for Daily calendar control for my ASP.net project. (c#) Where can i download it?? (prefereble ,for free...) The daily calendar or diary suppose to look like the daily task...
2
by: V_S_H_Satish | last post by:
Dear Friends I am working as oracle and ms sql dba from last 4 years. My company recently migrated to DB2 databases. So i am very much new to db2 database Can any one pls provide script to...
0
by: George L. Sexton | last post by:
MH Software, Inc. is pleased to announce the release of version 3.2.11 of its Connect Daily web calendar software. This is primarily a small feature release with a few bug fixes. Topics in this...
6
by: bmjnine | last post by:
Hi all, I am trying to setup a daily task in my .NET (1.1) application. The application is a project management tool, and the daily task I am trying to set up will check for overdue project...
0
by: ambelkar | last post by:
hi, I trying to join weekly & daily tables by using end_dte,Rpt_dte respectively.My week is saturday to friday.first table only having week end' dates but the 2 daily table having daily dates .when...
1
by: naveensrirangam | last post by:
We want to do a total 10 number of scheduled tasks daily. These tasks will run in certain time in daily and every task application developed in different technologies . Now we are looking to do...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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...

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.