我正在尝试将我的数据从excel 2007传输到SQL SERVER 2008R2 [英] i am trying to transfer my data from excel 2007 to SQL SERVER 2008R2

查看:94
本文介绍了我正在尝试将我的数据从excel 2007传输到SQL SERVER 2008R2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的数据从excel 2007传输到SQL SERVER 2008R2。但我面临以下错误。

建立与SQL Server的连接时发生网络相关或特定于实例的错误。服务器未找到或无法访问。验证实例名称是否正确,以及SQL Server是否配置为允许远程连接。 (提供者:命名管道提供程序,错误:40  - 无法打开与SQL Server的连接)



即使我的Excel工作表名称是BOOK1。我不明白为什么我会遇到这个错误。我在web.config中有以下连接字符串。



 <   add     name   =  Con    connectionstring   = 集成安全性= SSPI;持久安全信息=假;初始目录=实践;数据源= SURESH  <跨度类= 代码关键字 >>  <跨度类= 代码关键字 ><  <跨度类= 代码leadattribute> /添加 >  
< add name = Excel07ConString connectionstring = Provider = Microsoft.ACE.OLEDB.12.0;< br mode = hold = />数据源= SURESH;扩展属性='Excel 7.0;' / >



如果有任何身体有任何知识,请指导我

解决方案

<添加名称= CON 的ConnectionString = 集成安全性= SSPI;持续安全信息= FALSE;初始目录=实践;数据源= SURESH >



此连接字符串不正确。

键入sql server的用户ID和密码。


i am trying to transfer my data from excel 2007 to SQL SERVER 2008R2. But i am facing the following error.

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)


Even that my excel sheet name is BOOK1. i don''t understand why i am facing this error. i have the follwing connection string in web.config.

<add name="Con" connectionstring="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=practice;Data Source=SURESH"></add>
<add name="Excel07ConString" connectionstring="Provider=Microsoft.ACE.OLEDB.12.0;<br mode=" hold=" />            Data Source=SURESH;Extended Properties='Excel 7.0;'" />


Please guide me if any body have any knowledge

解决方案

<add name="Con" connectionstring="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=practice;Data Source=SURESH">

This connection string is not proper.
Type User Id and Password of sql server.


这篇关于我正在尝试将我的数据从excel 2007传输到SQL SERVER 2008R2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