Groups | Blog | Home
all groups > sql server odbc > december 2003 >

sql server odbc : Turn Off Temporary Stored Procedures on 6.5


Nick DeVore
12/16/2003 8:36:03 AM
Hi,

I have a unique (don't we all) situation with Macintoshes talking to my SQL
6.5 server using the very old Visigenic's drivers. Anyway, the problem is
that the driver is ignoring the "UseProcForPrepare" flag so all my Macs are
creating session temporary stored procedures. Needless to say this is
causing quite the performance hit on my server. I looked at the ODBC API
calls, and there is one for setting that pref after a user is logged on.
How do I got about using those API's? Is there a good example someone can
point me towards? All I would need to do is call the function
(SQLSetConnectAttr) with my parameters and I'm good, right? Please fill me
in.

-Nick

Brannon Jones [MS]
12/16/2003 2:46:27 PM
I'm not sure if this will work for your scenario or not. Read the entry to
SQL_COPT_SS_USE_PROC_FOR_PREP on the following page:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbcsql/od_odbc_s_8cmq.asp.

Unfortunately, this is specific for the SQL Server ODBC driver (produced by
Microsoft, for the Windows platform). It's possible that the Visigenic
driver has a similar option, but you'd need to contact them to find out.

--
Brannon Jones
Developer - MDAC
This posting is provided "as is" with no warranties and confers no rights.


[quoted text, click to view]

Nick DeVore
12/16/2003 3:01:48 PM
Brannon,

Thanks for the reply. I'm realizing though that my original idea of talking
via the API won't work, because I can't reconfigure something that is
already connected. In otherwords, my hope was that I could discover all the
existing connections on a server and then change the settings for those
existing connections, but I soon realized that was a security hole, and I'm
sure you've (Microsoft) have prevented that. So, I really don't think I
have any options, unless the application I'm using will let me send direct
API calls to the client ODBC driver, which I belive is unlikely as well.
Thanks anyway.

-Nick

AddThis Social Bookmark Button