当前位置:首页 » 编程语言 » sqlnotspecified
扩展阅读
webinf下怎么引入js 2023-08-31 21:54:13
堡垒机怎么打开web 2023-08-31 21:54:11

sqlnotspecified

发布时间: 2022-05-30 02:46:03

sql server 2008 安装出现以下错误:值不能为空。参数名:path1,求大神解答,不剩感激!

SQL 2008 安装要求比较严格,在安装过程中的每一步都有具体的要求,在安装过程中如果不是按照要求设置的,在安装程序的时候就会出现这样那样的问题。估计你在设置过程中,可能那个设置没有值,从而发生错误了。

❷ sql server数据库连接失败

如果客户端计算机上的别名设置错误,可能会引起连接问题。您可以使用客户端网络实用程序查看别名。为此,请按以下步骤操作: 1. 启动客户端网络实用程序。如果 SQL Server 客户端工具被安装在正在运行客户端应用程序的计算机上,请按照以下步骤启动客户端网络实用程序: a. 单击“开始”,然后指向“程序”。 b. 指向“Microsoft SQL Server”,然后单击“客户端网络实用程序”。 如果 SQL Server 客户端工具没有安装在客户端计算机上,请按照以下步骤启动客户端网络实用程序: a. 单击“开始”,然后单击“运行”。 b. 在“运行”对话框中,在“打开”框中键入 cliconfg,然后单击“确定”。 2. 在“SQL Server 客户端网络实用程序”窗口中,单击“常规”标签,然后启用您要使用的所有协议。注意:您必须至少启用 TCP/IP 协议和命名管道协议。 3. 单击“别名”标签,然后验证为 SQL Server 实例所配置的别名。 4. 验证别名的属性,确认服务器名或 IP 地址和协议的配置是正确的。 通过使用服务器名、IP 地址或者其他协议,您可以创建一个新的别名以测试连接性能。注意:在 Microsoft 数据存取部件 (MDAC) 的早期版本中,客户端网络实用程序的用户界面是不同的。因此,如果您没有看到本文中列出的选项,请在运行客户端应用程序的计算机上安装 MDAC 的新版本。验证 SQL Server 实例正在正确地侦听要验证 SQL Server 实例正在正确地侦听命名管道、TCP/IP 或您在客户端应用程序中使用的其他协议,请打开当前的 SQL Server 错误日志文件。SQL Server 错误日志文件可能包括与以下类似的条目:2003-11-06 09:49:36.17 server SQL server listening on TCP, Shared Memory, Named Pipes. 2003-11-06 09:49:36.17 server SQL server listening on 192.168.1.5:1433, 127.0.0.1:1433.通过分析 SQL Server 错误日志文件中的条目,可以验证 SQL Server 实例是否正在侦听正确的 IP 地址和端口。在默认情况下,一个默认的 SQL Server 实例侦听端口 1433。您还可以使用服务器网络实用程序来验证 SQL Server 的协议设置并更改 SQL Server 中的属性,包括可以连接到 SQL Server 和可以使用的端口的协议。关于使用服务器网络实用程序的更多信息,请参见 SQL Server 在线参考书中的“SQL Server 网络实用程序”专题。有时候,SQL Server 2000 可能不会绑定于端口 1433 或任何其他指定的端口。如果端口正被其他应用程序使用,或者如果您正在尝试使用一个错误的 IP 地址进行连接,就可能会出现此问题。因此,TCP/IP 到 SQL Server 的连接可能不成功,在 SQL Server 错误日志中您会收到下列错误信息:2001-11-14 15:49:14.12 server SuperSocket Info:Bind failed on TCP port 1433.有关其他信息,请单击下面的文章编号,以查看 Microsoft 知识库中相应的文章: 307197 ( http://support.microsoft.com/kb/307197/) PRB:TCP\IP 端口正由另一应用程序使用 如果通过 TCP/IP 连接您不能连接到 SQL Server 实例,请尝试使用命名管道协议或共享内存协议。在命令提示符下运行下面的命令,以获取关于正在使用的端口的信息:

❸ win7 64位的系统安装SQL 2008安装过程出现这样的提示,怎么操作才能继续安装下去,现在挺住了,在线急等

SQL Server 2008安装时的一个BUG,如果再选择共享组件的安装路径时,不按照微软默认给定的“C:\Program
Files\Microsoft SQL Server”路径,想要自定义安装路就会报错……

例如想把“C:\Program
Files\Microsoft SQL Server” 修改为“D:\Program Files\Microsoft SQL Server”

错误的详细信息是:
未指定 INSTANCESHAREDWOWDIR 命令行值。如果指定了 INSTANCESHAREDDIR
值,则必须指定该值。(英文版提示:The INSTANCESHAREDWOWDIR command line value was not specified.
This value must be specified when the INSTANCESHAREDDIR value is specified.)

解决方案1:
首先:不修改路径,使用默认方式安装,最后在确认安装时会显示ConfigurationFile.ini文件的路径,到这个路径下面将安装配置文件复制到其他路径,例如D:\,然后退出安装

其次:使用记事本打开这个文件,根据实际需求将“C:\Program Files\Microsoft SQL Server”
查找替换为“D:\Program Files\Microsoft SQL Server”后保存

最后:在命令行转到安装目录,开始安装,记得使用管理员权限运行命令行,输入以下指令:
setup.exe
/action=Install /configurationfile=D:\ConfigurationFile.ini

解决方案2:
http://wenku..com/view/e70ee765ddccda38376baf36.html

❹ 如何从SQL中导出照片

在MS SQL SERVER 安装目录下有个可执行文件叫 TEXTCOPY.EXE
可对 MS SQL SERVER 中的文本或图像数据进行输入输出.
不过你可以在MS-DOS方式下执行text /? 得到它的描述。
下面是这个工具的描述:
Copies a single text or image value into or out of SQL Server. The val
ue
is a specified text or image 'column' of a single row (specified by th
e
"where clause") of the specified 'table'.

If the direction is IN (/I) then the data from the specified 'file' is

copied into SQL Server, replacing the existing text or image value. If
the
direction is OUT (/O) then the text or image value is copied from
SQL Server into the specified 'file', replacing any existing file.

TEXTCOPY [/S ][sqlserver]] [/U [login]] [/P ][password]]
[/D ][database]] [/T table] [/C column] [/W"where clause"]
[/F file] [{/I | /O}] [/K chunksize] [/Z] [/?]

