Showing posts with label errors. Show all posts
Showing posts with label errors. Show all posts

Wednesday, March 28, 2012

More errors in convert function

In hijri calender any month can be 30 or 29 day
in convert function
if I write
select convert (datetime ,'29-12-1426,131) it is ok
this year 12 month is 30 days
but if I write
select convert (datetime ,'30-12-1426,131)
ther is an error

Thanks for any help

Tamer229,
There are many variations of the Islamic calendar. In some versions,
there are 29 days in the month Thou Alhajja in the year 1426, and in
others there are 30 days. There are only 29 days in this month
according to the Islamic calendar version used by Microsoft, which
is why you are getting an error when you try to convert the 30th day
of this month. In the Microsoft version, the western date January
30, 2006 is the first day of Muharram, 1427. In other versions of
the Islamic calendar, January 30, 2006 is the 30th day of Thou Alhajja,
1426.
See http://www.phys.uu.nl/~vgent/islam/islamyear_en.htm
for a calculator that shows several versions. The version used
by Microsoft is labeled "Ia [15, astronomical = “Kuwaiti algorithm”]"
Steve Kass
Drew University

Wednesday, March 21, 2012

Monitoring Transactional Replication (with pull subscribers) ! he

Have a look at the Replication Alerts for some of this -
specifically the Replication: agent failure alert.
To help troubleshoot errors, the replication history
tables (MSsnapshot_history, MSlogreader_history etc) are
used, either directly or through the GUI. Also, setting
the agents to log history to a text file can be extremely
useful and give a more granular type of error handling
capability (see http://support.microsoft.com/?id=312292).
To backup the log just do a normal backup. The log won't
be truncated of this work until the transaction has
finished and the log-reader has read the whole
transaction.
Rgds,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
also have a look at the msrepl_errors table in the distribution database.
Errors are logged here.
Hilary Cotter
Looking for a SQL Server replication book?
Now available for purchase at:
http://www.nwsu.com/0974973602.html
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:3ce301c4e287$c466a4a0$a301280a@.phx.gbl...
> Have a look at the Replication Alerts for some of this -
> specifically the Replication: agent failure alert.
> To help troubleshoot errors, the replication history
> tables (MSsnapshot_history, MSlogreader_history etc) are
> used, either directly or through the GUI. Also, setting
> the agents to log history to a text file can be extremely
> useful and give a more granular type of error handling
> capability (see http://support.microsoft.com/?id=312292).
> To backup the log just do a normal backup. The log won't
> be truncated of this work until the transaction has
> finished and the log-reader has read the whole
> transaction.
> Rgds,
> Paul Ibison SQL Server MVP, www.replicationanswers.com
> (recommended sql server 2000 replication book:
> http://www.nwsu.com/0974973602p.html)
>

monitoring tool

Are there any good monitoring tools that would notify us upon CPU,Disk
space, blocking, errors/warnings in event logs,etc..
We use Sitescope and it doesnt seem to be a robust tool
Thanks
Hi,
Have a look into Microsoft operation manager (MOM). See the below URL for
details:-
http://www.microsoft.com/mom/default.mspx
Thanks
Hari
SQL Server MVP
"Hassan" <hassanboy@.hotmail.com> wrote in message
news:OESfJu$qFHA.460@.TK2MSFTNGP15.phx.gbl...
> Are there any good monitoring tools that would notify us upon CPU,Disk
> space, blocking, errors/warnings in event logs,etc..
> We use Sitescope and it doesnt seem to be a robust tool
> Thanks
>
|||There are a lot of different monitoring tools. MOM is one
that Hari mentioned. You may also want to look at some of
the tools from idera:
www.idera.com
-Sue
On Sun, 28 Aug 2005 11:08:46 -0700, "Hassan"
<hassanboy@.hotmail.com> wrote:

>Are there any good monitoring tools that would notify us upon CPU,Disk
>space, blocking, errors/warnings in event logs,etc..
>We use Sitescope and it doesnt seem to be a robust tool
>Thanks
>
|||Take a look at AgileInfoSoftware DataStudio, under its Performance
Monitoring node, it allows user to monitor process, lock, blocking locks
etc.
"Hassan" <hassanboy@.hotmail.com> wrote in message
news:OESfJu$qFHA.460@.TK2MSFTNGP15.phx.gbl...
> Are there any good monitoring tools that would notify us upon CPU,Disk
> space, blocking, errors/warnings in event logs,etc..
> We use Sitescope and it doesnt seem to be a robust tool
> Thanks
>
|||Check out AgileInfoSoftware DataStudio http://www.agileinfollc.com
John King
AgileInfoSoftware
http://www.agileinfollc.com
"Hassan" <hassanboy@.hotmail.com> wrote in message
news:OESfJu$qFHA.460@.TK2MSFTNGP15.phx.gbl...
> Are there any good monitoring tools that would notify us upon CPU,Disk
> space, blocking, errors/warnings in event logs,etc..
> We use Sitescope and it doesnt seem to be a robust tool
> Thanks
>
|||Sorry to bring back an old thread, but this is of great interest to me also.
I'm doing a trial deployment of MOM and finding it a bit more than we may
need. I like the extensibility via the management packs, but it may be too
big, too expensive and to tell the truth, a bit 'finicky' in setting up and
maintaining. Right now I have more alerts about MOM itself to figure out and
fix than the SQL servers we are attempting to monitor.
I'm a network engineer, not a SQL DBA. All I really want is something that
alerts when a job fails, lets us know if the SQL Agent isn't running and a
few other server statistics.
I'm going to look into Idera and Agileinfo.
Does anyone have any other recomendations? I know vendors like to throw in
the kitchen sink when it comes to features. In this case, for me, KISS is
more like my guiding principle.
Regards,
MK
"John King" wrote:

> Check out AgileInfoSoftware DataStudio http://www.agileinfollc.com
> John King
> AgileInfoSoftware
> http://www.agileinfollc.com
> "Hassan" <hassanboy@.hotmail.com> wrote in message
> news:OESfJu$qFHA.460@.TK2MSFTNGP15.phx.gbl...
>
>
|||I really like Idera's Diagnostic Manager. Great third-party tool!
Lori
"Michael Kenny" <MichaelKenny@.discussions.microsoft.com> wrote in message
news:CA9FCD26-8BB7-4247-930F-2F803688233E@.microsoft.com...[vbcol=seagreen]
> Sorry to bring back an old thread, but this is of great interest to me
> also.
> I'm doing a trial deployment of MOM and finding it a bit more than we may
> need. I like the extensibility via the management packs, but it may be too
> big, too expensive and to tell the truth, a bit 'finicky' in setting up
> and
> maintaining. Right now I have more alerts about MOM itself to figure out
> and
> fix than the SQL servers we are attempting to monitor.
>
> I'm a network engineer, not a SQL DBA. All I really want is something that
> alerts when a job fails, lets us know if the SQL Agent isn't running and a
> few other server statistics.
> I'm going to look into Idera and Agileinfo.
> Does anyone have any other recomendations? I know vendors like to throw in
> the kitchen sink when it comes to features. In this case, for me, KISS is
> more like my guiding principle.
> Regards,
> MK
>
>
> "John King" wrote:

Monday, March 19, 2012

monitoring sql server log

can somebody help me with script to monitor the sql server
log for errors/messages? thanks.use xp_readerrorlog
>--Original Message--
>can somebody help me with script to monitor the sql
server
>log for errors/messages? thanks.
>.
>

Monitoring SQL Server Error logs

Hi,
We have a large number of SQL servers that we are supporting. Monitoring the
error logs for new errors is really a big task as we have to manually check
these error logs. I was hoping that some of you might have automated this
process and filtered out the unwanted messages from the error log and mail
only the genuine ones. If anyone can share it with the group, it will be
terrific as you will be giving us extra minutes of sleep each night.
Thanking you in anticipation,
Yoga
You'll need to define for yourself what a wanted message is.
One option is to use finstr to search for whatever it is you
are looking for - you can find examples in these articles:
http://support.microsoft.com/?id=115519
http://www.sqlservercentral.com/scripts/viewscript.asp?scriptid=40
You can automate those in a job.
Another consideration is how you set up and use your alerts
and monitoring on the servers. For most things you can be
notified if monitoring is set up correctly.
Of course there are a lot of third party solutions but I
take it your looking for scripts and built in solutions.
-Sue
On Mon, 26 Mar 2007 11:53:38 -0700, "Yoganarasimha Prasad"
<yogakiran@.gmail.com> wrote:

>Hi,
>We have a large number of SQL servers that we are supporting. Monitoring the
>error logs for new errors is really a big task as we have to manually check
>these error logs. I was hoping that some of you might have automated this
>process and filtered out the unwanted messages from the error log and mail
>only the genuine ones. If anyone can share it with the group, it will be
>terrific as you will be giving us extra minutes of sleep each night.
>Thanking you in anticipation,
>Yoga
>

Monitoring SQL Server Error logs

Hi,
We have a large number of SQL servers that we are supporting. Monitoring the
error logs for new errors is really a big task as we have to manually check
these error logs. I was hoping that some of you might have automated this
process and filtered out the unwanted messages from the error log and mail
only the genuine ones. If anyone can share it with the group, it will be
terrific as you will be giving us extra minutes of sleep each night.
Thanking you in anticipation,
YogaYou'll need to define for yourself what a wanted message is.
One option is to use finstr to search for whatever it is you
are looking for - you can find examples in these articles:
http://support.microsoft.com/?id=115519
http://www.sqlservercentral.com/scr...asp?scriptid=40
You can automate those in a job.
Another consideration is how you set up and use your alerts
and monitoring on the servers. For most things you can be
notified if monitoring is set up correctly.
Of course there are a lot of third party solutions but I
take it your looking for scripts and built in solutions.
-Sue
On Mon, 26 Mar 2007 11:53:38 -0700, "Yoganarasimha Prasad"
<yogakiran@.gmail.com> wrote:

>Hi,
>We have a large number of SQL servers that we are supporting. Monitoring th
e
>error logs for new errors is really a big task as we have to manually check
>these error logs. I was hoping that some of you might have automated this
>process and filtered out the unwanted messages from the error log and mail
>only the genuine ones. If anyone can share it with the group, it will be
>terrific as you will be giving us extra minutes of sleep each night.
>Thanking you in anticipation,
>Yoga
>|||I've got a DIY SQL error log checking , as you can see in the script there a
various terms filtered out , change it as required.
I've selected those terms , as error logs I'm not interested in. It takes a
parameter , being the server name . I've got it wrapped on another sp that
runs through the servers , hitting the the error log sp , and then if
relevant send an email
http://www.quicksqlserver.com/2007/...erver_log_.html
Jack Vamvas
___________________________________
Advertise your IT vacancies for free at - http://www.ITjobfeed.com
"Yoganarasimha Prasad" <yogakiran@.gmail.com> wrote in message
news:elZrRg9bHHA.1388@.TK2MSFTNGP05.phx.gbl...
> Hi,
> We have a large number of SQL servers that we are supporting. Monitoring
> the error logs for new errors is really a big task as we have to manually
> check these error logs. I was hoping that some of you might have automated
> this process and filtered out the unwanted messages from the error log and
> mail only the genuine ones. If anyone can share it with the group, it will
> be terrific as you will be giving us extra minutes of sleep each night.
> Thanking you in anticipation,
> Yoga
>

Monitoring SQL Server Error logs

Hi,
We have a large number of SQL servers that we are supporting. Monitoring the
error logs for new errors is really a big task as we have to manually check
these error logs. I was hoping that some of you might have automated this
process and filtered out the unwanted messages from the error log and mail
only the genuine ones. If anyone can share it with the group, it will be
terrific as you will be giving us extra minutes of sleep each night.
Thanking you in anticipation,
YogaYou'll need to define for yourself what a wanted message is.
One option is to use finstr to search for whatever it is you
are looking for - you can find examples in these articles:
http://support.microsoft.com/?id=115519
http://www.sqlservercentral.com/scripts/viewscript.asp?scriptid=40
You can automate those in a job.
Another consideration is how you set up and use your alerts
and monitoring on the servers. For most things you can be
notified if monitoring is set up correctly.
Of course there are a lot of third party solutions but I
take it your looking for scripts and built in solutions.
-Sue
On Mon, 26 Mar 2007 11:53:38 -0700, "Yoganarasimha Prasad"
<yogakiran@.gmail.com> wrote:
>Hi,
>We have a large number of SQL servers that we are supporting. Monitoring the
>error logs for new errors is really a big task as we have to manually check
>these error logs. I was hoping that some of you might have automated this
>process and filtered out the unwanted messages from the error log and mail
>only the genuine ones. If anyone can share it with the group, it will be
>terrific as you will be giving us extra minutes of sleep each night.
>Thanking you in anticipation,
>Yoga
>|||I've got a DIY SQL error log checking , as you can see in the script there a
various terms filtered out , change it as required.
I've selected those terms , as error logs I'm not interested in. It takes a
parameter , being the server name . I've got it wrapped on another sp that
runs through the servers , hitting the the error log sp , and then if
relevant send an email
http://www.quicksqlserver.com/2007/03/sql_server_log_.html
Jack Vamvas
___________________________________
Advertise your IT vacancies for free at - http://www.ITjobfeed.com
"Yoganarasimha Prasad" <yogakiran@.gmail.com> wrote in message
news:elZrRg9bHHA.1388@.TK2MSFTNGP05.phx.gbl...
> Hi,
> We have a large number of SQL servers that we are supporting. Monitoring
> the error logs for new errors is really a big task as we have to manually
> check these error logs. I was hoping that some of you might have automated
> this process and filtered out the unwanted messages from the error log and
> mail only the genuine ones. If anyone can share it with the group, it will
> be terrific as you will be giving us extra minutes of sleep each night.
> Thanking you in anticipation,
> Yoga
>

Monday, March 12, 2012

monitoring deadlock

On production we r having lot of deadlock errors. How can i monitor this and
identified sps creating this havoc... ?
Perhaps you can use this:
http://support.microsoft.com/?kbid=271509
You might find that this is helpful information as well:
http://www.sommarskog.se/sqlutil/aba_lockinfo.html
Keith Kratochvil
"Vikram" <aa@.aa> wrote in message
news:eTt3kRMWGHA.3332@.TK2MSFTNGP02.phx.gbl...
> On production we r having lot of deadlock errors. How can i monitor this
> and
> identified sps creating this havoc... ?
>

monitoring deadlock

On production we r having lot of deadlock errors. How can i monitor this and
identified sps creating this havoc... ?Perhaps you can use this:
http://support.microsoft.com/?kbid=271509
You might find that this is helpful information as well:
http://www.sommarskog.se/sqlutil/aba_lockinfo.html
Keith Kratochvil
"Vikram" <aa@.aa> wrote in message
news:eTt3kRMWGHA.3332@.TK2MSFTNGP02.phx.gbl...
> On production we r having lot of deadlock errors. How can i monitor this
> and
> identified sps creating this havoc... ?
>

monitoring deadlock

On production we r having lot of deadlock errors. How can i monitor this and
identified sps creating this havoc... ?SQL profiler - Events Locks - Lock::Deadlock.
Mel|||Look at
http://www.sql-server-performance.com/deadlocks.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/trblsql/tr_servdatabse_5xrn.asp?
http://support.microsoft.com/default.aspx?scid=kb;en-us;832524
Regards
Amish Shah|||Perhaps you can use this:
http://support.microsoft.com/?kbid=271509
You might find that this is helpful information as well:
http://www.sommarskog.se/sqlutil/aba_lockinfo.html
Keith Kratochvil
"Vikram" <aa@.aa> wrote in message
news:eTt3kRMWGHA.3332@.TK2MSFTNGP02.phx.gbl...
> On production we r having lot of deadlock errors. How can i monitor this
> and
> identified sps creating this havoc... ?
>

Wednesday, March 7, 2012

Monitor SQL Server?

Hello,
I have a request from a client to have monitoring of a specific
database in case any errors arise to help them isolate the problem.
Would using Profiler accomplish this? Is there a way to set it up so
it's only logged during working hours?
Yes, you can set a filter to only cature events for a given time period.
"JSM" wrote:

> Hello,
> I have a request from a client to have monitoring of a specific
> database in case any errors arise to help them isolate the problem.
> Would using Profiler accomplish this? Is there a way to set it up so
> it's only logged during working hours?
>
|||Hi
Look at creating a scheduled server side trace, although if there is alot of
activity you may be logging a significant amount of information. Jasper Smith
has a 1 hour trace http://www.sqldbatips.com/showcode.asp?ID=7 which you can
change to be (say) 9 hours and start before the beginning of the day in a SQL
Agent job.
John
"JSM" wrote:

> Hello,
> I have a request from a client to have monitoring of a specific
> database in case any errors arise to help them isolate the problem.
> Would using Profiler accomplish this? Is there a way to set it up so
> it's only logged during working hours?
>

Monitor SQL Server?

Hello,
I have a request from a client to have monitoring of a specific
database in case any errors arise to help them isolate the problem.
Would using Profiler accomplish this? Is there a way to set it up so
it's only logged during working hours?Yes, you can set a filter to only cature events for a given time period.
"JSM" wrote:

> Hello,
> I have a request from a client to have monitoring of a specific
> database in case any errors arise to help them isolate the problem.
> Would using Profiler accomplish this? Is there a way to set it up so
> it's only logged during working hours?
>|||Hi
Look at creating a scheduled server side trace, although if there is alot of
activity you may be logging a significant amount of information. Jasper Smit
h
has a 1 hour trace http://www.sqldbatips.com/showcode.asp?ID=7 which you can
change to be (say) 9 hours and start before the beginning of the day in a SQ
L
Agent job.
John
"JSM" wrote:

> Hello,
> I have a request from a client to have monitoring of a specific
> database in case any errors arise to help them isolate the problem.
> Would using Profiler accomplish this? Is there a way to set it up so
> it's only logged during working hours?
>

Monitor SQL Server?

Hello,
I have a request from a client to have monitoring of a specific
database in case any errors arise to help them isolate the problem.
Would using Profiler accomplish this? Is there a way to set it up so
it's only logged during working hours?Yes, you can set a filter to only cature events for a given time period.
"JSM" wrote:
> Hello,
> I have a request from a client to have monitoring of a specific
> database in case any errors arise to help them isolate the problem.
> Would using Profiler accomplish this? Is there a way to set it up so
> it's only logged during working hours?
>|||Hi
Look at creating a scheduled server side trace, although if there is alot of
activity you may be logging a significant amount of information. Jasper Smith
has a 1 hour trace http://www.sqldbatips.com/showcode.asp?ID=7 which you can
change to be (say) 9 hours and start before the beginning of the day in a SQL
Agent job.
John
"JSM" wrote:
> Hello,
> I have a request from a client to have monitoring of a specific
> database in case any errors arise to help them isolate the problem.
> Would using Profiler accomplish this? Is there a way to set it up so
> it's only logged during working hours?
>

Monday, February 20, 2012

MOM Subscription errors

I have a few MOM reports that give the following error when I try to
set up a new subscription. I have previously been able to subscribe to
the reports, but now we get this error.
"There is an error in XML document (1,50623)"
I have seen couple of other posts on this, but never an answer or
solution. I can open and run the report in Visual Studio, but even if I
republish them to another folder they still fail. I can see the error
in the logs telling me I have an illegal character, but other than
validating the error, the log does not provide useful info.
THis is happening on more than one MOM report, but only on MOM reports.
Anyone know what is happening'?Had to contact MS. Of course there is a bug that requires a HOT FIX
that needs to be run on the MOM server. Turns out somehow there are
non-printable characters being populated in the data the reports are
using for paramaters to the reports.
The RS log files shows that there is an illegal character but does not
tell you where it is. I finally stumbled upon the illegal character
when looking at the drop down list boxes on the reports. They are of
course non-printable characters so you will not see them in the results
of a SQL select statement.
Here is the article that outlines the problem.
http://support.microsoft.com/?id=915785#XSLTH3120121123120121120120
Article ID : 915785