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)
 registry

Author  Topic 

arkiboys
Master Smack Fu Yak Hacker

1433 Posts

Posted - 2008-07-15 : 11:02:29
Hi,
I would like to check the path of the errorlog using the registry as follows:

Declare @Path as varchar(100)

Set @Path = NULL

Exec master..xp_regread 'HKEY_LOCAL_MACHINE', 'SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer\Parameters', 'SQLArg1', @Path OUTPUT

Select @Path as [Errorlog path]

The return value is:
-eC:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG

Question:
I guess the return value in this case does indeed indicate there the errorlog is sitting in the path above.

What does -e represent ?

Thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-07-15 : 12:57:13
It's a startup flag.

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

Subscribe to my blog
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-07-15 : 13:25:42
What? Google is down?



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-07-15 : 23:21:36
>> What does -e represent ?

Sql server error log file location, in case you don't want to read books online.
Go to Top of Page
   

- Advertisement -