🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #689

Re: ADO SQL Server Stored Proc problem

#689
From: Glenn
Date: Wed, 06 Jul 2005 12:50
84 lines
4159 bytes

The customer wants to use the ODBC Data Source Administrator program to reconfigure which SQL Server is being pointed to.  
This can be done without re-compiling the application.

Is there some way to do this using the native OLEDB provider?

Thanks.

"Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote:
>Native OLEDB provider is named SQLOLEDB in connection string, "or Microsoft 
>OLEDB provider for SQL Server" in dialogs.
>
>OLEDB provider for ODBC source is no longer supported by Microsoft. 
>Microsoft OLEDB provider for SQL Server is much better for connection to MS 
>SQL Server, using ADO with ODBC is quite buggy and has less features than 
>using native providers. I do not see problem to use it instead of ODBC if 
>you do not required to use DSN. I do not understand what you mean 
>"re-configure connections", native provider can be configured to connect to 
>any MS SQL Server.
>
>//------------------------------------------
>Regards,
>Vassiliev V. V.
>http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + 
>ADO.Net
>http://www.oledbdirect.com - The fastest way to access MS SQL Server,
>MS Jet (Access) and Interbase (through OLEDB)
>
>"Glenn" <glenn.lucas@bowebellhowell.com> �������/�������� � �������� 
>���������: news:42caf8c2$1@newsgroups.borland.com...
>>
>>
>> Unfortunately, I have to use the ODBC connection with C++Builder5.  The 
>> customer wants to re-configure connections.
>> Is that not going to work?
>>
>> Thanks,
>> Glenn
>>
>>
>> "Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote:
>>>Use native OLEDB provider for MS SQL Server, not OLEDB provider for ODBC
>>>sources. Connection string is:
>>>
>>>Provider=SQLOLEDB;Data Source=<ServerName>;Integrated 
>>>Security=SSPI;Initial
>>>Catalog=<databse>;
>>>
>>>it is for Windows authentication. For SQL Server authentication, use User
>>>ID=<User>;Password=<password>; instead of Integrated Security.
>>>
>>>//------------------------------------------
>>>Regards,
>>>Vassiliev V. V.
>>>http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
>>>ADO.Net
>>>http://www.oledbdirect.com - The fastest way to access MS SQL Server,
>>>MS Jet (Access) and Interbase (through OLEDB)
>>>
>>>"Glenn" <glenn.lucas@bowebellhowell.com> �������/�������� � ��������
>>>���������: news:42caf1b6$1@newsgroups.borland.com...
>>>>
>>>> I am using an ADO Stored Proc component to connect with a SQL Server
>>>> Stored Procedure.  The Stored Procedure uses 12 parameters - 7 inputs 
>>>> and
>>>> 5 outputs.  The variable types are integers, strings, and DateTimes.
>>>>
>>>> The problem is when I attempt to set the "Active" flag to "true"
>>>> (either in the Editor or Programmatically), an error popup
>>>> appears with the message:
>>>>
>>>> [Microsoft][ODBC SQL Server Driver]Optional feature not
>>>> implemented
>>>>
>>>> Can someone tell me how I find out what "optional feature" it
>>>> is talking about?
>>>>
>>>> Thanks.
>>>
>>>
>> 
>
>
Technical Details
Message-ID: <42cbd37b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42caf1b6$1@newsgroups.borland.com> <42caf2c6$1@newsgroups.borland.com> <42caf8c2$1@newsgroups.borland.com> <42cbc1b7@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,3cb76cff3d54292
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Glenn" <glenn.lucas@bowebellhowell.com>
Sender: "Glenn" <glenn.lucas@bowebellhowell.com>
Reply-To: "Glenn" <glenn.lucas@bowebellhowell.com>
Subject: Re: ADO SQL Server Stored Proc problem
Newsgroups: borland.public.cppbuilder.database.ado
X-User-Info: 207.235.66.3     
References: <42caf1b6$1@newsgroups.borland.com> <42caf2c6$1@newsgroups.borland.com> <42caf8c2$1@newsgroups.borland.com> <42cbc1b7@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <42cbd37b$1@newsgroups.borland.com>
Date: 6 Jul 2005 05:50:03 -0700
X-Trace: newsgroups.borland.com 1120654203 207.105.83.66 (6 Jul 2005 05:50:03 -0700)
Lines: 85
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail