odbc

Cannot execute synonym stored procedure with SQL Server ODBC Driver; works with OLEDB

大城市里の小女人 提交于 2019-12-18 09:11:47
问题 This question is part in a series of bugs in the Microsoft ODBC driver: ODBC driver fails to raise errors; but instead suppresses them Reading columns out of order returns incorrect results Cannot execute a stored procedure that is a SYNONYM Microsoft has said they will not be fixing these bugs in their ODBC driver. I have (many) stored procedures that are actually synonyms. The stored procedure exists canonically in one database, but are visible in others. The stored procedure executes fine

Force SET IDENTITY_INSERT to take effect faster from MS Access

巧了我就是萌 提交于 2019-12-18 09:08:07
问题 I'm working on upsizing a suite of MS Access backend databases to SQL Server. I've scripted the SQL to create the table schemas in SQL Server. Now I am trying to populate the tables. Most of the tables have autonumber primary keys. Here's my general approach: For each TblName in LinkedTableNames 'Create linked table "temp_From" that links to the existing mdb' 'Create linked table "temp_To" that links to the new SQL server table ExecutePassThru "SET IDENTITY_INSERT " & TblName & " ON" db

Generic SQL that both Access and ODBC/Oracle can understand

给你一囗甜甜゛ 提交于 2019-12-18 07:11:06
问题 I have a MS Access query that is based on a linked ODBC table (Oracle). I'm troubleshooting the poor performance of the query here: Access not properly translating TOP predicate to ODBC/Oracle SQL. SELECT ri.* FROM user1_road_insp AS ri WHERE ri.insp_id = ( select top 1 ri2.insp_id from user1_road_insp ri2 where ri2.road_id = ri.road_id and year(insp_date) between [Enter a START year:] and [Enter a END year:] order by ri2.insp_date desc, ri2.length desc, ri2.insp_id ); The documentation says:

Powershell Script - Open Excel, Update External Data, Save as

≡放荡痞女 提交于 2019-12-18 06:55:15
问题 Is anyone able to help me with this script. $file = 'C:\Scripts\Spreadsheet.xlsx' $x1 = New-Object -ComObject "Excel.Application" $x1.Visible = $false $enddate = (Get-Date).tostring("dd-MM-yy") $filename = 'C:\Scripts\Spreadsheet ' + $enddate + '.xlsx' $wb = $x1.workbooks.Open($file) $wb.refreshall $wb.SaveAs($filename) $wb.Close() $x1.Quit() Remove-Variable wb,x1 The workbook opens and updates its pivot table with external data through an ODBC connection. When you open the workbook manually

Connect to remote PostgreSql database using Powershell

泪湿孤枕 提交于 2019-12-18 06:45:12
问题 I'm trying to connect to a remote PostgreSql database using powershell. This is my first time using powershell so I'm sorry if this is a noob question. This is my Code: $DBConnectionString = "Driver={PostgreSQL UNICODE}:Server=$MyServer;Port=$MyPort;Database=$MyDB;Uid=$MyUid;Pwd=$MyPass;" $DBConn = New-Object System.Data.Odbc.OdbcConnection; $DBConn.ConnectionString = $DBConnectionString; $DBConn.Open(); $DBCmd = $DBConn.CreateCommand(); $DBCmd.CommandText = "SELECT * FROM mytable;"; $DBCmd

How can I add a password to this JDBC:ODBC connection string that is trying to connect to an MS Access database

只愿长相守 提交于 2019-12-18 05:17:12
问题 This is the connection string that is currently working on a non-password protected MS Access database. this code snippet is from our properity file: db.url = jdbc:odbc:Driver\={Microsoft Access Driver (*.mdb)};Dbq\=C:\Inventory.mdb;DriverID\=22;READONLY\=true How do I add a password to this connection string for a MS Access DB protected by a database password ( Non-ULS )? Thanks! 回答1: Referenced from here: Java Support db.url = jdbc:odbc:Driver\={Microsoft Access Driver (*.mdb)}Dbq\=C:

How to fix the [unixODBC][Driver Manager]Data source name not found, and no default driver specified (ODBC::Error)

不问归期 提交于 2019-12-18 04:47:12
问题 /local/rvm/gems/ruby-1.9.2-p320/gems/activerecord-sqlserver-adapter-3.2.12/lib/active_record/connection_adapters/sqlserver_adapter.rb:455:in `initialize': IM002 (0) [unixODBC][Driver Manager]Data source name not found, and no default driver specified (ODBC::Error) I have working copy of my app but suddenly overnight I left my system like that and this error started surfacing. Can anyone tell how to fix this one please? 回答1: There is no definitive answer to your question since you gave us

ODBC Excel Driver: Unexpected error from external database driver

怎甘沉沦 提交于 2019-12-18 04:17:45
问题 Since the Windows update from October 10, the ODBC Excel drivers have stopped working. We get the following error when trying to read a file: "Unexpected error from external database driver (1)" We open Excel files in Delphi using an ADO connection with the following connection string: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyExcel.xls;Extended Properties="Excel 8.0;HDR=Yes;IMEX=1"; I can get it to work by switching to Microsoft.ACE.OLEDB.12.0, but for that to work, all our customers

Oracle ORA-12154: TNS: Could not resolve service name Error?

元气小坏坏 提交于 2019-12-17 23:34:53
问题 I am a SQL Server user . I am on a project that is using oracle (which I rarely use) I need to create an ODBC connection so I can access the some data via MS Access I have a application on my machine called oraHome90. It seems to allow a configuration of something called a listener in a “net configuration utility”, I think that a “Local Net Service Name Configuration” needs to also be done. The IT support gave me this information to set up the ODBC connection . I have tried every combination

install odbc driver to azure app service

强颜欢笑 提交于 2019-12-17 21:32:49
问题 I am running a simple Python web app in the Azure app service that needs to acces an Azure SQL database. In order to que an Azure SQL database from python one needs to install the ODBC driver. I have done that at my local machine and it works perfectly. How do I install the ODBC driver at the Azure machine that is running my app or if it is nescessary at all? 回答1: Per my experience , the Azure Web App Service Runtime is Windows system. That does not require a reload driver. I tried to access