cancel
Showing results for 
Search instead for 
Did you mean: 

How I can remove TDS logging from Sybase IQ 16 log?

Former Member
0 Kudos

Hello,

We use jdbc jconn4.jar on a Windows 64 bits server to connect to a Sybase IQ 16 also in Windows 64 bits version.

If we connect Sybase IQ16 and perform a query all data can be see in the Sybase IQ log.

Do you know a config flag or switch we need to apply to avoid that?

Thanks in advance for your answer.

Olivier H.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

check if you have the -z startup switch set as that would log TDS traffic

Former Member
0 Kudos

Hi,

Thanks for this quick reply

Yes we use -z command line option to get SQL statement, user connections, ...

If we can't use -z option with jdbc how we can get SQL statement and user connections. Sybase provide an API for that?

Olivier H.

markmumy
Advisor
Advisor
0 Kudos

Are you using just -z?  If so, then consider using -zr sql or -zr all as well as -zo.

Mark

Answers (1)

Answers (1)

Gisung
Advisor
Advisor
0 Kudos

Hi,

If you use a -z switch, The following option restricts the debugging information about TDS.

----------------------------------------------------------------------------------------------------------------------------------------------------

SUPPRESS_TDS_DEBUGGING Option

Determines whether TDS debugging information appears in the server window.

Allowed Values

ON, OFF

Default

OFF

Scope

Option can be set at the database (PUBLIC) or user level. When set at the database level, the value becomes the default for any new user, but has no impact on existing users. When set at the user level, overrides the PUBLIC value for that user only. No system privilege is required to set option for self. System privilege is required to set at database level or at user level for any user other than self.

Requires the SET ANY PUBLIC OPTION system privilege to set this option. Can be set temporary for an individual connection or for the PUBLIC role. Takes effect immediately.

Remarks

When the server is started with the -z option, debugging information appears in the server window, including debugging information about the TDS protocol.

SUPPRESS_TDS_DEBUGGING restricts the debugging information about TDS that appears in the server window. When this option is set to OFF (the default), TDS debugging information appears in the server window.

----------------------------------------------------------------------------------------------------------------------------------------------------


==

Gi-Sung Jang

Former Member
0 Kudos

Thanks at all!

Case closed

Olivier H.