![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | vbscritp Sql Impersonation i have a vbscript to connect to the sqlServer strDBServerName = "." strDBName = "ScriptingGuysTestDB" Set objSQLServer = CreateObject("SQLDMO.SQLServer") objSQLServer.LoginSecure = True objSQLServer.Connect strDBServerName Set objDB = objSQLServer.Databases(strDBName) WScript.Echo "Total Size of Data File + Transaction Log of DB " & strDBName & ": " & objDB.Size & "(MB)" How to i impersoante this to a specific user. i tried objSQLServer.LoginSecure = False objSqlServer.Login = "UserName" objSQLServer.Password = "Password" but it didn;t work |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Impersonation Vs RunAs | VB Script | |||
| Impersonation | VB Script | |||
| How do IRead an Outlook Msg in vbScritp | VB Script | |||
| Impersonation in Powershell | PowerShell | |||