问题标签 [dsn]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
201 浏览

windows-services - Windows 服务能否访问用户 DSN

我已经构建了一个允许用户选择 DSN 的 Windows 服务,该服务将访问它并在其上执行任务。该代码在测试命令行应用程序下运行时不会出错,但在作为实际 Windows 服务运行时会失败。

我的问题是,不允许 Windows 服务访问用户 DSN 吗?是否有任何方法仍然允许用户创建和配置 DSN 以供服务使用?

0 投票
1 回答
2670 浏览

crystal-reports - Crystal 报表,您请求的报表需要更多信息,使用 ODBC DSN 登录

该报告在 Visual Studio 2005 中运行良好,但在 IIS 上部署时失败。它提示,您请求的报告需要更多信息。我认为它需要安装一些 SQL Server 客户端或 Crystal Reports 的服务包。请建议。

0 投票
1 回答
137 浏览

sql - 将 SQL DSN 与 SubSonic 一起使用

我想使用 DSN 创建 SQL 连接。然后我想使用 Subsonic 生成 DAL。请你能给我一些关于该怎么做的指示吗?

0 投票
1 回答
173 浏览

java - 在 java 中连接到 oracledb

我在一家大公司工作,需要连接oracle数据库。它已设置为我可以通过 DSN 连接到它,但我想直接连接到数据库。当我拥有的唯一信息是数据库的名称以及用户名和密码时,我该怎么做。它通过dsn工作正常。

0 投票
1 回答
1608 浏览

windows - 使用 DSN 调用 SQL 加载器

我正在尝试使用 SQL Loader 将一些数据加载到 Oracle 数据库中。是否可以通过指定服务器将数据加载到使用 DSN 而不是 TNS 来调用它?

现在我的命令行看起来像这样:sqlldr uesr/password@tns_id...,我想tns_id用一个指向tns_id. SQL Loader 可以自己从 DSN 中找出 TNS 吗?

0 投票
1 回答
1563 浏览

sql - ASP Classic, SQL 2008, XML Output, and DSN vs DSN-Less Produces Chinese Letters

I've been having a problem for the past month and can't seem to figure out what is wrong. Here's the setup and a little background.

Background:

I have a web-host who was running my website on Windows Server 2003 and SQL Server 2000. One of my webpages returned a result set from a stored procedure from the SQL server as xml. Below is the code:

Stored Procedure:

ASP Page: index.asp

Present:

All was working great, until my host upgraded to Windows Server 2008 and SQL Server 2008. All of the sudden I was getting results like this:

From Browser:

Chinese Characters: Browser http://iphone.rolyrolls.com/chineseChars1.png

From View Source:

Chinese Characters: View Source http://iphone.rolyrolls.com/chineseChars2.png

However, I found that if I use a DSN connection strConn = "DSN=[my DSN Name];User Id=[hidden];Password=[hidden];Initial Catalog=[hidden];" it works perfectly fine!

My current host is not going to support DSN any longer, but that's out of scope for this issue. Someone told me to use an ADO.Stream object instead of a Recordset object, but I'm unsure how to implement that.

Question:

Has anyone run into this and found a way to fix it?

What about that ADO.Stream object, can someone help me with a sample that would fit my code?

0 投票
2 回答
1181 浏览

php - 一个正则表达式来匹配不同位置的部分

我正在尝试使用正则表达式解析 DSN(来自 Symfony 应用程序),以便与辅助应用程序链接,但使用相同的数据库。

我目前拥有的DSN是:

正则表达式为:

(使用preg_match())。这匹配正常,但在我的测试环境中失败,因为 DSN 元素被切换,因此:

我可以切换它们,是的 :-) 但我确信可以使用单个正则表达式从两个 DSN 中提取主机和 dbname 部分,并且我希望能够同时增强我的知识时间;-) 有没有办法我可以做到这一点?

0 投票
3 回答
6367 浏览

ms-access - 将链接表添加到 Access 2003,同时在 MDB 中保留 ODBC 连接信息

我有一个 Access 2003 数据库 MDB,其中所有表都作为 SQL Server 2005 中的链接表存在。MDB 文件包含指向正确 SQL Server 和登录凭据(受信任连接)的所有 ODBC 信息。

我想做的是向 MDB 文件添加一个新的链接表,但是我不确定如何指定 ODBC 连接信息。当我尝试添加新的链接表时,我不断收到提示以查找或创建 DSN 文件。我不想在每台机器上都创建一个新的 DSN 条目,而是希望所有这些信息都存储在 Access MDB 文件本身中。

在现有数据库中,我可以“悬停”在表名上并将 ODBC 连接信息作为工具提示查看。我需要做的就是使用相同的连接信息添加另一个链接表。

我确实可以访问表链接到的 SQL Server。我已经创建了要添加的新表。我只需要找到一种链接到它的方法。

0 投票
3 回答
624 浏览

dsn - 使用两个不同的 DSN 查询

我有一个查询:

“X”表来自一个数据源,“Y”表来自另一个……但数据源之间存在连接。我似乎无法弄清楚如何输入两个不同的连接字符串才能运行。

ConnectionString="Dsn=Xdb;uid=xxx;pwd=xxxxxxx" ProviderName="System.Data.Odbc" ConnectionString="Dsn=Ydb;uid=xxx;pwd=xxxxxxx" ProviderName="System.Data.Odbc"

这可能吗……我只是错过了什么吗?

0 投票
2 回答
3527 浏览

c# - 如何使用 C# 为 SQL Server 创建 DSN?

}

参考: http ://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/441811b9-c4e9-4d15-97a3-7b92d2c9f318

任何人都可以帮我删除以下错误吗?

错误 1 ​​预期的类、委托、枚举、接口或结构 C:\Documents and Settings\Pavan\My Documents\Visual Studio 2008\Projects\CopyDatabase\CopyDatabase\Synchronize.cs 17 23 CopyDatabase

.

错误 2 当前上下文中不存在名称 'SQLConfigDataSource' C:\Documents and Settings\Pavan\My Documents\Visual Studio 2008\Projects\CopyDatabase\CopyDatabase\Synchronize.cs 67 13 CopyDatabase