/S sqlserver The SQL Server to connect to. If 'sqlserver' is n
ot
specified, the local SQL Server is used.
/U login The login to connect with. If 'login' is not spec
ified,
a trusted connection will be used.
/P password The password for 'login'. If 'password' is not
specified, a NULL password will be used.
/D database The database that contains the table with the tex
t or
image data. If 'database' is not specified, the d
efault
database of 'login' is used.
/T table The table that contains the text or image value.

/C column The text or image column of 'table'.
/W "where clause" A complete where clause (including the WHERE keyw
ord)
that specifies a single row of 'table'.
/F file The file name.
/I Copy text or image value into SQL Server from 'fi
le'.
/O Copy text or image value out of SQL Server into '
file'.
/K chunksize Size of the data transfer buffer in bytes. Minimu
m
value is 1024 bytes, default value is 4096 bytes.

/Z Display debug information while running.
/? Display this usage information and exit.

You will be prompted for any required options you did not specify.

为此, 可写一个存储过程,调用这个命令
CREATE PROCEDURE sp_text (
@srvname varchar (30),
@login varchar (30),
@password varchar (30),
@dbname varchar (30),
@tbname varchar (30),
@colname varchar (30),
@filename varchar (30),
@whereclause varchar (40),
@direction char(1))
AS
DECLARE @exec_str varchar (255)
SELECT @exec_str =
'text /S ' + @srvname +
' /U ' + @login +
' /P ' + @password +
' /D ' + @dbname +
' /T ' + @tbname +
' /C ' + @colname +
' /W "' + @whereclause +
'" /F ' + @filename +
' /' + @direction
EXEC master..xp_cmdshell @exec_str

下面是一个拷贝图像到SQL Server的pubs数据库的例子, 表名pub_info, 字段名
logo,图像文件名picture.bmp,保存到pub_id='0736'记录 sp_text @srvn
ame = 'ServerName',
@login = 'Login',
@password = 'Password',
@dbname = 'pubs',
@tbname = 'pub_info',
@colname = 'logo',
@filename = 'c:\picture.bmp',
@whereclause = " WHERE pub_id='0736' ",
@direction = 'I'
你看看 调用成拷贝就行

❺ SQL Server could not find the specified named instance (GSQL)

翻译如下:
SQL服务器无法找到指定的命名实例(GSQL)-请指定对sqlservr.exe调用现有的实例的名称。
如果您认为您的安装已损坏或被篡改,卸载,然后重新运行安装程序以更正此问题。

就是说找不到这个实例名称GSQL,你可以先尝试用SQL SERVER的修复功能,修复安装的时候最好不要更改它的默认实例名称,一般默认为MSSQL;如果修复安装之后仍然不可以的话,就只能重新安装了;

❻ SQL Server 安装出错怎么办

昨天我在安装sqlserver2008时看系统默认是安装在了C盘,我就把安装目录更成了D盘了,结果出现了The
INSTANCESHAREDWOWDIR command line value was not specified. This value must be specified when the
INSTANCESHAREDDIR value is specified错误。
后来网络了一下得到一个解决办法解决办法ConfigurationFile.ini文件的路径,到这个路径下面将安装配置文件复制到其他路径,例如D:,然后退出安装
使用记事本打开这个文件,根据实际需求将C:Program FilesMicrosoft SQL Server 查找替换为D:Program
FilesMicrosoft SQL Server后保存
最后:在命令行转到安装目录,开始安装
插入光盘后不要用autorun的安装,使用命令行安装!cd进安装光盘的根目录,输入命令:
setup.exe /INSTALLSHAREDDIR=D:\Program Files\Microsoft SQL Server\
/INSTALLSHAREDWOWDIR=D:\Program Files (x86)\Microsoft SQL Server\
安装即可,其中INSTALLSHAREDDIR为x64部件安装的路径,INSTALLSHAREDWOWDIR为x32部件安装的路径。
切记不可使用默认的setup.exe就安装的方式,一旦进入安装完支持文件之后,就算你退出安装程序,运行上面的命令
语句也无法改变安装路径!如果已经安装了支持文件,你可以在控制面板尝试卸载清光SQL Server的任何有关项,但
并不保证一定能行

❼ 使用PL/SQL登录oracle数据库时ORA-12154报错

ORA-12154:
TNS:could
not
resolve
the
connect
identifier
specified
Cause:
A
connection
to
a
database
or
other
service
was
requested
using
a
connect
identifier,
and
the
connect
identifier
specified
could
not
be
resolved
into
a
connect
descriptor
using
one
of
the
naming
methods
configured.
For
example,
if
the
type
of
connect
identifier
used
was
a
net
service
name
then
the
net
service
name
could
not
be
found
in
a
naming
method
repository,
or
the
repository
could
not
be
located
or
reached.
以上是官方的解释,说明你监听有问题。你sqlplus
/
as
sysdba或者是sqlplus
scott/tiger连接的数据库吧?这种方式是不走网络的,所以有没有监听都行。用netca/netmgr配置下监听就好了,你试试。

❽ 安装sql server 2008不能更改安装路径吗

安装sql server 2008能更改安装路径。

工具/材料:sqlserver 2008安装程序。

1、首先运行sqlserver 2008安装程序。

❾ sql server 2008 r2安装出现以下错误,值不能为空参数名:path1

把图贴出来

❿ 本地数据库sql 连接失败

这是老问题了,其实出现这种问题你可以从两个方面入手,就是看下你的sql配置对不,如果是其它网站可以访问,那就是代码有问题或者web.config,或者权限之类的,如果不可以访问那就得看下sql配置上有哪些问题,比如说你的sql上面的权限,iis之类的基本是从这些方面入手的