fuzzyocelot
Programmer
Hi everyone!
I have an issue that's been bugging me for a little while now. The solution is probably something really simple, but I haven't been able to figure it out. I'm hoping someone could please shed some light on it for me.
In an SQL 2005 instance (on a Windows Server 2003 R2 Standard Edition), I've been trying to run the xp_readerrorlog extended stored procedure with parameters. Here's the statement I try to run:
It works fine in 2000 but in 2005 I get the following error message:
It will run fine if I just execute "master..xp_readerrorlog". That's also how I know I'm looking at the right errorlog. It says "Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG' " at the beginning of the results. I'd just like to be able to filter it on actual error messages.
I've searched this forum and tried Google but couldn't find a solution. I would really appreciate it if someone could please let me know what it is I'm doing wrong.
Thanks in advance!
Rebecca
I have an issue that's been bugging me for a little while now. The solution is probably something really simple, but I haven't been able to figure it out. I'm hoping someone could please shed some light on it for me.
In an SQL 2005 instance (on a Windows Server 2003 R2 Standard Edition), I've been trying to run the xp_readerrorlog extended stored procedure with parameters. Here's the statement I try to run:
Code:
master..xp_readerrorlog 1,'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG','error'
It works fine in 2000 but in 2005 I get the following error message:
Code:
Msg 22004, Level 12, State 1, Line 0
Error executing extended stored procedure: Invalid Parameter Type
It will run fine if I just execute "master..xp_readerrorlog". That's also how I know I'm looking at the right errorlog. It says "Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG' " at the beginning of the results. I'd just like to be able to filter it on actual error messages.
I've searched this forum and tried Google but couldn't find a solution. I would really appreciate it if someone could please let me know what it is I'm doing wrong.
Thanks in advance!
Rebecca