SQL Server 2012连接不上服务器问题

如何从零使用Java eclipse连接SQL server2012数据库 网上有很多连接文章差不多都是鱼龙混杂,我安装的时候也是费了很大的气力,所以我独立整理出了一封,希望对读者有用。 事先,下载好SQL2012安装包(这里就不提供下载的路径了)、JDBC驱动包。 一、如何配置SQL2012 1、 在这里就不再赘言如何安装SQL2012的安装方法了,因为到这里找如何用Java连接数据库的人都有一定基础的。 这里需要强调的是下图,要将身份模式验证模式改成混合模式并设置密码... 阅读详情
最近,因为学习了数据库课程,所以下载安装了SQL Server 2012,但是安装后,一直显示无法连接到服务器,或者实例错误,如下图;

在这里插入图片描述
为了解决这个错误,我搜了各种blog,csdn,百度,其中也提供好多种方法,但巧不巧没有适合我的方法,哎~

最后,气得我把它卸载了,重新安装了一遍,依旧错误不改,还费了我好几G流量(在老家,没WiFi,现在想想做的无用功就心疼,哭辽~)

直入主题,我为了覆盖原来的实例也是为了新建的实例去碰碰运气,重新过一遍安装过程,敲黑板,划重点来了,只是将之前选择的“混合模式(SQL Server 身份验证和 Windows 身份验证)”改为"Windows 身份验证模式",之后一切与原来安装步骤相同。
在这里插入图片描述
再次输入你的设备名称,直接连接完成。
在这里插入图片描述
设备名去哪里找?
途径一:右键单击“我的电脑”,点击“属性”,如下图;
在这里插入图片描述
途径二:点击左下角“开始”键,点击“设置”图标,点击“系统”;
在这里插入图片描述
点击“关于”;
点击关于
赫然的大字:设备名称,被你找到了
在这里插入图片描述

赶紧去试一试吧,希望你和我的问题一样,希望我能帮助到你!

Java连接SQL Server 2012 最近由于一个数据库项目作业,需要用到Java+SQL Server,貌似Java+Oracle会比较好点,但是为了应用课程所学的数据库SQL Server,所以只好这样搭配o(╯□╰)o。 整一个连接过程步骤还挺繁琐的! 1.首先是要把身份认证形式改为SQL Server 身份认证,如果是选择了Windows 身份认证,则需要改为SQL Server 身份认证。 阅读详情

相关推荐

VS2012和SQL Server2008的兼容问题

我先说一下,刚开始我并不知道这是VS2012和SQL Server的兼容问题。由于最近要进行二期的考试系统维护,但是由于原有的考试系统需要用VS2012,而我的VS是2010的,版本太低,无法打开考试系统,所以不得已又安装了VS2012。本来系统盘空间就不够了,而VS2012又是默认装到系统盘的,没办法又折腾着给系统盘扩空间。在这里顺便提一下,360的分区助手真的很好用,呵呵,没有做广告的嫌疑,有

不忘初心 1万+

错误提示之:SQL—无法在服务器上访问指定的路径或文件。请确保您具有必需的安全权限且该路径或文件存在。...

一:错误提示: 在还原数据库选择路径的数据,无法选择路径(备份位置-添加): “C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup无法在服务器上访问指定的路径或文件。请确保您具有必需的安全权限且该路径或文件存在。如果您确定所用服务帐户可以访问特定的文件,请在“定位”对话框的“文件名”控件中键入该文件的完整路径。 ” 二:...

weixin_30590285的博客 1256

VS2012 连接 SQL Server 2012 Express

如何生成SQL Server以及直接操作和部署数据库先略   先看如何操作数据库 VS2012集成的功能相当强大,以前的版本可能也有,只是没在意 1)如何设置数据源(MSDN提供),当然这里也可以不设置,再后面添加类也可以设置 从“开始”菜单中,选择“设置”、“控制面板”、“管理工具”、“数据源 (ODBC)”,然后选择“ODBC 数据源管理器”。 请查看如何使用ODBC设置数据源:h

行者 6646

JDBC连接SQLServer2012报错:驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。

使用的工具:Eclipse4.7 java EE版;SQL Server 2012;JDK 1.8;JDBC 驱动版本mssql-jdbc-6.4.0.jre8.jar 在Eclipse下使用JDBC驱动程序连接SQL Server 2012数据库,报错信息如下: 驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。 错误:“The server selected protocol version TLS10 is not accepted by client pre

m0_62480931的博客 5970

SQL SERVER2012链接本地服务器失败的解决方法

