Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
28 Jul 2009 diskfree Queries the free space of a volume Author: Martin Furlan Nygårds, Thomas

The FSUTIL utility requires a local NTFS volume,
so no network drives can be used with this function.

24 Feb 2009 ADO OLE Database Connection Queries datasource and insers data into datasource. Author: Martin Furlan Nicolas, Guyennon

Thanks a lot !!! Amazing work, even faster than Tim Myers code (oledb*.m)
I'm working with your toolbox to query access 2003 database.
I was looking for table, field and query information. Tooks me 4 days ... hope that could help someone else

%% get table name
sqltablename='SELECT name FROM MSysObjects WHERE Type=1 AND Flags=0 ORDER BY name';
tablename=adodbquery(cn,sqltablename);
%% get query name
sqlqueryname='SELECT name FROM MSysObjects WHERE Type=5 AND Flags=0 ORDER BY name';
queryname=adodbquery(cn,sqlqueryname);

note that in both case you should first change users authorization to read for MSysObjects opening your access database. ("user and group authorization" menu in tools)

the hardest part was to get fields or columns name ...

function field_name=tablefieldname(cn,table_name)
%% find all field name from table
sqlfiledname=['SELECT * FROM ' table_name];
invoke(cn,'BeginTrans');
r = invoke(cn,'Execute',sqlfiledname);
invoke(cn,'CommitTrans');
nbfileds=r.Fields.count;field_name='';
for ff=1:nbfileds
    fld=r.Fields.Item(ff-1);
    field_name=strvcat(field_name,fld.name);
end

bye
Nico

14 Oct 2008 ADO OLE Database Connection Queries datasource and insers data into datasource. Author: Martin Furlan K., Leen

want to use variables in the sql queries...
kindly suggest a way.
e.g. sql=['select * from TestTable where firstname=',myname ,'];
5this statement wont replace variable myname

23 Sep 2008 ADO OLE Database Connection Queries datasource and insers data into datasource. Author: Martin Furlan K., Jasleen

Thanks a tonne..!!!!
solved my problem.!!

28 Aug 2008 ADO OLE Database Connection Queries datasource and insers data into datasource. Author: Martin Furlan deepa, deepa

25 Jul 2008 ADO OLE Database Connection Queries datasource and insers data into datasource. Author: Martin Furlan Sragner, Laszlo

h=actxserver('ADODB.Connection');
h.Open(connstr);
res=h.Execute(sqlstr);
x=res.GetRows()';
h.Close();
delete(h);

Maybe the leak was due to the 'release' command at the end instead of 'delete'

22 Mar 2008 ADO OLE Database Connection Queries datasource and insers data into datasource. Author: Martin Furlan nadiyana, hardik

really help ful thanx,
hardik

27 Feb 2008 ADO OLE Database Connection Queries datasource and insers data into datasource. Author: Martin Furlan Ortiz, jairo

04 Jan 2008 ADO OLE Database Connection Queries datasource and insers data into datasource. Author: Martin Furlan Lynch, Christy

This is a fantastically easy interface to use for Access databases. The problem is a memory leak. Releasing the connection and clearing the connection variable does not release the memory used up by the connection. Only restarting Matlab seems to work.

26 Oct 2007 ADO OLE Database Connection Queries datasource and insers data into datasource. Author: Martin Furlan Koopman, Martijn

Very easy to use and extremely fast interface with Microsoft Access *.MDB files.

26 Apr 2007 ADO OLE Database Connection Queries datasource and insers data into datasource. Author: Martin Furlan Schaezler, Ryan

Works well. I was having problems with OWC even though it was install on one computer. Using the ADODB connection worked without any issues.

31 Jan 2007 diskfree Queries the free space of a volume Author: Martin Furlan Gregersen, Lars

You need rights as an Administrator to run fsutil. This may be a problem for some users.

30 Jan 2007 diskfree Queries the free space of a volume Author: Martin Furlan Bodin, Peter (PB)

It should be stated that this is for windows users only.

29 Jan 2007 diskfree Queries the free space of a volume Author: Martin Furlan Özgül, Ali

This sub function is very simplest but I think it is usefull for more applications. If you wil improved the this function graphical interface than it possible very nice and likeable. Good working.

29 Jan 2007 diskfree Queries the free space of a volume Author: Martin Furlan McNeill, Stephen

Useful, but note that the command utility used by the script ("fsutil") is only provided under WindowsXP, and not earlier versions of the operating system.

 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com