Solved

xp_grantlogin fails in 6.5

Posted on 2000-03-23
3
326 Views
Last Modified: 2012-08-13
Ok what am I doing wrong
using xp_grantlogin <login>
gives this
Cannot find the function 'xp_grantLogin' in the library 'xplog60.dll'. Reason: '(null)'

I am running sp5a If I replace the dll mentioned with that from sp4 it works!


0
Comment
Question by:simonsabin
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
chigrik earned 146 total points
Comment Utility
Read about "Error 2812" from Books Online.
It's therefrom:

"
Severity Level 16

Message Text
Stored procedure '%.*s' not found.

Explanation
An attempt was made to execute a stored procedure that does not exist. If the procedure does exist (it appears when sp_help is run with no parameters), the error might have occurred because you did not fully qualify the procedure name. If the procedure is not owned by the user attempting to execute it, and it is not owned by the database owner (DBO), all references to it must include the owner name. For example, suppose user1 creates a procedure called proc1. Any users must add the owner name before the procedure name, as shown in the following example:
execute user1.proc1

Naming conventions for database objects are as follows:
[[database.]owner.]object_name.column_name
"

This is my test example:

USE pubs
GO

xp_grantlogin 'TestAcc', 'admin'
GO

This is the results set:

"
Msg 2812, Level 16, State 4
Stored procedure 'xp_grantlogin' not found.
"

It's correct version:

exec master..xp_grantlogin 'TestAcc', 'admin'

This is the results set:

"
Granted.
"      

I checked it with sp5a.

SELECT @@version

"

-------------------------------------------------------------------------------------------------------------------------
Microsoft SQL Server  6.50 - 6.50.416 (Intel X86)
       Jan 23 1999 14:10:24
       Copyright (c) 1988-1997 Microsoft Corporation

(1 row(s) affected)

"
0
 
LVL 8

Expert Comment

by:chigrik
Comment Utility
Try this (may be this helps):

USE master
GO

if exists (select * from sysobjects
                where sysstat & 0xf = 4
                        and name = 'xp_grantlogin')
        exec sp_dropextendedproc 'xp_grantlogin'
GO

sp_addextendedproc 'xp_grantlogin', 'xplog60.dll'
GO
0
 
LVL 7

Author Comment

by:simonsabin
Comment Utility
I am purplexed because what I was doing yesterday no longer works
I was running in master and so master.. should not be required, which it isn't this morning.

SQL server what a stable platform.

Points are yours thanks for the help.
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now