dsn

What are the access restrictions on accessing a DSN

风流意气都作罢 提交于 2019-12-08 11:50:07
问题 We are running part of our app as a windows service and it needs to b able to access DSNs in order to import through ODBC. However there seem to be a lot of restrictions found through trial and error on what DSNs it can access. For example it seems that it cannot 1. access a system DSN unless the account that is running the service has admin privileges. (I get an Access Denied error, when trying to connect) 2. access a user DSN that was created by a different user (this one is understandable)

Keyword not supported: 'dsn'

喜夏-厌秋 提交于 2019-12-08 06:35:13
问题 I am trying to publish my site on remote server. My hosting provider has provided my with dsn connectivity through dotnetpanel. When i publish my site i get the error as shown in screenshot. I have also included my web.config file. My web.config is as follows, <?xml version="1.0" encoding="UTF-8"?> <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A

Is this a Microsoft or an Oracle Problem?

我怕爱的太早我们不能终老 提交于 2019-12-07 23:33:45
问题 In my original thread here: How can I fix ORA: 01013 (user requested cancel...) when trying to link Oracle tables in MS Access? I describe an issue attempting to link Oracle tables into a Microsoft Access (office 365) database. The process timed out after entry of a UID and password. As I researched the problem, I was able to determine that the ODBC drivers and DSN work for ADO, Toad, and Microsoft Power BI (when using a specific query against an Oracle table). I was never able to log entries

SSRS: Error while querying data from an Excel file (through ODBC)

喜夏-厌秋 提交于 2019-12-07 17:43:31
问题 I am trying to render a simple chart using SSRS . The data is in an Excel sheet. I have set up an user DSN and created a data source in SSRS using ODBC . I am able to query the excel in Data tab. However while trying to preview, I get the following error: error [hy000] [microsoft] [odbc excel driver] the connection for viewing your linked Microsoft Excel worksheet was lost. Anyone knows why this is happening and how this can be solved? 回答1: I would consider creating a SQL Sever Integration

Keyword not supported: 'dsn'

倖福魔咒の 提交于 2019-12-07 07:51:30
I am trying to publish my site on remote server. My hosting provider has provided my with dsn connectivity through dotnetpanel. When i publish my site i get the error as shown in screenshot. I have also included my web.config file. My web.config is as follows, <?xml version="1.0" encoding="UTF-8"?> <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows

Powershell to read from database using ODBC DSN instead of connection string

偶尔善良 提交于 2019-12-07 04:58:29
问题 I know how to read value from database using connectionstring, i.e. Establish database connection to read $conn = New-Object System.Data.SqlClient.SqlConnection $conn.ConnectionString = "Server=10.10.10.10;Initial Catalog=database_name;User Id=$username;Password=$password;" $SQL = "..." $conn.Open() # Create and execute the SQL Query $cmd = New-Object System.Data.SqlClient.SqlCommand($sql,$conn) $count=0 do{ try{ $rdr = $cmd.ExecuteReader() while ($rdr.read()){ $sql_output += ,@($rdr.GetValue

Check for System DSN and create System DSN if NOT Existing (iSeries Access ODBC Driver)

可紊 提交于 2019-12-06 12:54:41
can someone please help me with this? i need to check through the System DSN for my ODBC connection to the AS400 servier and create a System DSN if a particular one does not exist. i've tried googling and have not been able to find anything good for me. btw, i am quite new to programming. any help will be much appreciated. thank you After going through the few less complicated examples available online, this is what i managed to come up with (and it works fine for me). using System; using System.Runtime.InteropServices; public class ODBC_Manager { [DllImport("ODBCCP32.dll")] public static

Command line to change path to .mdb file for MS Access ODBC System DSN?

谁说我不能喝 提交于 2019-12-06 12:05:37
问题 What odbcconf.exe command line can I use to change the path to the MS Access .mdb file for an already existing System DSN? 回答1: To answer the question as asked, here is a solution using odbcconf.exe instead of going straight to the registry: odbcconf.exe configsysdsn ^ "Microsoft Access Driver (*.mdb, *.accdb)" ^ "DSN=OurConnectionName;DBQ=X:\Path\to\OurMsAccessDB.mdb" Two items of note which had me tripped up for a while: make sure you use 64bit odbcconf.exe when on a 64bit system, see https

Is this a Microsoft or an Oracle Problem?

一个人想着一个人 提交于 2019-12-06 09:58:59
In my original thread here: How can I fix ORA: 01013 (user requested cancel...) when trying to link Oracle tables in MS Access? I describe an issue attempting to link Oracle tables into a Microsoft Access (office 365) database. The process timed out after entry of a UID and password. As I researched the problem, I was able to determine that the ODBC drivers and DSN work for ADO, Toad, and Microsoft Power BI (when using a specific query against an Oracle table). I was never able to log entries in the Oracle V$SQL table from either Access or Excel to further troubleshoot the problem. However,

Connect to MySQL database and fetch data in Julia

百般思念 提交于 2019-12-06 02:55:37
问题 How can I fetch data from MySQL database in Julia? It looks like this package provides tools for connecting to any database, including MySQL. However, it looks like assuming I have to first setup ODBC DSN to connect to it (I don't know what it is in the first place, although I've used MySQL for two years). So I tried to configure it by reading this page at MySQL documentation... but hit the wall immediately. One, I can't find a command named myodbc-installer in my OS X 10.8.5. Two, there is