Sp_helpdb

Jul 9, 2002

Has anyone every seen this error message? If so, what caused it?

Server: Msg 515, Level 16, State 2, Procedure sp_helpdb, Line 53
Cannot insert the value NULL into column '', table ''; column does not allow nulls. INSERT fails.
The statement has been terminated.

Thanks

View 2 Replies


ADVERTISEMENT

Sp_helpdb Problem Plz Help

Feb 16, 2005

i use sp_helpdb on one of my databases everyday to estimate growth.
3 days in a row now i get the same results how could this be every day there are about 30000 record that gets inserted to my tables inside the db. should the information changed since it is growing in size ?

View 4 Replies View Related

Sp_helpdb Not Working Plz Help

Feb 18, 2005

Well i have been using sp_helpdb 'mydatabasename' to get the info for 3 consecutive days now and it returns the same result every day in KB for data files and in MB overall database size. Wich is kinda impossible since this is a warehouse and there are about 30000 records insert every night what is going on. plz help

View 1 Replies View Related

Sp_helpdb Error

Dec 6, 2005

Hi,
I have MOM 2005 installed to monitor all our sql servers. In one of the sql server on a specific db, I get error alerts when running the sp_helpdb error.

The error output is

"Server: Msg 515, Level 16, State 2, Procedure sp_helpdb, Line 53
Cannot insert the value NULL into column '', table ''; column does not allow nulls. INSERT fails.
The statement has been terminated."

I checked the sp_helpdb stored procedure and here is where it fails:

insert into #spdbdesc (dbname, owner, created, dbid, cmptlevel)
select name, suser_sname(sid), convert(nvarchar(11), crdate), dbid, cmptlevel from master.dbo.sysdatabases
where (@dbname is null or name = @dbname)

I understand this is a temporary table created by the stored procedure to insert all the db info.

I ran a query as follows:

select name, suser_sname(sid), crdate, dbid, cmptlevel
from master.dbo.sysdatabases

The output is

DB Name User Name Cr date db id cmpt
master sa2000-08-06 01:29:12.250180
model sa2000-08-06 01:40:52.437380
msdb sa2000-08-06 01:40:56.810480
RMSummaryNULL2002-06-13 16:40:32.203880
tempdb sa2005-11-29 19:10:48.450280

The problem is in RMSummary database and the "dbo" login does not
have a username.

How do I add a User Name "sa" to the DB Owner "dbo" for the RMSummary database?

I did try the following things with no success:

1. Try to delete the 'dbo' user in 'RMSummary' database so that
I can add a new login name as 'dbo' and username is 'sa'.
Error message is 'dbo' owns some objects and does not get deleted.
2. I tried sp_changedbowner but it does not work either.

Any help on this quickly is much appreciated.

Thanks
Murali

View 7 Replies View Related

Why Is Sp_helpdb And Sysdatabases Different

Jul 23, 2005

I have a strange question and hope someone can shed some light on theproblem.First let me give you my scenario. We are using doubletake to replicate ourdatabase server files between the local site and off site. I will namethese servers srv1a (local) and srv1b (remote). It now time to move to newservers. These servers will be srv2a (local) and 2b (remote).Currently srv1a replicates to srv1b. The sqlserver service is off on srv1b.It is only replicating the database files. Works great.Now the problem. srv1a and srv1b have all the logs and data files on thed: drive. On the new servers (2a and 2b) we will place the log files one: and the data files on f:. This is the case for all databases exceptthe system databases, which will reside all ldf and mdf on f:.In order to move to the new servers, as a test we began replicating to srv1ato svr2a. It placed all the system dbs on srv2a d: drive and all otherfiles in the new structure (e: and f:). There is some work that you mustdo to move the master, msdb, model, and temp to the new location (change thestartup parameters and detaching and reattaching some other databases). Allthis works great and we have everything up and running.As part of a sanity check, I ran the following statementsselect name, filename from master..sysdatabases where name = 'master'GOexec sp_helpdb master.GOresults arename filenamemaster d:Microsoft SQLServerMSSQLdatamaster.mdf(1 row(s) affected)name db_size owner dbid createdmaster 22.00 MB sa 1 Aug 6 2000 Status=ONLINE,name fileid filenamefilegroup size maxsize growth usagemaster 1 F:Microsoft SQL Server DataMSSQLDatamaster.mdfPrimary 19072 KB Unlimited 10% data onlymastlog 2 F:Microsoft SQL Server DataMSSQLDatamastlog.ldfNULL 3456 KB Unlimited 10% log onlyIf you notice that sysdatabases table is showing the master files on D: butsp_help is showing on F: F: is the correct location. Also my startparameters is-dF:Microsoft SQL Server DataMSSQLDatamaster.mdf-lF:Microsoft SQL Server DataMSSQLDatamastlog.ldf-eF:Microsoft SQL Server DataMSSQLDataERRORLOGAny ideas why the two are not showing the same thing? Everything is workingfine and all other databases (sp_helpdb) is correct and sp_helpfile masteris showing the same thing as sp_helpdb master. Since I though sp_helpdb wasquerying sysdatabases, I am confused as to why this is happening.Any help would be greatly appreciated. Sorry for the long post.

View 2 Replies View Related

Select Db_size From Sp_helpdb ?

Apr 16, 2004

Hey,

I want to do a 'select db_size from sp_helpdb where name = @DB;'
The problem is that SQL doesn't interpret sp_helpdb as a table :-(
How can I query the result of this stored procedure?

Thx

View 1 Replies View Related

How To Do A Select From Sp_helpdb's Output ?

Sep 25, 2005

Hi friends,
I want to select only filename column of sp_helpdb's output.But I don't know how should I do this? Other way is doing a direct select from sysfiles or sysdatabases but as you know microsoft doesn't recommand this way. Also I can select that filed in my application level but it is strange for me: Of course sql server should has a proper way to do a select from output curosr of this procedure,Doesn't it?
-Thanks in advance

View 4 Replies View Related

Error Running Sp_helpdb

Nov 15, 2005

When I run sp_helpdb against the master (or any other DB for that matter) I get the following error:

Server: Msg 515, Level 16, State 2, Procedure sp_helpdb, Line 53
Cannot insert the value NULL into column 'owner', table 'tempdb.dbo.#spdbdesc_ 0010001A6EF'; column does not allow nulls. INSERT fails. The statement has been terminated.

I have about 20 DBs on a SQL Server 2000 Standard Edition Instance with sp3a .

There have been no changes made to the Server or the SQL Server Instance in quite some time. Can anyone tell me how I should proceed??????

View 6 Replies View Related

Format Result Of Sp_helpdb

Jul 23, 2005

Hello.How to format field "create" (Jan 12 2005) in sp_helpdbprocedure to sth like yyyy-mm-dd (2005-01-12) in SQL?bye...--__ __|__\ | || |_// / \ \_// FreeBSD: The Power To Serve|__// |__|| | \ \__// / \ +------------------------------++[ http://bukox.prv.pl ][ http://total.bukox.dmkproject.pl ]+

View 1 Replies View Related

Problems With 'sp_helpdb' Stored Procedure

Jul 20, 2005

Hi,One of our customers claims that the sp_helpdb truncates database namelarger than 24 characters, the release is 7.00.1094, did any oneencounter such a problem ???

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved