Torgeir
Wed Mar 16 08:56:45 CST 2005
McKirahan wrote:
> "Wayne Gore" <WayneGore@discussions.microsoft.com> wrote in message
> news:5E565A39-D955-4B8D-B27B-B265ECE05005@microsoft.com...
>
>>By the way...
>>On the homepage you recommend, the example for a DSN-Less connection to a
>>SQL server is:
>>
>>oConn.Open "Driver={SQL Server};" & _
>> "Server=MyServerName;" & _
>> "Database=myDatabaseName;" & _
>> "Trusted_Connection=yes"
>>
>>How do I create the obejct "oConn"?
>>
>>Regards
>>Wayne
>
>
> [snip]
>
> Set oConn = CreateObject("ADODB.Connection")
>
> When you're through with it then destroy it via:
>
> Set oConn = Nothing
Hi
I think this one is better maybe:
oConn.Close
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx