从 JAVA 8 连接到 SQL Server 2005

2024-04-22

正在准备一些代码用于从 VB&SQL Server 迁移到基于 JAVA&Oracle DB 的新解决方案,因此我尝试连接 SQL Server 来查询一些数据,然后将它们放在我们新的 Oracle 表中,但是当我尝试通过此连接时代码:

DriverManager.registerDriver(new com.microsoft.sqlserver.jdbc.SQLServerDriver());
Connexion con = DriverManager.getConnection("jdbc:sqlserver://192.168.10.97:1433;databaseName=ArchiveCCE", "test", "test"); 

它一直向我显示以下错误:

déc. 31, 2018 3:04:14 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: c199c628-c3c8-4850-8252-9446b6c90cab Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:14 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: f468dbd4-f340-4e6a-a6ab-103350c3a547 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:14 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: 8c96557e-88a6-4745-a1c6-f839bfc44142 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:15 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: 2987d710-3007-47a9-bfaa-2573c79ef049 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:15 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: f5f84cb6-33ac-4dc7-a500-cdb957470d01 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:16 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: f7eaa8cc-0a65-455b-bc8d-df64b18f0532 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:17 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: a223c4aa-f1c6-47c4-b40c-1d39a5a03db0 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:18 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: d822a2b8-8387-43ba-a814-6dade9f71e5f Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:19 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: d152a753-708b-4bcb-aa2e-87b5346911df Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:20 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: 1dba43a1-e6e3-4dc7-9707-42ba909a30aa Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:21 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: 193ee01c-f0b8-4e0c-8e06-77f4bde7ef5c Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:22 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: 34a6c52e-bbad-44a5-a4c3-acb712bf7a2a Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:23 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: 4bbfa516-99db-49bc-8648-657627b3010d Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:24 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: ea3649d5-1adc-4dd4-a340-a2d0d95e8af3 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:25 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: ad4d76d7-77ca-4686-ab2a-3f802f36d533 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:26 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: bbaa643f-1b0c-4d92-b5ff-81efb1f09a83 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:27 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: dcbff2e2-1673-435e-b1a8-de5ea610fc77 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
com.microsoft.sqlserver.jdbc.SQLServerException: Échec de la connexion TCP/IP à l'hôte 192.168.10.97, port 1433. Erreur : « Le pilote a reçu une réponse de préconnexion inattendue. Examinez les propriétés de connexion et vérifiez qu'une instance de SQL Server est en cours d'exécution sur l'hôte et accepte les connexions TCP/IP au port. Ce pilote peut être utilisé uniquement avec SQL Server 2005 ou ultérieur. ». ClientConnectionId:dcbff2e2-1673-435e-b1a8-de5ea610fc77

SQL Server 测试用户 https://i.stack.imgur.com/6uVl8.png

我验证了SQL Server TCP/IP是否已启用,我验证了端口号(1344),我验证了身份验证方法(SQL身份验证)我什至自己创建了用户“test” PW:“test”,不要知道如何建立连接!

有人可以帮我吗?


None

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

从 JAVA 8 连接到 SQL Server 2005 的相关文章

随机推荐

  • 防止 RichTextBox 自动滚动

    我有一个使用 RichTextBox 控件实现的只读数据记录窗口 我希望能够禁用用户单击控件时发生的自动滚动 以便用户可以选择特定日志进行复制 粘贴操作或其他操作 然而 一旦用户单击 RichTextBox 它就会自动滚动到底部 这使得这变
  • 在上下文中绘图时如何翻转坐标?

    我从 UIImage 创建一个上下文 然后使用 CGContextDrawImage bitmapContext CGRectMake 0 0 originalImage size width originalImage size heig
  • 适用于 BlackBerry 的 QR 码阅读器

    是否有 BlackBerry 库 组件 开源或商业 可集成到我自己的应用程序中充当 QR 码阅读器 我想将它完全集成到我的应用程序中 或者 有没有办法使用开源中兴图书馆 http code google com p zxing 与相机结合使
  • UIViewController 的 viewDidAppear 在模式关闭后不会被调用

    UIViewController 视图 A 通过将另一个视图控制器 视图 B 作为模态控件调用来调用它 自我呈现模态视图控制器 视图是动画的 TRUE 视图 B 通过调用而存在 自我解雇ModalViewControllerAnimated
  • 禁用 youtube api 的全屏

    我有一个带有片段的应用程序 在这些片段内我有框架布局 我在其中添加了 YouTubePlayerSupportFragment 但是当我单击全屏时 会引发此异常 java lang RuntimeException 无法启动活动 Compo
  • 使用 Spring 映射嵌套 json 和 POJO

    我正在实现一个 REST API 它使用 json 发送和接收数据 我对这个 API 设计完全陌生 我正在使用 Spring 框架和 requestbody responsebody 进行映射 最初 我有一个这样的 pojo public
  • 通过 ID 从 Firebase 检索 Java 对象

    我正在编写一个 Android 应用程序 我正在尝试检索该类的对象User java按 Firebase 相关表中的 ID 我想知道如何从Java端获取它 只要我尝试了中所述的示例Firebase 官方文档 https www fireba
  • 时间戳转字符串日期

    我不知道如何将时间戳转换为日期 我有 public void onCreate Bundle savedInstanceState super onCreate savedInstanceState setContentView R lay
  • 实体框架、外键和EntityKey

    我的实体框架和外键有问题 我有一个表 BC Message Assets 其中有 3 个 FK MessageId AssetId 和 StatusId 我像这样创建我的 MessageAsset MessageAsset messageA
  • 如何快速将6字节无符号整数复制到内存区域?

    我需要将 6 字节整数值复制到内存区域中 从其开头开始并尽可能快地复制 如果硬件支持这样的操作 我想使用它 我现在使用的是 x64 处理器 编译器是 GCC 4 6 3 The memset不适合这项工作 因为它只能复制字节 这std fi
  • 无法在 Ubuntu 16.04.2 LTS 上启动 docker(初始化 graphdriver 时出错)

    使用systemctl启动docker时遇到以下错误 Job for docker service failed because the control process exited with error code See systemct
  • 查找给定纬度/经度的位置(邮政编码、城市、州)的最快方法

    我需要一个免费 开源 的解决方案 给定纬度 经度可以返回最近的城市 州或邮政编码 mysql 不是一个选择 如果可能的话 小型轻量级数据库将是最好的 更新 没有网络服务 每天有 5000 万次展示 即使是最小的插件也会造成伤害 因此添加服务
  • 画布图像的图像效果不通过 php 上传保存,但适用于下载同一画布文件

    这是显示该问题的 YouTube 视频 https www youtube com watch v znzLQSYlsKM https www youtube com watch v znzLQSYlsKM 我给出了视频描述中涉及的所有代码
  • AngularJS 从文本创建 html/link/anchor (escape/unescape html in view)

    我有一个具有指定值的控制器 scope post please visit http stackoverflow com quickly 我的 html 中有一些文本 p post p 我想制作一个可点击的网址链接 用锚标记包围它 我尝试将
  • 使用 HTML5sortable 序列化 AJAX 数据

    我正在使用一个简洁的 jQuery 排序插件 HTML5 Sortablehttp farhadi ir projects html5sortable http farhadi ir projects html5sortable 但还没有找
  • OpenGL 将着色器附加到程序

    有没有办法访问附加到程序的着色器 也就是说 给定一个程序 我可以做类似的事情 vertexShader getVertexShaderFromProgram program 我想在验证我的程序的函数中记录着色器编译状态 但我只保留对程序的引
  • 指定回归线截距(R & ggplot2)

    背景 我当前的情节如下所示 PROBLEM 我想强制 station 1 的回归线从 1 开始 CODE library ggplot2 READ IN DATA var x c 2001 2002 2003 2004 2005 2006
  • 颤振上的 ERROR_ALREADY_REQUESTING_PERMISSIONS

    我使用 flutter 创建一个 android 应用程序 在应用程序运行时第一次创建权限请求 因此当用户单击拒绝然后单击登录按钮时 会再次请求权限 我收到这个错误 Exception has occurred PlatformExcept
  • jquery 移动列表视图样式

    我正在尝试设置列表视图控件的样式 但遇到问题 当我将图像宽度设置为 40px 如标记中所示 时 我似乎无法让内容正确地向左对齐 IE 我不想要图像和文本之间的间隙 这是我的标记 ul class ui listview li class u
  • 从 JAVA 8 连接到 SQL Server 2005

    正在准备一些代码用于从 VB SQL Server 迁移到基于 JAVA Oracle DB 的新解决方案 因此我尝试连接 SQL Server 来查询一些数据 然后将它们放在我们新的 Oracle 表中 但是当我尝试通过此连接时代码 Dr