odbc | odbc driver written in go | Database library
kandi X-RAY | odbc Summary
kandi X-RAY | odbc Summary
odbc driver written in go. Implements database driver interface as used by standard database/sql package. It calls into odbc dll on Windows, and uses cgo (unixODBC) everywhere else. To get started using odbc, have a look at the wiki pages.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of odbc
odbc Key Features
odbc Examples and Code Snippets
Community Discussions
Trending Discussions on odbc
QUESTION
I've created a simple VBA interface to connect Excel to a MySQL DB. The VBA part acts as a preview of data for the user to choose what item he wants to import to the Excel sheet.
Until now I've work with a very complete set of data, but I got to a Table which (because of the nature of the items) some fields are NULL.
Now every time I try to check the values in the VBA I get the Run-time error 13 Type mismatch in the listview component. At first I though it was a field with DECIMAL typing, but after changing it to a DOUBLE (for testing) the problem persisted, and it was until I notice that if only checks columns with no NULL value, the problem disappears. Off course I can't omit this values.
I tried some .Tostring functions but with no success. And I failed to implement a IF to check for NULL in the obj.
This is my code:
...ANSWER
Answered 2021-Apr-13 at 10:28If you don't want to add a IsNull
-function in you SQL (as Nathan_Sav suggested as a comment): There is a IsNull
-function in VBA. With that, you can create a simple function that returns for example an empty string (or a 0 or whatever you prefer):
QUESTION
I have been trying to install Angular but everytime this part:
@angular/cli@12.0.3 postinstall C:\Users\Marco\AppData\Roaming\npm\node_modules@angular\cli
node ./bin/postinstall/script.js
Seems to throw an error. I'm not sure if I need this to work or not so I'll leave the last couple lines of the log here.
...ANSWER
Answered 2021-Jun-12 at 16:10I fixed it by going to the actual file location of script.js and running the node command with that path. Like this:
node AppData/Roaming/npm/node_modules/@angular/cli/bin/postinstall/script.js
Actually that only helped a little bit. The problem was I was trying to install Angular using ConEmu GitBash and I should've been using cmd.
QUESTION
I have a Perl script which used this connection string to write to an MS Access DB. It worked for Microsoft 365:
...ANSWER
Answered 2021-Jun-12 at 08:50The short issue and story is simply that with Access 2019 (and 2016) CTR (click to run - which is most installations,then installing Access does not expose a registered copy of ACE).
[...]
So, you need to install the ACE data engine (not access). Installing ACE from here should do the trick: https://www.microsoft.com/en-us/download/details.aspx?id=54920
QUESTION
im trying to make a connection to an as400 with db2 using pyodbc and the ibm db2 odbc driver.
...ANSWER
Answered 2021-Jun-11 at 20:39The proper driver name should be IBM i Access ODBC Driver
(but see notes below). Other than that, your first example was correct:
QUESTION
I am trying to access a SQL database from my PHP code. I am currently using XAMPP 8.0.6 with PHP 8.0.6. This is also not working on a machine with PHP 7.4.19 and the relevant extensions installed.
Installed drivers / extensions:
- sql-srv: php_sqlsrv_80_ts_x64.dll
- sql-pdo: php_pdo_sqlsrv_80_ts_x64.dll
- OBDC drivers: 10.0.19041.1
The sqlsrv and sql-pdo are placed correctly in the php.ini. Connecting to the database using the OBDC gui, I get a successful connection.
The code that I am trying to get data from the database with is:
...ANSWER
Answered 2021-Jun-11 at 18:24Try updating SQL Server
drivers!!
You probably can find those drivers by Googling "Download ODBC Driver for SQL Server
".
In my case, verion 17 or above fixed the issue.
Also, try the PDO-SQL-Server example (maybe PDO implementation works).
Example:QUESTION
Tried to list all the ledgers from tally through odbc. got nothing. Mycode is as follows, no errors while executing. but not displaying the list of ledgers into the datagridview1
...ANSWER
Answered 2021-May-02 at 07:39I am curious what database you are using that requires ODBC and does not have a specific provider.
I have divided your code into user interface code and database code. This makes it easier to maintain.
Database objects like Connection, Command, and DataReader must be closed and disposed. Using...End Using
blocks take care of this even it there is an error.
You can pass the CommandText
and Connection
directly to the constructor of the Command
.
Don't hold the connection open while you update the user interface. Comparatively, this is a long process and too long to keep a connection open
This doesn't make any sense. You are resetting the DataSource
to the same value numerous times. But, it won't work anyway because a DataReader is not a valid DataSource
. See https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.datagridview.datasource?view=netframework-4.8&f1url=%3FappId%3DDev16IDEF1%26l%3DEN-US%26k%3Dk(System.Windows.Forms.DataGridView.DataSource)%3Bk(TargetFrameworkMoniker-.NETFramework%2CVersion%253Dv4.8)%3Bk(DevLang-VB)%26rd%3Dtrue#remarks
QUESTION
Connecting PowerBi report to mysql google cloud in order to have an automatic PowerBi service refresh . I' have tried to connect my msql database to an odbc driver and then connected to power bi it worked but only when i m online i want a solution to refresh my report even when my pc is off thank for helping me i really need a solution as soon as possible.
...ANSWER
Answered 2021-Jun-10 at 13:58I am even new to this. If you are using direct Query to get the data from the database it will be possible to refresh the Data even if the PC is off.
As far I know, in Power Bi desktop it doesn't support connect to ODBC data source using DirectQuery mode because for some data sources, an alternative approach is available: connect directly to the data source using DirectQuery.
I could help you with the reference which might help you to set it up: Enabling Direct Query for an ODBC based connector.
QUESTION
I'm building a GUI that allows users to search information in a ms access database (yup. It has to be the ms access) The user has a textfield where he can type his search and the Tableview should update instantly. At the moment the DB disappears whenever you type a letter in the field.
Took me a while to figure out the problem: my SQL statement is simply not right. (Thanks to model.lastError)
The whole function looks like this:
...ANSWER
Answered 2021-Jun-10 at 12:42MS-Access needs a double apostrophe like:
QUESTION
I am being forced to use an ODBC source for SSRS report builder, source is Impala SQL, which doesn't support the use of parameters. So I had to use a string builder function to get parameters into my script. This is working well, however the ask was to allow for multiple values in the text parameter. I am not sure how to get those values into a syntax that will allow the script to execute correctly, i.e. each value wrapped single quotes with a comma separation.
Currently working, single value parameter code: ...member_id = ' "&Parameters!MemberSearch.Value()&"'...
Original dataset has 17+million records and runs out of memory when attempting to use the filters instead of parameters.
Any help is greatly appreciated.
...ANSWER
Answered 2021-Jun-10 at 00:02JOIN can be used to convert an array into a string.
QUESTION
Problem:
front-end page make x parallel requests (let's call it first group), the next group (x request) will be after 5 seconds, the first request (of the first group) set the cache from DB. the other x-1 requests got empty array insted of wait to first request to done his job. the second group and the all next requests got proper data from cache.
What is the best practics to lock other threads until the first done (or fail) in stateless mechanism?
EDIT:
The cache module allow use trigger of set chache but it's not work since it stateless mechanism.
...ANSWER
Answered 2021-Jun-07 at 15:04As workaround i add "finally" scope to remove lock-key from cache after first initiation, and this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install odbc
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page