|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Friday, March 01, 2013 10:30 AM
Points: 366,
Visits: 337
|
|
In doing monitoring and troubleshooting I have found a lot of the following statement as lead blockers in on and off blocking on a production server:
SET FMTONLY ON select CONSTRAINT_NAME, CONSTRAINT_CATALOG from INFORMATION_SCHEMA.KEY_COLUMN_USAGE where 1=2 SET FMTONLY OFF
The problem is I can't seem to find where this statement is coming from, it is not is the Perl code that we use, or any of the SQL scripts.
Anyone have any ideas?
Nancy
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
|
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Friday, March 01, 2013 10:30 AM
Points: 366,
Visits: 337
|
|
Thanks for responding. It is obviously SQL code, the problem is I cannot figure out who/what is call that particular code. It is not in any SQL script for the application. Could it be called by an internal SQL process or by an ODBC driver?
Nancy
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Tuesday, May 07, 2013 1:47 PM
Points: 746,
Visits: 606
|
|
| I solved a similar mystery by running a profiler trace to find where it was coming from. It was an SSIS package on another server.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Today @ 12:01 PM
Points: 3,582,
Visits: 5,130
|
|
Lots of things like ADOc, ORMs, autogenerate code, SSIS, etc gather information about recordsets and other metadata under the covers. I recommend you use various columns in sysprocesses or the replacement DMVs and also Profiler to capture information about what user, machine, application, etc is making these calls. Then you can go give them the what for, how come and why not!
Best,
Kevin G. Boles SQL Server Consultant SQL MVP 2007-2012 TheSQLGuru at GMail
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, April 26, 2013 6:59 AM
Points: 3,
Visits: 15
|
|
I can tell you that SSIS packages can generate code that looks very similar to what you are asking about.
If you have SSIS in your environment, Id start with those folks.
|
|
|
|