We have an installer to create some SQL objects.
For SQL Server we have Windows Authentication. Now the problem is the currently logged in user performing installation does not have access to SQL Server. So we want to provide credentials of some other user and then make connection to SQL Server using this user (Windows Authenticaiton)
Is this possible to impersonate some other user and then connect using Windows Authentication?
Yes, you have to use
runasfor your installer, or the equivalent within it.Or prompt for credentials.