Solved

xp_grantlogin fails in 6.5

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

777 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