Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

xp_grantlogin fails in 6.5

Posted on 2000-03-23
3
Medium Priority
?
362 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
chigrik earned 584 total points
ID: 2650800
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
ID: 2651938
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
ID: 2652522
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
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 to return specific rows and columns, with various degrees of sorting and limits in place.

610 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