在使用Bulkload函数将XML文件中的数据导入到数据库时出现这个错误。映射文件Schema格式应该没什么问题,之前运行都好好的。不知道为什么会突然出现这个问题。请多多指教。
解决方案 »
- 插入一组数据
- 位置固定的模糊查询怎么写?
- server 2008中的一个库坏了,sql正在自动修复,耗费io相当高,怎么把自动修复给停了
- 请帮忙看看这段代码
- 不服的进!!
- 关于sql server 数据库的若干疑问.
- 关于白尚旺《Powerdesigner软件分析设计技术》学习讨论
- 为什么不能用try语句捕获存储过程中raiserror产生的异常?
- mssql2005 在表分区后,如何实现归档功能,要求ndf文件可以移动到其他地方或删除
- 急急急,求求各位大佬看看这个sql Server2012的问题如何解决?服务器上链接不上去,sql Server配置管理器也无法启动。
- sql查询 执行效率 在线等待。。。。。。
- sql2000强制还原数据库,结果忘记填写数据库名字,导致其覆盖了原有数据库。
看不出来'xs:schema' 没有定义啊
XML文件如下 <?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="testing10schema.xsd"></root>
用到的Schema文件框架如下:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" elementFormDefault="qualified" attributeFormDefault="unqualified" xsi:schemaLocation="
http://www.w3.org/2001/XMLSchema
http://www.w3.org/2001/XMLSchema.xsd">
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element name="common" type="common"/>
<xs:element name="data" type="data"/>
</xs:sequence>
</xs:complexType>
</xs:element></xs:schema>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" elementFormDefault="qualified" attributeFormDefault="unqualified" xsi:schemaLocation="
http://www.w3.org/2001/XMLSchema
http://www.w3.org/2001/XMLSchema.xsd">
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element name="common" type="common"/>
<xs:element name="data" type="data"/>
</xs:sequence>
</xs:complexType>
</xs:element> </xs:schema>