Skip to main content
Inspiring
Jul 7, 2016 9:00 AM UTC
Question

Too sp_columns in activity of SQL Server

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 is closed to new replies. Start a new post to keep the conversation going.

15 replies

BKBK
Community Expert
Community Expert
Jul 9, 2016 9:58 AM UTC

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

Translate
Inspiring
Jul 7, 2016 4:14 PM UTC

Coldfusion 9 with latest update

Translate
Salvatore Cerruto
WolfShade
Legend
Jul 7, 2016 1:20 PM UTC

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,

^_^

Translate
Inspiring
Jul 7, 2016 1:24 PM UTC

Hi Wolf,

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

What are you thinking about this problem?

Translate
Salvatore Cerruto
Inspiring
Jul 7, 2016 1:32 PM UTC

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

Translate
Inspiring
Jul 7, 2016 11:25 AM UTC

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?

Translate
Inspiring
Jul 7, 2016 11:46 AM UTC

Hi haxtbh,

this occurs on 50% of queries

Translate
Salvatore Cerruto
Inspiring
Jul 7, 2016 12:38 PM UTC

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.

Translate