Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Query error

Author  Topic 

gangadhara.ms
Aged Yak Warrior

549 Posts

Posted - 2010-08-26 : 03:20:41
Hi All,

I am usign this query i am getting this error:


use tempdb
xp_readerrorlog
CREATE TABLE #ErrorLog
(Logdate datetime,Processinfo varchar(15),ttext varchar(1000))
insert into #ErrorLog select master..xp_readerrorlog

Please help me

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-08-26 : 03:23:18
Please post the error.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

gangadhara.ms
Aged Yak Warrior

549 Posts

Posted - 2010-08-26 : 03:30:33
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "master..xp_readerrorlog" could not be bound.
Msg 213, Level 16, State 1, Line 1
Insert Error: Column name or number of supplied values does not match table definition.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-08-26 : 11:34:28
it should be

insert into #ErrorLog
exec master..xp_readerrorlog


------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -