troubleshooting Question

c# update a ascess data base memo field using sql

Avatar of sydneyguy
sydneyguyFlag for Australia asked on
Microsoft AccessC#SQL
10 Comments1 Solution737 ViewsLast Modified:
found a locking problem were access does not like to be sql  d to a memo filed via a update line were the  tablink is of type memo.
has any one the line of code example to allow this to work please

private void updateDataRec(string sql)
        {
               sql = "UPDATE tblUrlsfoundinDirectory SET tablink = " +
                                " '/company/xyz/statistics'  WHERE (((ID)=19825))";


            OdbcConnection DbConnection = new OdbcConnection("DSN=directorylinkedinextract");
            DbConnection.Open();
            OdbcCommand DbCommand = DbConnection.CreateCommand();
            DbCommand.CommandText = sql;

           try
            {
                OdbcDataReader DbReader = DbCommand.ExecuteReader();
                DbReader.Close();
                DbCommand.Dispose();
                DbConnection.Close();

            }
         catch
            {  // CHECK TO SEE IF THERE ARE ANY ' IN HERE AND CLEAN THEM
               DbConnection.Close();
            }
        }
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros