Solved

xp_grantlogin fails in 6.5

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LTrim & Double Space Correction 5 40
query question 12 32
Access join syntax when converting to T-SQL query 4 33
SQL Log size 3 17
Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

856 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