odbc

odbc call failed [microsoft] [sql server native client 11.0] [sql server] the multipart identifier coild not be bound

不羁岁月 提交于 2019-12-24 09:59:23
问题 I have two queries, which use tables linked using an ODBC database, both are simple enough and individually work fine. Query #1: SELECT People.First_name, People.Last_name, Awards.[Award Name], Recipients.Affiliation, Recipients.Recipient_Award_Comments, Recipients.Recipient_Date, People.PersonID FROM People INNER JOIN (Awards INNER JOIN Recipients ON Awards.AwardID = Recipients.AwardID) ON People.PersonID = Recipients.PersonID; Query #2: SELECT Awards.[Award Name], People.First_name, People

Access to Sql Server via ODBC from C# : ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

眉间皱痕 提交于 2019-12-24 09:49:36
问题 I have a System DSN configured and test ok : Microsoft SQL Server Native Client Version 10.00.2531 Data Source Name: xxx Data Source Description: xxx Server: SERVER\SHARE Use Integrated Security: Yes Database: yyy Language: (Default) Data Encryption: No Trust Server Certificate: No Multiple Active Result Sets(MARS): No Mirror Server: Translate Character Data: Yes Log Long Running Queries: No Log Driver Statistics: No Use Regional Settings: No Use ANSI Quoted Identifiers: Yes Use ANSI Null,

DSN-less connection to mysql server in ms-access not remembering user name and password

北战南征 提交于 2019-12-24 09:39:45
问题 For ease of distribution I want all the mysql linked tables to be DSN-less. I also want to be able to relink the tables to a different server easily (for test purposes), so I'm doing the link setup in vba code. This is the code I use to setup/refresh any links: Private Sub relink_mysql_tables(mysql_connection As String) Dim db As Database Set db = CurrentDb() Dim tbldef As TableDef For Each tbldef In db.TableDefs If (tbldef.Attributes And TableDefAttributeEnum.dbAttachedODBC) Then tbldef

How to get name of ODBC driver's DLL file for a given ODBC driver

微笑、不失礼 提交于 2019-12-24 08:57:14
问题 How do I programatically get the name of an ODBC driver's DLL file for a given ODBC driver. For example, given "SQL Server Native Client 10.0" I want to find the name of that driver's DLL file: sqlncli10.dll. I can see this in REGEDIT in the "Driver" entry in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI. If I try to read the value from the registry in my code it returns an empty string. I also tried using the ODBC API function SQLDrivers. The code below successfully

ODBC xlsx driver connectionstring without header

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 08:56:06
问题 I am connecting to xlsx files via ODBC with following command: "DRIVER=Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb);HDR=YES;IMEX=1;READONLY=TRUE;DBQ=C:\Temp\test.xlsx" It works fine but I am always missing one line when there is no header in the file. Obviously it's because of the parameter "HDR=YES" but I cant figure out how to disable the header line. I have tried "HDR=NO" and leaving this parameter out but no effect. I can access to the file but I always lose the first line. Can

SQL anywhere query error: Not enough values for host variables

左心房为你撑大大i 提交于 2019-12-24 08:31:37
问题 I am building a query using ODBC command object in .Net with multiple parameters being passed in. When executing the query against SQL Anywhere, I get the following error. (The same code works against SQL Server). [System.Data.Odbc.OdbcException] = {"ERROR [07002] [Sybase][ODBC Driver][SQL Anywhere]Not enough values for host variables"} The command object has the same number of parameters added as the place holders ('?') in the query. Following is a simple query and C# code that fails the

pyodbc.OperationalError: ('HYT00', u'[HYT00] [unixODBC][Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired (0) (SQLDriverConnect)')

家住魔仙堡 提交于 2019-12-24 08:17:13
问题 I am getting, self.cnxn = pyodbc.connect(self.connStr) pyodbc.OperationalError: ('HYT00', u'[HYT00] [unixODBC][Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired (0) (SQLDriverConnect)') while connecting to sql-server database.I am reading the server information,username,password of the database from the .ini file.But i am not able to connect to the db.Can anyone help me to resolve this?(Refer the Below Code) def connectDB(self): config = configparser.ConfigParser() config.read(

Linked server INSERT, UPDATE and DELETE fails with “Unknown provider error”

牧云@^-^@ 提交于 2019-12-24 08:09:43
问题 Suddenly INSERT, UPDATE and DELETE fails for a certain file (a table in a remote system which I believe is an AS/400). The linked server that we make use of is set up in SQL Server, and it's using an ODBC data source (DSN). The Data source is an "ODBC-data source for iSeries Access for Windows". Only one single table has this problem. We can make inserts and updates in other tables using the same linked server, without any errors, and SELECTs still work for the problematic table. We get these

Locating ODBC Driver 13.0 for SQL Server on Ubuntu Azure VM

╄→гoц情女王★ 提交于 2019-12-24 07:46:25
问题 I have a python script that requires ODBC Driver 13.1 for SQL Server to connect and write to a SQL Server. I am trying to setup the script on a Linux VM running Ubuntu 16.04 on Azure. I am having trouble locating the location of the driver to use in my script. I have followed the instructions here on installing ODBC and it appears to have installed successfully. However, whenever I look for where it has installed on my system, I cannot find it. On my local machine, I am passing the

Can't connect to MS Access DB with Windows-64bit [duplicate]

强颜欢笑 提交于 2019-12-24 07:31:11
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: Microsoft Access and Java JDBC-ODBC Error I had issues with creating my DB to begin with. I have a 64bit version of Windows 7 and found out the error was with Microsoft Office being 32bit. I was able to create my Access database by using the odbcad32.exe found in c:\Windows\sysWOW64\odbcad32.exe Now in my Java code I am simply trying to get connected but am running into issues again that seem to be related,