Re: Connection to SQL Server on Vista
- From: "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 28 Jan 2008 21:08:29 -0600
First, my VB6 app is able to connect to a database on Vista, but I use a
connection string without "UID=", and I specify the server with
"SERVER=MyComputer", even if is the local machine.
If the database requires administrator privileges, then you must run the app
by right clicking and selecting "Run as administrator". If you are already
logged in as Administrator, the app will run with the correct privileges.
Otherwise you will be prompted for administrator privileges. On Vista it
does not matter that you are logged in as administrator. What you describe
seems to indicate that what your vb6 app is attempting to do requires
administrator privileges.
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
"vovan" <v@xxxxx> wrote in message
news:%23yAmkphYIHA.5160@xxxxxxxxxxxxxxxxxxxxxxx
After I turned UAC off everything started to work.
Is there any way to work with UAC ON?
Thank you
vovan
"vovan" <v@xxxxx> wrote in message
news:e%23jRhPhYIHA.4476@xxxxxxxxxxxxxxxxxxxxxxx
I have VB6 application which connects to SQL Server 2000 (installed on the
developer machine) database.
I use this code to connect:
strConnectionString = "DRIVER=SQL
Server;SERVER=(local);UID=;DATABASE=Coordinator;Trusted_Connection=Yes"
objConn.Properties("Extended Properties") = strConnectionString
objConn.Open
Everything works fine on Windows XP
I installed everything I need on my laptop with Vista Business and tried
to run my application.
I'm getting an error saying 'Login failed for user
'NameOfMyLaptop\MyName'
I installed everything I need on the same laptop but I replaced Vista
with XP. Everything works.
So, the only difference I see it's OS.
Any suggestion please
Thank you
vovan
.
- References:
- Connection to SQL Server on Vista
- From: vovan
- Re: Connection to SQL Server on Vista
- From: vovan
- Connection to SQL Server on Vista
- Prev by Date: Re: Connection to SQL Server on Vista
- Next by Date: Update fields in previous row from fields in current row
- Previous by thread: Re: Connection to SQL Server on Vista
- Next by thread: Re: Connection to SQL Server on Vista
- Index(es):
Relevant Pages
|
Loading