c#连接sybase的时候报错 5C

ERROR=Parse failure on line 1 of statement 'use alerts', at or near 'alerts'

一直报这个错
代码
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Sybase.Data.AseClient;
using System.Data;

namespace Test_Sybase
{
public partial class Test : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
try
{
AseConnection con = new AseConnection("Data Source=ip;database=data;charset=cp850;Port=5000;UID=sa;PWD=sa");
AseDataAdapter da = new AseDataAdapter("select * from alerts.status", con);
con.Open();
DataTable dt = new DataTable();
da.Fill(dt);
}
catch (Exception ex)
{

        }
    }
}

}

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问