Site navigation
ODBC log files are helpful if you're having a problem with a Linked Server that uses an ODBC data source. If you enable ODBC tracing in ODBC Data Source Administrator, but don't get a log file when working with your Linked Server, here are some things to try:
C:\Windows\Temp\SQL.log
. To find other trace files, in Windows explorer, search for SQL.log
(or whatever you named the file). We also had the file C:\Users\MSSQL$SQLEXPRESS\AppData\Local\Temp\SQL.log
and
C:\SQL.log
You need all the trace files because their contents are different. In our files, C:\Windows\Temp\SQL.log
logged the initial connection, C:\Windows\Temp\SQL.log
logged the SQL Query we executed.
DCOMCNFG
. In Component Services, right-click Component Services > Computers > My Computer > DCOM Config > MSDAINITIALIZE and choose Properties. Add the user account that SQL Server runs under (for example, MSSQL$SQLEXPRESS
) and enable Local Access and Remote Access for this user.