Reading the Log File

  • Hi

    I was wondering if there is any way of getting the user id of a transaction in the

    transaction log. I have used dbcc log (<<database name>>) but it does not provide

    me with anything useful.

    I know there is a product available lumigent log explorer but it's asking price is insane.

    Does anyone know of a cheaper product etc?

    Thanks

  • I think lumigent know how many competitors they've got... hence the insane price.

    You may be able to get something useful out of fn_dblog. For starters try:

    select [server uid], uid, * from ::fn_dblog(null,null)
    
    where operation like '%BEGIN_XACT%'
    order by [transaction id] desc

    Cheers,

    - Mark

    Edited by - mccork on 12/08/2003 8:43:51 PM


    Cheers,
    - Mark

  • Hi Mark,

    I check out BOL for "fn_dblog" but did not find anything relating it. Where can I find the help regarding this function?

    Sachin

    🙂


    Regards,
    Sachin Dedhia

  • Sachin,

    Hardly anywhere I'm afraid.

    Just a search of newsgroups to find out how to call it. I don't even know what can be substituted for the NULL arguments, but I hear they could be LSNs (probably to limit the results set.

    If you find out any more about it I'd be delighted.

    Cheers,

    - Mark


    Cheers,
    - Mark

  • Something is better than nothing

    Thanks Mark. It will be my pleasure to keep you posted in case I come across anything regardig this.

    Sachin

    🙂


    Regards,
    Sachin Dedhia

  • You can take a look at this...

    http://www.novicksoftware.com/UDFofWeek/Vol1/T-SQL-UDF-Volume-1-Number-27-fn_dblog.htm

    Also this function is undocumented, may not be reliable and should be used at

    your own risk

    HTH

    Sachin


    Regards,
    Sachin Dedhia

  • Getting back to the original question I think http://www.lockwoodtech.com has a similar product.

    Frank

    http://www.insidesql.de

    http://www.familienzirkus.de

    --
    Frank Kalis
    Microsoft SQL Server MVP
    Webmaster: http://www.insidesql.org/blogs
    My blog: http://www.insidesql.org/blogs/frankkalis/[/url]

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply