|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
SQLDMO, I am looking for examples/code excerpts, etcDear folks,
I am not familiarised with SQLDMO and right now I would need some examples of how it works; concretely my upcoming dutie is to do a little app in VB using this data library and pulling data and launching some DML, nothing else. I have always used DAO, RDO or ADO with Visual Basic and although, at first it seems very intuitive, very similar ADO ( SQLDMO.database,SQLDMO.SQLServer,SQLDMO.table) in order be faster any example or related link would be welcomed. Thanks so much for your help, Enric SQLDMO Examples from MSDN Library
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sqldmo/dmoref_ex02_6x7z.asp Show quote >Dear folks, > >I am not familiarised with SQLDMO and right now I would need some examples >of how it works; concretely my upcoming dutie is to do a little app in VB >using this data library and pulling data and launching some DML, nothing >else. I have always used DAO, RDO or ADO with Visual Basic and although, at >first it seems very intuitive, very similar ADO ( >SQLDMO.database,SQLDMO.SQLServer,SQLDMO.table) in order be faster any example >or related link would be welcomed. > >Thanks so much for your help, > >Enric > > "=?Utf-8?B?RW5yaWM=?=" <En***@discussions.microsoft.com> wrote in Be aware that DMO was designed for managing SQL Server, rather than for data news:E4A220E7-7043-44A5-BDD9-CD23122CCD43@microsoft.com: > I am not familiarised with SQLDMO and right now I would need some > examples of how it works; concretely my upcoming dutie is to do a > little app in VB using this data library and pulling data and launching > some DML, nothing else. I have always used DAO, RDO or ADO with Visual > Basic and although, at first it seems very intuitive, very similar ADO > ( SQLDMO.database,SQLDMO.SQLServer,SQLDMO.table) in order be faster > any example or related link would be welcomed. processing. If you attempt queries with a large resultset, it will be very slow - ADO will be much faster for that sort of thing. Chris,
I though the contrary... so then SQLDMO is not so faster than ADO? It seems works at most low level. Thanks anyway and regards, Show quote "Chris Cheney" wrote: > "=?Utf-8?B?RW5yaWM=?=" <En***@discussions.microsoft.com> wrote in > news:E4A220E7-7043-44A5-BDD9-CD23122CCD43@microsoft.com: > > > I am not familiarised with SQLDMO and right now I would need some > > examples of how it works; concretely my upcoming dutie is to do a > > little app in VB using this data library and pulling data and launching > > some DML, nothing else. I have always used DAO, RDO or ADO with Visual > > Basic and although, at first it seems very intuitive, very similar ADO > > ( SQLDMO.database,SQLDMO.SQLServer,SQLDMO.table) in order be faster > > any example or related link would be welcomed. > > Be aware that DMO was designed for managing SQL Server, rather than for data > processing. If you attempt queries with a large resultset, it will be very > slow - ADO will be much faster for that sort of thing. > ADO would be the choice for querying data into client side recordsets.
DMO would be a better choice for interfacing with bulk copy, deleting tables, enumerating lists of database objects, etc. becuase it provides an object model designed specifically for that. That are some sample applications that come bundled on the SQL Server install CD. One of them is a Visual Basic 6.0 application that uses DMO to create a simplistic Enterprise Manager like GUI. Show quote "Enric" <En***@discussions.microsoft.com> wrote in message news:DFC7F56E-12B3-4380-A85A-ADAC6EBAC440@microsoft.com... > Chris, > > I though the contrary... so then SQLDMO is not so faster than ADO? It > seems > works at most low level. > Thanks anyway and regards, > > "Chris Cheney" wrote: > >> "=?Utf-8?B?RW5yaWM=?=" <En***@discussions.microsoft.com> wrote in >> news:E4A220E7-7043-44A5-BDD9-CD23122CCD43@microsoft.com: >> >> > I am not familiarised with SQLDMO and right now I would need some >> > examples of how it works; concretely my upcoming dutie is to do a >> > little app in VB using this data library and pulling data and launching >> > some DML, nothing else. I have always used DAO, RDO or ADO with Visual >> > Basic and although, at first it seems very intuitive, very similar ADO >> > ( SQLDMO.database,SQLDMO.SQLServer,SQLDMO.table) in order be faster >> > any example or related link would be welcomed. >> >> Be aware that DMO was designed for managing SQL Server, rather than for >> data >> processing. If you attempt queries with a large resultset, it will be >> very >> slow - ADO will be much faster for that sort of thing. >> You are intending to use DMO for administrative type operations on the
database, then perhaps consider using Windows Scripting Host (WSH) instead of a compiled VB application. VBScript can be viewed and edited in notepad and would be more easily maintained by the DBA. http://www.microsoft.com/technet/scriptcenter/default.mspx http://www.microsoft.com/technet/scriptcenter/scripts/sql/default.mspx Show quote "Enric" <En***@discussions.microsoft.com> wrote in message news:E4A220E7-7043-44A5-BDD9-CD23122CCD43@microsoft.com... > Dear folks, > > I am not familiarised with SQLDMO and right now I would need some examples > of how it works; concretely my upcoming dutie is to do a little app in VB > using this data library and pulling data and launching some DML, nothing > else. I have always used DAO, RDO or ADO with Visual Basic and although, > at > first it seems very intuitive, very similar ADO ( > SQLDMO.database,SQLDMO.SQLServer,SQLDMO.table) in order be faster any > example > or related link would be welcomed. > > Thanks so much for your help, > > Enric |
|||||||||||||||||||||||