Quantcast
Channel: SQLServerCentral » SQL Server 7,2000 » Administration » Latest topics
Viewing all 482 articles
Browse latest View live

LOCK:TIMEOUT in Tempdb, ObjectID=0

$
0
0
The setup: SQL Server 2000 sp4, 2 CPU box with hyperthreading, 4G memory, more than enough free hard drive space. The application is written in Java, and uses Hibernate, c3p0, jTDS, JNDI, and I'm not sure what else.The situation: stress testing, having our app do a routine set of calls, and increasing the number of users until something happens. Currently, the "something happens" is the application ceases to function at a certain ponit of volume.The symptoms: - Profiler shows that the vast majority of submitted work is sp_execute calls for previsoulys sp_prepared queries. - Profiler also shows a very large number of "Lock:Timeout" events the minutes leading up to the application crash, in database id 2 (tempdb) for object id 0 (???). - Connection Timeout settings are [unless it's hidden very well] totally untouched, meaning they should be "don't timeout".So what does it mean to get a flood of lock timeouts on tempdb when temp tables are apparently not being used, on object ID 0 which does not actually exist? Philip

Not clustered or the cluster service is up and online

$
0
0
Hi All,Issues while installing new instance on one node (which is acting as a DR server in availability groups).I am getting below error When I am applying SQL 2012 SP2 after SQL Server 2012 installation.Rule "Not clustered or the cluster service is up and online." failed.Please suggestNote: In one cluster we have setup 4 nodes (Primary, Secondary replica, DR and file share. Vote count for DR is 0).I have tried making the node as a preferred owner. When I am trying to repair instance it is showing WMI error along with this errorThanks

Does SQL Server 7.0 have the option of Full, Simple, Bulk Recovery models

$
0
0
HiI have a lot of versions of SQL Server Standard edition. Does anyone know if SQL Server 7.0 have the concept of recovery models?ThanksKathy

Continuous slowness from last 2 week

$
0
0
Hello,We are supporting one of the client and they are facing slowness from last couple of weeks at a specific time. I have setup the sql profiler but not couldnt find anything unusual. I did check error-logs and it seems perfectly fine. No jobs running during that time.Am i missing anything? Any input will be greatly appreciate.Thanks a lot for your help in advance.

Decyphering waitresource

$
0
0
I have a spid that shows a wait resource in the form n:n:nnnnnnn . The first number is dbid and the second (I believe) is fileid, and I think the third might be page number? This is different than the waitresource type TAB: n:nnnnnn which seems better documented. What would be great is a script that converts this waitresource 'address' to the object name.Thanks!

SQL Server 2000 Replication

$
0
0
I have a SQL Server 2000 Database that I cannot delete because it is being used for Replication (I believe it is a subscriber) but I do not know which instance the Publisher is. Is there a way to remove the subscription (on the subscriber side) so I can drop this Database ? This is all Dev so I'm not worried about breaking anything..

Red Squiggly line by my Server name in SQL Server 7.0

$
0
0
HiCan anyone tell me why I have a red squiggly line by my server name in SQL Server Enterprise Manager 7.0?ThanksKathyPlease see jpg attached

'MMC could not create the snap-in' Error in SQL 2000

$
0
0
Hi!Our Systems guys were doing SQL patching the night before. Now I am not able to access SQL Server Enterprise Manager. At every attempt, the following error message shows up: "MMC could not create the snap-in. The snap-in might not have been installed correctly".Based on some of my reading online, I needed to create the 'SqlPath' with Data value ("C:\Program Files\Microsoft SQL Server\80\Tools") in the Registry Editor. That information (SQLPATH and data string value) were already there. I also verified that the 'sqlmmc.dll' file exists at this location (C:\Program Files\Microsoft SQL Server\80\Tools\Binn). The issue still persists with the same error message. Any help/recommendation/suggestions are highly appreciated.Thank you,Ballaket

Description of a TempTables

$
0
0
Hi,I would like to find the equivalent command to describe the property of a temp table.You can use sp_help tablename where tablename is permanent...But get an error message when using sp_help on a temptable.Any advicenb. Is there an equivalent Oracle 'Desc ' in SQL Server

Open Transactions

$
0
0
Hi All,I know how to see active open transaction or current long running transaction (DBCC OPENTRAN) but how can I get the information of the long running transaction which has been occcured yesterday. I know I can see through background trace files but apart from this any other fast way to see this.Thanks in advance.Regards,Austin

Checkpoint Duration

$
0
0
Is there any way to know, what is the duration set for Checkpoint.I know we can set\customize it, but i want to know the current duration, if someone has changed it.Also i want to know if there is any default duration for checkpoint.As per my understanding SQL Server manage this automatically.Is it related to REcovery Interval Setting?

Cannot log in/connect to databases

$
0
0
Hello,I really don't work with SQL Server much. I had to move some servers from one building to another and set them back up. After booting up the SQL Server (2000) and went into Server Manager I saw that the databases did not load up/get connected to. And I mean none of the databases, Master, the production database, or any other default databases. I'm certain it is a login issue with the current configuration.I do know the local user account credentials that have always been used to log into the server. I also know the domain admin account credentials. What I do not know is the sa account, or if that account has ever been used by the server manager to connect to the databases. I don't know which authentication method has been used in the past (Windows only or SQL Server) but neither one of them are currently working for me. I right click on Local and connect and try to connect using the either of the 2 log in account I know and it tells me to right click on Local and check the registration properties. When I do that all I see are 2 computers on the network that have nothing to do with the server or databases. I have switched between SQL Server and Windows authentication in Server Manager from the Tools menu. Nothing.The one thing I just thought of was to right click on the SQL service and look there. I'll try that but not sure what I will find different.I know I'm not giving a great deal of info here, but it's all I have. I'm not real experienced with sql server configuration. Nobody in the office knows anything at all about it to help me. I did not install or configure this server. It was done by a company that has been out of business now for years. I'm really on my own without much to go on. I do work at this office once every year or 2 so my familiarity with what goes on there is minimal. All I can say is that there is nothing listed under Local. I know the main log in account for that server and the domain admin. And I have checked the physical database file location and it is there and sql server manager is configured correctly to find that database file. I think backups of the database are non-existent. If anyone can help with the basic troubleshooting of connecting to the databases I would really appreciate it. Thanks

