SQL Connectivity (OpenInsight 32-Bit)
At 15 MAR 2008 08:06:07AM Martin Drenovac wrote:
I've checked this forum prior to posting, so apologies if I might have missed something.
Am trying to set up an SQL Connection to my own local SQL server, and thru the C/S workspace Query windows - get a "Unable to connect to SQL" error message.
Under DOS, both the osql and sqlcmd commands must be primed with -Shostname\SQLEXPRESS (in this case) -Usa -Ppassword - and both connect up.
I have tried both variations of the Connection setup with the host param having /not having the SQLEXPRESS portion.
Can someone possibly help me with the connection setup.
TIA
At 15 MAR 2008 08:39AM Martin Drenovac wrote:
I've gone ahead and made an ODBC cnx to this server, and then gone back into C/S and made a cnx via ODBC - works perfectly.
But, I don't want ODBC.
Thanks again
At 16 MAR 2008 11:18PM Bob Carten wrote:
Martin,
We have not updated the direct-connect drivers in some time.
They work with older versions of SqlServer whose direct connectivity is based on DBLIB. Microsoft no longer supports DB-Lib connectivity.
See this post at http://www.mydatabasesupport.com/forums/ms-sqlserver/219870-dblib.html
ODBC drivers used to be much slower than the direct connect drivers. That is not longer true.
If you are using OpenInsight forms to edit Sql Data then you should just use the ODBC drivers. However, I find setting up ODBC connections is cumbersome. If I am passing data back and forth in programs then
I like to use OLE/DB drivers with ADO objects. OLE/DB is Microsoft's acronym for the current generation of ODBC Driver; ADO is the acroynm for the OLE technology which supercedes the Connection object / Queryobject functions in OpenInsight. ADO is as a set of OLE objects. I find it pretty easy to google for "ADO vbscript Example", find one that does what I want, then translate to OpenInsight's OLE syntax.
I posted an example of How o update an Identity column in Mssql a while back. I could post simpler examples if that would help.
HTH
- Bob
At 17 MAR 2008 12:18AM Martin Drenovac wrote:
Cheers Bob - I will try these tonite, and get back to you.
So, will you rework the SQL interface or it's just a case of using the ODBC as the only mode forward?
I've just read your ADO article, and that might do me until my next stumble.
Thank you very much.
At 17 MAR 2008 10:24AM Bob Carten wrote:
Given that Microsoft has deprecated using direct-connect drivers, we have no plans to re-work the direct connect functionality. Changing our dataset and data warehousing modules to use ADO would make more sense, but that is not in our schedule yet.
- Bob
At 17 MAR 2008 02:09PM dsig@sigafoos.org wrote:
As bob mentioned the odbc drivers are very fast and allow for connecting the the same way to multiple environments.