Hi
I have a strange problem connecting to a local SQL Server 2000 on a machine
running Windows 2003 Server.
I'm using a plain connection as shown in the code below:
Dim oServer as New SQLDMO.SQLServer
With oServer
.LoginTimeout = -1
.LoginSecure = True 'Use NT Authentication
.AutoReConnect = False
.Connect (strServerName)
End With
I'm connecting through the IP of the machine.
The problem is:
When I have a system32\drivers\etc\hosts entry specified pointing at the
same machine, then I cannot connect to the SQL Server using NT Authenticatio
n.
I can however still connect by using SA user.
Error is:
Runtime error '-2147203052 (80044814)':
[Microsoft][ODBC SQL Server Driver][SQL Server] Login failed for user
'(null)'. Reason: Not associated with a trusted SQL Server connection.
If I remove the hosts entry I can connect without problems using both NT
authentication and SA user.
It doesn't make any difference about the problem if I'm running NT
authentication mode or mixed mode.
This code having this problem has run without problems on Windows 2000
server, so it is an issue with Windows 2003 server.
Does anyone have a clue to what might cause this problem?
Thanx in advance
/BrianJust a note, if other people should have the same problem.
A temporary work-around is to define the entry in the Hosts entry as an
Alias in
SQL Server - Client Network Utility.
/Brian
"Brian Nielsen" wrote:
> Hi
> I have a strange problem connecting to a local SQL Server 2000 on a machin
e
> running Windows 2003 Server.
> I'm using a plain connection as shown in the code below:
> Dim oServer as New SQLDMO.SQLServer
> With oServer
> .LoginTimeout = -1
> .LoginSecure = True 'Use NT Authentication
> .AutoReConnect = False
> .Connect (strServerName)
> End With
> I'm connecting through the IP of the machine.
> The problem is:
> When I have a system32\drivers\etc\hosts entry specified pointing at the
> same machine, then I cannot connect to the SQL Server using NT Authenticat
ion.
> I can however still connect by using SA user.
> Error is:
> Runtime error '-2147203052 (80044814)':
> [Microsoft][ODBC SQL Server Driver][SQL Server] Login failed for user
> '(null)'. Reason: Not associated with a trusted SQL Server connection.
> If I remove the hosts entry I can connect without problems using both NT
> authentication and SA user.
> It doesn't make any difference about the problem if I'm running NT
> authentication mode or mixed mode.
> This code having this problem has run without problems on Windows 2000
> server, so it is an issue with Windows 2003 server.
> Does anyone have a clue to what might cause this problem?
> Thanx in advance
> /Brian
Showing posts with label sql-dmo. Show all posts
Showing posts with label sql-dmo. Show all posts
Tuesday, March 27, 2012
Friday, February 17, 2012
Connecting a SQL-DMO 7 client program to a sql 2K server
Hi,
We are running a client program on NT 4 using SQL-DMO objects. We have
upgraded the server (on another box) from NT4/Sqlserver 7 to WS
2003/Sqlserver 2K. Our Sql-DMO program is now returning an error.
We would like to avoid to upgrade the NT4 client box for stability reasons.
The doc is unclear to say if the sql-dmo 7 is compatible with sqlserver 2K.
Does somebody as tested this configuration ? What can we test to track down
this problem ?
Thanks in advance for your help.
Hi
DMO v7.0 is not compatible with DMO 2000.
You need to upgrade in any case due to the end of support for NT 4.0 by
Microsoft.
Regards
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Phil" <PhilG@.newgroups.nospam> wrote in message
news:2CE0791B-7D6F-4160-BC7B-CA87C469AF99@.microsoft.com...
> Hi,
> We are running a client program on NT 4 using SQL-DMO objects. We have
> upgraded the server (on another box) from NT4/Sqlserver 7 to WS
> 2003/Sqlserver 2K. Our Sql-DMO program is now returning an error.
> We would like to avoid to upgrade the NT4 client box for stability
> reasons.
> The doc is unclear to say if the sql-dmo 7 is compatible with sqlserver
> 2K.
> Does somebody as tested this configuration ? What can we test to track
> down
> this problem ?
> Thanks in advance for your help.
We are running a client program on NT 4 using SQL-DMO objects. We have
upgraded the server (on another box) from NT4/Sqlserver 7 to WS
2003/Sqlserver 2K. Our Sql-DMO program is now returning an error.
We would like to avoid to upgrade the NT4 client box for stability reasons.
The doc is unclear to say if the sql-dmo 7 is compatible with sqlserver 2K.
Does somebody as tested this configuration ? What can we test to track down
this problem ?
Thanks in advance for your help.
Hi
DMO v7.0 is not compatible with DMO 2000.
You need to upgrade in any case due to the end of support for NT 4.0 by
Microsoft.
Regards
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Phil" <PhilG@.newgroups.nospam> wrote in message
news:2CE0791B-7D6F-4160-BC7B-CA87C469AF99@.microsoft.com...
> Hi,
> We are running a client program on NT 4 using SQL-DMO objects. We have
> upgraded the server (on another box) from NT4/Sqlserver 7 to WS
> 2003/Sqlserver 2K. Our Sql-DMO program is now returning an error.
> We would like to avoid to upgrade the NT4 client box for stability
> reasons.
> The doc is unclear to say if the sql-dmo 7 is compatible with sqlserver
> 2K.
> Does somebody as tested this configuration ? What can we test to track
> down
> this problem ?
> Thanks in advance for your help.
Connecting a SQL-DMO 7 client program to a sql 2K server
Hi,
We are running a client program on NT 4 using SQL-DMO objects. We have
upgraded the server (on another box) from NT4/Sqlserver 7 to WS
2003/Sqlserver 2K. Our Sql-DMO program is now returning an error.
We would like to avoid to upgrade the NT4 client box for stability reasons.
The doc is unclear to say if the sql-dmo 7 is compatible with sqlserver 2K.
Does somebody as tested this configuration ? What can we test to track down
this problem ?
Thanks in advance for your help.Hi
DMO v7.0 is not compatible with DMO 2000.
You need to upgrade in any case due to the end of support for NT 4.0 by
Microsoft.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Phil" <PhilG@.newgroups.nospam> wrote in message
news:2CE0791B-7D6F-4160-BC7B-CA87C469AF99@.microsoft.com...
> Hi,
> We are running a client program on NT 4 using SQL-DMO objects. We have
> upgraded the server (on another box) from NT4/Sqlserver 7 to WS
> 2003/Sqlserver 2K. Our Sql-DMO program is now returning an error.
> We would like to avoid to upgrade the NT4 client box for stability
> reasons.
> The doc is unclear to say if the sql-dmo 7 is compatible with sqlserver
> 2K.
> Does somebody as tested this configuration ? What can we test to track
> down
> this problem ?
> Thanks in advance for your help.
We are running a client program on NT 4 using SQL-DMO objects. We have
upgraded the server (on another box) from NT4/Sqlserver 7 to WS
2003/Sqlserver 2K. Our Sql-DMO program is now returning an error.
We would like to avoid to upgrade the NT4 client box for stability reasons.
The doc is unclear to say if the sql-dmo 7 is compatible with sqlserver 2K.
Does somebody as tested this configuration ? What can we test to track down
this problem ?
Thanks in advance for your help.Hi
DMO v7.0 is not compatible with DMO 2000.
You need to upgrade in any case due to the end of support for NT 4.0 by
Microsoft.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Phil" <PhilG@.newgroups.nospam> wrote in message
news:2CE0791B-7D6F-4160-BC7B-CA87C469AF99@.microsoft.com...
> Hi,
> We are running a client program on NT 4 using SQL-DMO objects. We have
> upgraded the server (on another box) from NT4/Sqlserver 7 to WS
> 2003/Sqlserver 2K. Our Sql-DMO program is now returning an error.
> We would like to avoid to upgrade the NT4 client box for stability
> reasons.
> The doc is unclear to say if the sql-dmo 7 is compatible with sqlserver
> 2K.
> Does somebody as tested this configuration ? What can we test to track
> down
> this problem ?
> Thanks in advance for your help.
Subscribe to:
Posts (Atom)