How to fix "Divide by zero error" in SQL Server

$
0
0

Hi All,

Anyone know how to fix the error "Divide by zero error encountered. [SQLSTATE 22012] (Error 8134) "

Thanks in advance

-snt

tempdb..syscolumns growing in size without obvious reason

$
0
0
Hi all, Does anybody have ever seen tempdb..syscolumns table growing in size while maintaining ~300 entries? [code="sql"]select cast(object_name(id) as varchar(10)) as name,status,dpages,reserved,used,rowcnt from sysindexeswhere object_name(id) = 'syscolumns'[/code]name| status| dpages| reserved| used| rowcnt|---------- ----------- ----------- -----------syscolumns| 16402| 403334| 631854| 594834| 35593|syscolumns| 2 | 188710| 80561| 78437| 75|[code="sql"]select count(*) from [dbo].[syscolumns][/code]-----------278 [code="sql"]DBCC SHOWCONTIG (syscolumns)[/code]-----------DBCC SHOWCONTIG scanning 'syscolumns' table...Table: 'syscolumns' (3); index ID: 1, database ID: 2TABLE level scan performed.- Pages Scanned................................: 397609- Extents Scanned..............................: 55244- Extent Switches..............................: 224894- Avg. Pages per Extent........................: 7.2- Scan Density [Best Count:Actual Count].......: 22.10% [49702:224895]- Logical Scan Fragmentation ..................: 26.88%- Extent Scan Fragmentation ...................: 30.11%- Avg. Bytes Free per Page.....................: 4048.6- Avg. Page Density (full).....................: 49.98%The table is growing with approx speed 1GB/hourThis is happening on SQL 2000 Ent (8.00.2066)Any help or advise is very appreciated!

sysobjects id field value limit reached (INT)

$
0
0
We have an application that creates physical tables in the database. The tables serves like a temporary tables and are supposed to be automatically dropped after use. Over the years, nobody realizes that there is a bug in the application and the tables that were created are not getting cleaned up/dropped. It has accumulated "hundred million" tables and I noticed that the maximum value for the sysobject ID field has already been reached. It appears that tables are still getting created because sql server "reuses" an ID number (probably the ones that were used previously by table objects that's already been dropped). Is this behavior documented by Microsoft? I tried searching the internet related to this but cannot find any, and I just need to be able to tell the business owners that this behavior (reusing the sysobjects ID once it's maxed out) is documented somewhere from Microsoft. Appreciate any feedback.

Cannot delete data file

$
0
0

I have a database with 8 data files. I ran a DBCC Shrinkfile with emptyfile option on one file (90GB size) which ran successfully. But when I try to delete the file now, it throws the following error:

Error 5042: The file 'data8' cannot be removed because it is not empty.

I tried the same thing with other smaller data files and I could easily delete those files.

Even when I try to shrink the file, the file size remains same.

Please help!! I need to urgently get the database size reduced.

Thanks,

Kedar

The log for database "databasename" is not available.

$
0
0
"The log for database MYDB is not avaiable" .. when writing an UPDATE statement to a table.We first observed this problem today in a database but I found out that in addition we have had an error in the application log "Backup Request: WaitForIOCompletion: Write failure on backup device "Y:\MyDB_Log.ld.Operating Syste Rror 1117: The request could not be perfoirmed because of an IO error".I can perfectly see the LUN where the transaction log is and I can get to that folder an d connect to the database to do SELECTS or even see the properties from Enterprise Manager, but we cannot do anything that involves the transaction log.

BCP in file where 1st line is different

$
0
0
Hi there,Basically I have a comma delimited file (with 5 fields) that I need to import into SQL Server 2008 using BCP. The first line however is different from the rest in that it only contains one column, this being a record count of the number of records on the file. I intend to use this record count to ensure that the file contains the correct number of records once the import is complete. I can import it in fine (with the help of a format file) when the record count row isn't there, but when it is it (quite expectedly) falls over, even though I remove the reference to the format file.Does anyone know the best way of of importing in both the row with the row count and all the records afterwards please?Thanks very much

enabled job vs enabled schedule

$
0
0

Hi all, a really stupid newbie question.

Say you created a new job. This job is schedule to run everyone 1 hour. Now I don't want it to run every 1 hour but disable the job (don't want to delete it just yet). In the job properties, I unchecked the 'enabled' tick box. So now the job is disabled, but I didn't disabled the schedule itself (the one that runs every 1 hour), will that still cause the job to run even though I disabled it?

thx

XP_INSTANCE_REGREAD

$
0
0

I have a SQL2005 question:

I have a query that runs fine on SQL2000

declare @rc int,@dir nvarchar(5)

exec @rc = master.dbo.xp_instance_regreadN'HKEY_LOCAL_MACHINE',N'Software\Microsoft\MSSQLServer\MSSQLServer\SuperSocketNetLib\Tcp',N'TcpPort', @dir output

select @dir

@dir returns 1433

Under SQL2005 it returns

RegQueryValueEx() returned error 2, 'The system cannot find the file specified.'

Anyone have an idea?

thanks

Viewing all 482 articles
Browse latest View live