Skip to main content
Inspiring
July 7, 2016
Question

Too sp_columns in activity of SQL Server

  • July 7, 2016
  • 4 replies
  • 1959 views

Hi all,

I started profiler in my SQL Server 2008 R2 and I see a lot of calls to sp_columns. This is a procedure that retrieve table informations. I guess that ColdFusion is calling this function when I execute cfquery. Is there any way to reduce this overload?

Thanks!!!

This topic has been closed for replies.

4 replies

BKBK
Community Expert
Community Expert
July 9, 2016

Could it just be that SQL Server executes the procedure sp_columns when you run the profiler?

Inspiring
July 7, 2016

Coldfusion 9 with latest update

Salvatore Cerruto
WolfShade
Legend
July 7, 2016

Which of the following examples represents a majority of the SQL contained within your queries?

SELECT userID, userName, lastLogin FROM tableUsers

SELECT * FROM tableUsers

V/r,

^_^

Inspiring
July 7, 2016

Hi Wolf,

the first example, I'd say, but it continue with where clause.

What are you thinking about this problem?

Salvatore Cerruto
Inspiring
July 7, 2016

I assume the table names it is using to lookup are names you are familiar with? Those tables exist?

Inspiring
July 7, 2016

What makes you think it is Coldfusion? The call to sp_columns will only appear if something is calling it , and Coldfusion wont do this without someone writing code to specifically call it.

How often is it happening and why do you think its overloading things?

Inspiring
July 7, 2016

Hi haxtbh,

this occurs on 50% of queries

Salvatore Cerruto
Inspiring
July 7, 2016

What filters do you have set on the profiler and how are you seeing it on the profiler?

Are you sure that the queries being run are not just other stored procs that call sp_columns or even hard coded into the CFML itself?

Running the profiler on two of my servers never shows any calls to sp_columns.