odbc

VBA ODBC Update

This is the code I'm using to update an SQL database: Public Sub main() Dim cnn As ADODB.Connection Dim rst As ADODB.Recordset Set cnn = New ADODB.Connection Set rst = New ADODB.Recordset cnn.Open "ConnectionName" rst.ActiveConnection = cnn rst.CursorLocation = adUseServer rst.Source = "Update Table ....

How do I encode Unicode strings using pyodbc to save to a SAS dataset?

I'm using Python to read and write SAS datasets, using pyodbc and the SAS ODBC drivers. I can load the data perfectly well, but when I save the data, using something like: cursor.execute('insert into dataset.test VALUES (?)', u'testing') ... I get a pyodbc.Error: ('HY004', '[HY004] [Microsoft][ODBC Driver Manager] SQL data type out o...

Now() In ODBC SQL Query?

I'm trying to update a database field to the current time, but can't pass "now()". I get the following error: 'now' is not a recognized built-in function name. The method I'm using to query the database is as follows: Public Sub main() Dim cnn As ADODB.Connection Dim rst As ADODB.Recordset Set cnn = New ADODB.Connectio...

Rails - MS-SQL Server problems (unixODBC, FreeTDS) on Mac 10.6

Followed the instructions on the Rails wiki and have had success connecting to SQL Server 2000 with TSQL -- both with DSN-less and DNS connections. I'm running Mac OS X 10.6.3. Wiki instructions here. Installed ruby-odbc, dbi (0.4.0), dbd-odbc (2.4.5), activerecord-sqlserver-adapter (2.3.5). In my database.yml (Rails 2.3.6): develop...

How to fix issue with decimal values in Sybase ODBC driver using NHibernate?

Sybase ODBC driver have an issue with the decimal data type. For example, when an application is trying to save in the database a decimal value occurs this error: ERROR [22018] [DataDirect][ODBC Sybase Wire Protocol driver][SQL Server]Implicit conversion from datatype 'VARCHAR' to 'DECIMAL' is not allowed. Use the CONVERT function to...

VBA Easier To Implement, ODBC vs OLEDB?

To create an ODBC connection in VBA, two things are required: Create a ODBC data source Add references in Excel What I'd like to know is if OLEDB has fewer requirements and is easier to implement. ...

Visual Studio 2010 Connect to SQL Server 2000?

We recently upgraded a major application to Visual Studio 2010. Unfortunately, we are still using several database servers that are still running SQL Server 2000 (8.0.2055 to be precise). According to this article (http://blogs.msdn.com/b/habibh/archive/2009/07/27/visual-studio-2010-rip-list-partial.aspx), "Since mainstream support for...

ODBC: when is the best time to create my database?

I have a windows program which generates PGP forms which will be filled in later. Those PHP forms will populate a database. It looks very much like MySql, but I can't be certain, so let's call it ODBC. And, yes, it does have to be a windows program. There will also be PHP forms which query the database - examine which tables and field...

Driver Problem in Sybase

Hi, I am working on XP m\c and right now I don't have sybase install. But My server has the sybase 12.5 (that much I only know). I am using web service to talk to that server. How can I call the data from that server, For this I am using a webservice which has some web methods that are using specific connection string. Right now I am...

Delphi connection to OpenEdge Progress-4GL Database

Folks: Has anyone had success connecting to a Progress-4GL database with Delphi?   I've been unable to establish any connection with the ODBC driver provided by the vendor (Progress OpenEdge 10.1C Driver). I've entered (what I believe are) the right parameters, but keep on getting an error whenever I test the connection: "[Data...

Which .NET data provider?

I am new to database programming, so I'd like help getting on the right track. I have read that there are Microsoft-defined and third-party data providers for data access. MSDN has information on data providers for SQL Server, OLE DB, ODBC, Oracle, as well as the EntityClient provider (Entity Framework). Which data provider is today's ...

Doubt about odbc's in c#

Hello, I run a c# process and in the middle of the night this happens: ERROR [HY000][DataDirect][ODBC Sybase Wire Protocol driver] Timeout exceeded I know for sure that the database is allways active! But this keeps happening! Do you how can I fix this error? Thanks in advance! EDIT: is there a way to put the timeout four times big...

Call Oracle package function using Odbc from C#

I have a function defined inside an Oracle package: CREATE OR REPLACE PACKAGE BODY TESTUSER.TESTPKG as FUNCTION testfunc(n IN NUMBER) RETURN NUMBER as begin return n + 1; end testfunc; end testpkg; / How can I call it from C# using Odbc? I tried the following: using System; using System.Data; using System.Data.Odbc; class ...

ODBC: how to handle Booleans?

Disclaimer: I am a n00b. It seems like ODBC does not support a BOOLEAN type? Is this true? If so, what's the standard kludgearound? Edit: I am using ADO with Delphi on Windows to write the data, but PHP 5 to read it back. ...

ODBC How to store a variable length array of strings?

Y.A.N.Q. (yet another n00b question). I have managed to design my db, defining tables & columns. I have even got code to access the db, yay! Now, one bit that I haven't yet gotten to in the "MySql weekend crash course". Let's say that I want to store something like "notes" which is a TStringList sort of thing. A list of strings which...

Any way to install myodbc 2.50.39-nt on a 64bit windows 7 computer?

Is there anyway to install myodbc 2.50.39-nt on a 64bit windows 7 computer? (it says 'the version of this file is not compatable with the version of windows that you are running') I have a few old VB6 programs that use it (almost all of it has been moved to a private intranet) If it isn't possible, it looks like the newer version of myo...

MySql ODBC connection in VB6 on WinXP VERY slow. Other machines on same network are fast.

Hi All, I have a VB6 application that has been performing very well. Recently, we upgraded our server to a Windows 2003 server. Migration of the databases and shares went well and we experienced no problems. Except one. And it has happened at multiple sites. I use the MySQL ODBC 5.1 connector to point to my MySQL database. On identical...

ODBC Connection String for PHP with Obscure Driver

I'm attempting to connect to a database via ODBC, and I am finding no help through Google/the internet. Our ERP uses OMNIS as a framework, which provides an ODBC driver for querying OMNIS' proprietary database outside of the program. I've created the driver and DSN, but I cannot begin manipulating data or sending queries with PHP. The ...

ODBC timeout error on simple query.

We are getting the following ODBC timeout errors when executing sql code against a SQL Server database. "Connectivity error: [Microsoft][ODBC SQL Server Driver]Timeout expired" "S1T00" The confusing thing here is that our stack dump says that the SQL code it is executing when the timeout occurrs - is very simple: SELECT @@TRANCOUNT AS...

Omnis 7 and SQLServer connection issue

This is probably a long shot, but I thought I would ask anyway.. I have an application I wrote back in the 90's in Omnis 7.3.5 that is still running (kind of like the Energizer Bunny..just keeps on going!) Its had no maintenance for years... The application accesses a Sybase database which is hosted on an elderly Unix box that needs to...