SQL SERVER2012链接本地服务器失败的解决方法 标题: 连接到服务器   ------------------------------     无法连接到 CRPER-PC。     ------------------------------   其他信息:     在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法

小圣_fighting的博客 1万+

SQL Server2012连接服务器失败的问题和找不到SQL Server找不到配置管理器的问题解决

SQL Server 2012安装和使用一段时间后没有出现问题,昨天也能正常使用,我今天上午打开时就出现了如图所示的问题: 在与SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且SQL Server 已配置为允许远程连接。provider:Named Pipes Provider,error:40-无法打开到SQL Server 的连接)(Microsoft SQL Server,错误:2) 系统找不到指定的文件。 根据经验判断应该是

weixin_41963554的博客 4171

sql server ssl安全错误_配置 SSL 认证的一些 Ken

SSL:记录一些 Ken1 Nginx 配置 SSL 报错 nginx: [emerg] unknown directive "ssl"需要进到下载好的 Nginx 目录中执行编译安装 ssl 模块: $ ./configure --with-http_ssl_module如果报错说明没有对应的依赖坏境, 执行:$ yum -y install openssl openssl-devel $...

weixin_39605414的博客 2617

用Java和MQTT搞定大疆无人机自动巡检:一个真实机场项目的踩坑与优化记录

本文详细介绍了如何利用Java和MQTT协议实现大疆无人机在机场自动巡检系统的开发与优化。通过实战案例分享系统架构设计、通信协议选型、断线重连机制及数据通道优化等关键环节,帮助开发者解决GPS信号漂移、MQTT消息风暴等典型问题,提升系统性能和可靠性。

weixin_30275415的博客 495

win7连接sql server报SSL安全错误

我整理的一些关于【7】的项目学习资料(附讲解~~)和大家一起分享、学习一下:https://d.51cto.com/f2PFnN如何在Win7中解决连接SQL Server时的SSL安全错误 在连接SQL Server时,可能会遇到“SSL安全错误”的问题。这通常是由于老旧的操作系统(如Windows 7)与SQL Se...

weixin_36856398的博客 1318

洛奇 服务器文件,MabinogiG20S2 [洛奇G20服务端]

Code:Titles:>set_title /id: /add /remove Parameters for titles>set_title /id:60001 /add add devcat title>set_title /id:60001 /remove remove devcat title===========================...

weixin_30813385的博客 4307

3.1使用Python读取excel的二维数据

要使用 Python 读取 Excel 的二维数据,可以使用 openpyxl 或 pandas 库。

kenshin1980的专栏 1032

SQL server 2012连接不上怎么办?

SQL server 2012连接不上怎么办? 为什么我下了SQL server 后连接不上? 你是否也遇到过这种情况? [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-5UZF2gTI-1608296441552)(C:\Users\林下拂风\Desktop\QQ截图20201218203955.png)] 无法连接到 DESKTOP-VI99FFA 其他信息: ​ 在与SQL sever建立连接是出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名

weixin_49113403的博客 2936

解决ArcGIS-OpenStreetMap Toolbox-Load OSM File错误

在安装成功OpenStreetMap Toolbox后,首次运行Load OSM File工具,出现以下错误

Zjf的博客 8820

SQL Server 2012的安装配置

环境配置 操作系统 SQL Server Win 7 2012 enterprise(企业版) 安装配置问题汇总1. 安装过程中一直要求重启 运行注册表,cmd->regedit 找到“HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Session Manager”,在右边的PendingFileRenameOperations

ASIN的专栏 4930

在CoppeliaSim里实现一个最简单的强化学习

前言 上一篇文章中介绍了CoppeliaSim的一些基本知识和一个简单的用python去控制CoppeliaSim里面四旋翼无人机运动的一个例子。文章链接 :https://blog.youkuaiyun.com/qq_37051669/article/details/115324851 本文将继续介绍如何利用CoppeliaSim的物理环境去实现一个最简单的强化学习。 如何实现强化学习 强化学习(Reinforcementlearning)是机器学习中的一个领域,强调如何基于环境而行动,以取得最大化的预期利.

qq_37051669的博客 3765

【电路设计】SERDES与pcie

明确通信接口需要达到什么样的数据速率、信号完整性以及系统中各个部件的互相作用。2.

数字人生 4568

SQL Server 2012 The report server cannot open a connection to the report server database

案例环境:        操作系统版本:    Windows Server 2012 R2 Standard        数据库版本  :    SQL SERVER 2012 SP2 案例介绍:         今天进入一台新安装的SQL Server服务器的Reporting Service管理界面时,出现如下错误信息 The report server cannot open a co...

