Solved

xp_grantlogin fails in 6.5

Posted on 2000-03-23
3
339 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 146 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

691 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