Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 9th, 2005, 12:43 PM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error 18452: Login Failed for user '(null)'. Reas

Error 18452: Login Failed for user '(null)'. Reason: Not associated with a trusted SQL Server Option.

Hello,
Was wondering if i can get some assistance with the above error msg?

Here's the details:
I am trying to link to a server BBB from server AAA. When I am local on server AAA all works fine. I am using Windows Authentication.
I am accessing server AAA from my desktop. The problem is: if i go to the linked servers option & try to view server BBB i get the above error msg. I am setup with Windows Aut... on both servers. Can't figure out why.
Your help will be much appreciated!



Thanks!
Nigel
 
Old February 10th, 2005, 05:43 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Your credentials are obviously not being passed from AAA -> BBB. You need to look up 'delegation' in BOL - there's a good article entitled 'Security Account Delegation' (you can find it from the index under 'security accounts, delegation'). This article explains all the conditions needed for delegation to work.

If you can't get all these conditions set up then you'll need to create a SQL login on sever BBB and map your windows login to that SQL login (see 'linked servers, login' in BOL).

hth
Phil
 
Old February 10th, 2005, 12:19 PM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your help 'pgtips'! i just went ahead & created an SQL Login. Simplest solution.

Thanks!
Nigel





Similar Threads
Thread Thread Starter Forum Replies Last Post
Login failed for user <null> bmcelhany BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 2 December 29th, 2005 03:28 AM
error Login failed for user 'HOME\ASPNET' Raif ASP.NET 1.0 and 1.1 Basics 3 December 23rd, 2005 02:09 PM
Login failed for user '(null)' schockp ADO.NET 5 April 30th, 2004 11:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.