Depending on your rights you can use Profile.exe and run it against the db
in question.  There is an amazing amount of information it could present to
you and watching a quick Youtube on it will save you a lot of initial extra
data you don't want to see.

I would avoid logs as a first step in the what is happening question and go
for the profiler and a new trace.

I use this to identify how statements are being passed n from our ERP which
is java and it uses command line data inputs and no "connection" to the db.


Profiler does give a shit ton of data that is happening because SQL Server
is not an easy peasy toy.

Saving to a table generates insert statements that you will see happening
just as a heads up.  Try to use file instead.  Go to the events selection
and uncheck what you do not want to see.  This will help reduce the noise
that the file will collect.

Welcome to the bomb squad.  As you see all of this data about what is
really happening on the system may realize how complicated the beast really
is, and one wrong move can literally blow things up.

On Wed, Jun 7, 2017 at 5:55 AM, Dave Crozier <[email protected]> wrote:

> Kevin,
> Does this help?
>
> https://www.mssqltips.com/sqlservertip/3076/how-to-read-
> the-sql-server-database-transaction-log/
>
> You may need a little work to get what you want but it seems like all the
> info you want is in the log.
>
> Dave
>
>
> -----Original Message-----
> From: ProFox [mailto:[email protected]] On Behalf Of Kevin J
> Cully
> Sent: 06 June 2017 21:46
> To: 'ProFox Email List' <[email protected]>
> Subject: [NF] Find table where last record was added
>
> Hello all,
>
> I'm trying to (partially) reverse engineer how an ERP system is working.
> It uses M$ SQL Server and it has hundreds of tables.  I know most of the
> tables that store actual data, but I know that there must be tables where
> the business rules are stored.  Is there a way to query a system table for
> which table just had a record added to it?
>
> There are lots of pages showing how to get the last record added in a
> table, but this isn't what I'm needing. I'm wanting to add a (test)
> business rule, and then find what table(s) that got written into.
>
> I believe this query gives me the last time the table structure has
> changed, but that's not what I want either:
> SELECT [name],create_date,modify_date FROM sys.tables order by modify_date
> desc
>
> Thanks,
> Kevin
>
> This message (including any attachments) is intended only for the use of
> the individual or entity to which it is addressed and may contain
> information that is non-public, proprietary, privileged, confidential, and
> exempt from disclosure under applicable law or may constitute as attorney
> work product.
> If you are not the intended recipient, you are hereby notified that any
> use, dissemination, distribution, or copying of this communication is
> strictly prohibited. If you have received this communication in error,
> notify us immediately by telephone and
> (i) destroy this message if a facsimile or (ii) delete this message
> immediately if this is an electronic communication.
>
> Thank you.
>
>
> --- StripMime Report -- processed MIME parts --- multipart/alternative
>   text/plain (text body -- kept)
>   text/html
> ---
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/CAJidMY+0d3e43S7f7Hu1xcAn0v=LyEZX=yCVXuZWM=f6mgn...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to