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
DAN HICKSONPosted Dec 18, 2012, 9:56 AM
Unrecognized property 'database' in connection string
Vishnujeet KumarPosted Dec 18, 2012, 9:48 AM
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 HICKSONPosted Dec 18, 2012, 7:30 AM
"Error 6633: The Advantage Database Server did not respond to a database request in a timely manner while using inter-process communications. axServerConnect"}
DAN HICKSONPosted Dec 18, 2012, 7:11 AM
Vishnujeet KumarPosted Dec 18, 2012, 6:49 AM