From: Luna Moon on
>> cc=database('MyDatabaseName', 'MyUserName', 'MyPassword')

cc =

Instance: 'MyDatabaseName'
UserName: 'MyUserName'
Driver: []
URL: []
Constructor: [1x1 com.mathworks.toolbox.database.databaseConnect]
Message: [1x91 char]
Handle: 0
TimeOut: []
AutoCommit: 'off'
Type: 'Database Object'

>> cc.Message

ans =

[Microsoft][ODBC Driver Manager] Data source name not found and no
default driver specified
From: Oleg Komarov on
Luna Moon <lunamoonmoon(a)gmail.com> wrote in message <5983d1f1-1c84-4fcd-89a9-06f6ad4022df(a)e23g2000yqd.googlegroups.com>...
> >> cc=database('MyDatabaseName', 'MyUserName', 'MyPassword')
>
> cc =
>
> Instance: 'MyDatabaseName'
> UserName: 'MyUserName'
> Driver: []
> URL: []
> Constructor: [1x1 com.mathworks.toolbox.database.databaseConnect]
> Message: [1x91 char]
> Handle: 0
> TimeOut: []
> AutoCommit: 'off'
> Type: 'Database Object'
>
> >> cc.Message
>
> ans =
>
> [Microsoft][ODBC Driver Manager] Data source name not found and no
> default driver specified

You should first configure an odbc connection or you can use a jdbc driver.

Oleg