The following script works fine in older MATLAB version and on newer Windows versions, but in MATLAB 7.11 (R2010b) on Windows XP SP3 throws an error:
conn = actxserver('ADODB.Connection')conn.ConnectionString = 'DRIVER={SQL Server};SERVER=localhost\SQLExpress;DATABASE=master' % update servername as/if needed
conn.Opencommand = actxserver('ADODB.Command')command.ActiveConnection = conn
??? Error: Object returned error code: 0xFFFFFFFE
Best Answer