weixin_33882443的博客 232

用 OData V2 元数据驱动表格体验:SAP UI5 Smart Table 全面解析

摘要: Smart Table是SAPUI5中基于OData元数据自动生成表格的控件,支持个性化、排序、过滤等高级功能。文章从九个维度深入解析其工作机制:1)通过元数据和注解自动生成列;2)支持多种表格类型;3)关键属性的静态化特性;4)与其他智能控件的协同;5)导航属性和导出的处理;6)响应式设计;7)个性化配置;8)性能优化策略;9)端到端实现案例。Smart Table通过读取OData元数据自动完成表格渲染,大幅减少开发工作量,特别适合企业级应用开发场景。

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 323

MSSQL2012 远程方式提示10054

2、将语言设置为英语(美国),执行 Set-WinUserLanguageList -LanguageList en-US。经咨询度娘之后发现极有可能是本地的数据库驱动程序过高,TLS版本不匹配引起的。1、获取当前语言列表,执行 Get-WinUserLanguageList。密码正确,并且直接在服务器上访问数据库正常,就是本地远程连接时报错。本地数据库访问软件升级之后,连接sqlserver2012提示错误。其次、安装英语语音包,步骤如下。最后,重启服务器即可。

星火3194的专栏 1023

canoe安装完成开启之后因为VectorDeviceParams30_64.dll报错崩溃打不开...如何解决?

🏆本文收录于 《全栈 Bug 调优(实战版)》 专栏。专栏聚焦真实项目中的各类疑难 Bug,从成因剖析 → 排查路径 → 解决方案 → 预防优化全链路拆解,形成一套可复用、可沉淀的实战知识体系。无论你是初入职场的开发者,还是负责复杂项目的资深工程师,都可以在这里构建一套属于自己的「问题诊断与性能调优」方法论,助你稳步进阶、放大技术价值。

**My Coding Family** 1082

IMSL CNL 7.0.0 (x86-64)Crack

IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件

SQL高版本向低版本附加数据库时出现的问题

自己电脑里有 2012(学校学习用) 2014(学习.net core时安装的) 在其它电脑上用2017的数据库 在自己电脑上安装2017后附加其它电脑上的数据库时 还是提示高版本向低版本附加的错误 排查过程 1.2017中新建查询 “select @@version” 发现是2012版本,因为2017版本需要单独下载安装management,所以以为是这个上弄错了,但是又想到这个是从...

weixin_30432179的博客 413

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

解决sqlserver2012无法连接到服务器问题(一般情况详解)

开局一张图: 开门见山了的说,基本上连接不上都是如上图错误。 步骤一: 检查服务器名称是否正确,服务器名称一般是 你的计算机全名 \ SQL2012 。 如何查看计算机全名呢——右击我的电脑——属性 然后试试能不能连接,还是无法连接的话。 步骤二: 打开sql 配置管理器 如果忘了sql配置管理器在哪,点击win10系统左下角的搜索,输入配置管理器 然后打开sql配置管理器 看看这...

qq_43682422的博客 5万+

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

怀旧版电脑GBC模拟器

再现原版GBC掌机的界面,电脑运行连游戏界面都一样大小,很怀旧,很真实,(英文版)强烈推荐,很小的文件,很难才找到的。

SQL Server 2012下载及安装教程

sql server 2012安装教程,简单实用。

qq_40699947的博客 3万+

SQL Server2012如何更改服务器的名称

一、事情起因:        三层架构有个小问题,总是报各种错误,昨下午花费了半天时间准备把这个问题解决掉,未果。后来尝试了连接东哥的数据库,程序奇迹般的能运行了,东哥推测可能是我SQL Server 2012安装有问题。于是开始了尝试之旅。 二、错误描述:        只要服务器名称为(local)或者. 无论是SQL Server身份验证还是Windows验证,都会报错。 (见下图)但

柠檬树 3万+

SQL Server2012创建连接服务器到ORACLE11G

做ETL,肯定少不了经常会从不同的数据库直接进行数据的操作,为了更好的进行跨库操作,SQL SERVER 2012拥有LinkedServer功能。前段时间写了个SQL SERVER同种数据库直接的链接数据库的链接,具体请参考:http://blog.youkuaiyun.com/waterxcfg304/article/details/42004753

Watson的专栏 2万+
上一篇: MyEclipse创建Web Project并创建一个类写java文件详细教程
下一篇: SQL Server 2012联机丛书主要包含哪几部分内容?
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值