Article View: borland.public.cppbuilder.database.ado
Article #690Re: ADO SQL Server Stored Proc problem
From: Viatcheslav V. Vassiliev
Date: Wed, 06 Jul 2005 13:58
Date: Wed, 06 Jul 2005 13:58
104 lines
5245 bytes
5245 bytes
You may store connection string in .udl file. This will allow you to use any OLEDB provider. User will be able to double-click this file and configure connection using standard OLEDB configuration dialog. //------------------------------------------ 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:42cbd37b$1@newsgroups.borland.com... > > > 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:
<42cbe37f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!newsread.com!newsprint.newsread.com!in.100proofnews.com!in.100proofnews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42caf1b6$1@newsgroups.borland.com> <42caf2c6$1@newsgroups.borland.com> <42caf8c2$1@newsgroups.borland.com> <42cbc1b7@newsgroups.borland.com> <42cbd37b$1@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: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <42caf1b6$1@newsgroups.borland.com> <42caf2c6$1@newsgroups.borland.com> <42caf8c2$1@newsgroups.borland.com> <42cbc1b7@newsgroups.borland.com> <42cbd37b$1@newsgroups.borland.com> Subject: Re: ADO SQL Server Stored Proc problem Date: Wed, 6 Jul 2005 17:58:22 +0400 Lines: 106 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 85.93.138.132 Message-ID: <42cbe37f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1120658303 85.93.138.132 (6 Jul 2005 06:58:23 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!newsread.com!newsprint.newsread.com!in.100proofnews.com!in.100proofnews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail