﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Sean Burke / Article Discussions / Article Discussions by Author  / Windows  Authentication / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 16:42:59 GMT</lastBuildDate><ttl>20</ttl><item><title>Windows  Authentication</title><link>http://www.sqlservercentral.com/Forums/Topic1023697-33-1.aspx</link><description>The below code uses windows authentication, but If I  want to override the current logon credentials and use a different userId and password what do I need to change :  oServer.LoginSecure = True Foe example the current windows logon is : AD\micky, but I want list all servers using a different user as AD\mouse. Function listDatabases(vServer As String, vControl As Object) Dim oServer As SQLDMO.SQLServer Set oServer = New SQLDMO.SQLServer oServer.LoginSecure = True oServer.Connect vServer For Each oDatabase In oServer.Databases     vControl.AddItem oDatabase.Name Next End Function</description><pubDate>Fri, 19 Nov 2010 10:44:58 GMT</pubDate><dc:creator>Thayal Muhunthan</dc:creator></item></channel></rss>