Hi all. Using visual studio. We are using sybase advantage server which we can see and connect to in the server explorer and view tables etc.
I have created a form with a datagridview on there.
I am trying to populate the datagridview using sql and then filtering it.
I am getting syntax error and it highlights where it opens the connection.
here is my code:
string ConnectionPath = "Data Source=\\pw125n-12365\\localdbf\\1236_dbf.add;User ID=123;Password=123;ServerType=REMOTE";
string sql = "SELECT corethick FROM build";
AdsConnection Connection = new AdsConnection(ConnectionPath);
AdsDataAdapter dataadapter = new AdsDataAdapter(sql,Connection);
DataSet ds = new DataSet();
Connection.Open();
dataadapter.Fill(ds, "build");
Connection.Close();
DataView dv;
dv = new DataView(ds.Tables[0], "corethick > 3.100", "corethick", DataViewRowState.CurrentRows);
dataGridView1.DataSource = dv;
any help much appreciated.
Loading

Vishnujeet KumarRank #1,019 · 1.9K reputationPosted Dec 18, 2012, 1:49 AM EST
DAN HICKSON7 reputationPosted Dec 18, 2012, 2:11 AM EST
DAN HICKSON7 reputationPosted Dec 18, 2012, 2:30 AM EST
"Error 6633: The Advantage Database Server did not respond to a database request in a timely manner while using inter-process communications. axServerConnect"}
Vishnujeet KumarRank #1,019 · 1.9K reputationPosted Dec 18, 2012, 4:48 AM EST
pls make sure your server and database name should be correct .
string ConnectionPath = "Data Source=\\pw125n-12365\\localdbf;database=1236_dbf.add;User ID=123;Password=123;ServerType=REMOTE";
or
try this, advantage server connection string format by this link.
http://www.connectionstrings.com/sybase-advantage#advantage-net-data-provider
DAN HICKSON7 reputationPosted Dec 18, 2012, 4:56 AM EST
Unrecognized property 'database' in connection string