Search code examples
azure-sql-databaselogparser

Can LogParser output to Azure SQL?


Azure SQL tables require a clustered index and will not accept insertions if one is not present. If one is present LogParser is complaining about a mismatch on the number of columns in the select list vs. the target table.

Is there any way to square this circle? Perhaps embed an expression in LP's select list like '"SELECT DateTime,Thread,Level,Logger,Message,Exception,(select max(id)+1 from loggerTbl)...

It's becoming amazingly difficult to parse plain old azure logs into sql where god intends them to be.


Solution

  • Azure SQL tables require a clustered index and will not accept insertions if one is not present.

    That is no longer true. Azure SQL DB v12 no longer has this restrictions. Move your DB to one of the new tiers (Basic, Standard) and your DB will be upgraded to v12.