Hi Guys,
Any idea how can i enable logging of all the SQL when i am running migration .
4 Answer(s)
-
0
Hi,
If I understand correctly, you can use -verbose flag with Update-Database command to see runned migration's SQL.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Thanks for the reply i need to log all the SQL statments into a log when the Migrator exe is run on production environment so as to check if what all things got fired and to cross check also if everything went well.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi,
Migrator tool does not support this by default. I'm not %100 sure but as far as I remember Entity Framework supports this with some interception but I don't know how to do it. Maybe you can find a solution on the web for this.
In Migrator tool, we basically call , DbContext.Database.Migrate();
Thanks.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Thanks for the input.
I am able to log all the DML statements but not the DDL statements.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)