SqlException捕获模式中的错误

时间:2012-05-08 09:16:41

标签: c# sqlexception

请任何人帮助我解决我工作中发生的这些错误让我疯狂的事。我想知道它下面的架构元素是否正确,如果不是,请帮我解决问题。我用C#编程编写代码来运行它,当我使用方法adapter.Fill(ds)时,输出会产生如下错误:

  

SqlException catch:","

附近的语法错误
<xs:appinfo>
  <wang:relation parent="n_person" parentKey="login" child="n_address" childKey="person_id"/>
  <wang:relation parent="n_org" parentKey="name" child="n_address" childKey="org_id"/>
  <wang:directive sql="SELECT street, city, province, postcode, sid, NULL FROM s_address,    
     s_student WHERE s_address.aid = s_student.fk_add;"/>
  <wang:directive sql="SELECT street, city, province, postcode, pid, NULL FROM s_address, 
     s_professor WHERE s_address.aid = s_professor.fk_add;"/>
  <wang:directive sql="SELECT street, city, province, postcode, NULL, name FROM s_address,  
     s_department WHERE s_address.aid = s_department.fk_add;"/>
</xs:appinfo>

1 个答案:

答案 0 :(得分:0)

在查询浏览器中检查查询语句