Connection to MS-SQL Server (question of which objects to use)...



Hello, Folks!

I'm learning VBScript (ASP.Classic, WSH) through the "School of Hard
Knocks". Right now I am confused about the different methods of
connecting to an SQL Server. That is where and when (or not) to use
them. I have been trying to read up on the following methods:

ADO:
e.g. Set objSQLconn = CreateObject("ADODB.Connection")

SQLDMO:
e.g. Set objSQLserver = CreateObject("SQLDMO.SqlServer")

SQLOLE:
e.g. Set objSQLServer = CreateObject("SQLOLE.SqlServer")

When do and don't you use each of these?
Are there any good web sites with tutorials on these methods?
Are there any more way to connect to an SQL server?
I've got so many acronyms swimming inside my head I don't know what
anything stands for anymore.

< sigh! >

Any ideas?

TIA...

.



Relevant Pages

  • Re: Connection to MS-SQL Server (question of which objects to use)...
    ... Example for ADO: ... SQL DMO is only for SQL Server 2000. ... You can connect to Job objects, get database ... Set objSQLserver = CreateObject ...
    (microsoft.public.scripting.vbscript)
  • Re: How to connect a workstation to SQL Server 2005 thru ODBC?
    ... and open the port in the Windows XP ... Welcome to the Getting Started with the Database Engine tutorial. ... Connecting to the Database Engine ... Either SQL Server Management Studio or Management Studio Express. ...
    (microsoft.public.sqlserver.connect)
  • Re: Cannot connect a remote sql server
    ... I too have written quite a bit about connecting. ... Hitchhiker's Guide to Visual Studio and SQL Server ... such as the server's firewall, SQL Server's remote connection setting, ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.adonet)
  • Use Single Sign on to connect to sql server
    ... connection in an excel file that connects using an odc file connecting using ... The logon account information that you configure here must match the logon ... Name: SQL Server ... If I'm connecting using a sql username, do i need to use the domain piece ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Problem connectin SQL Server 2005
    ... Have you configured the SQL Server 2005 to allow remote connections? ... Welcome to the Getting Started with the Database Engine tutorial. ... Connecting to the Database Engine ... Configuring a Fixed Port ...
    (microsoft.public.sqlserver.connect)