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

An error occurred while processing log encryption

$
0
0
We periodically get this message below in the SQL Server log on SQL 2012 Enterprise edition. The database is encrypted using TDE. The encrypted databases on the server were migrated from SQL 2005 and are still set to 2005 compatibility level, we are going to change it to 2012, but have not yet on production.The errors appear usually after a log backup has been saved on one particular database.SQL Log Message:An error occurred while processing log encryption. The process was recovered automatically. No user action is required.Sometimes along with this message is a lock request timeout message but not always.Lock request time out period exceeded.Error: 1222, Severity: 16, State: 55.I understand that it says no action is required, but just curious what is causing this error and is there cause for concern?

SQL Server 2000 SP4 - Read Only DB Suspect

$
0
0
Evening All,In the process of migrating a small DB to SQL Server 2014, I've managed to mark one of the DB's as suspect because it was set to read only during the SP4 upgrade. It was previously SP3.Does anyone know if I can salvage this DB?Things I am thinking is Detach/Reattach, in the hopes its a system table problem - perhaps it doesn't recognise the old system tables since it could not upgrade them?The other option is detach, reattach to a fresh SQL 2000 SP3 build?The reason I was upgrading to SP4 was so that I could then backup/restore to SQL2008R2, and then perform another backup restore onto 2014. But I've fallen at the first fence! Sadly.Help, as always mucho appreciado!Cheers,Alex

Login accounts

$
0
0
I have an old application that is using a SQL 2000 database. We are in the process of moving the database from SQL 2000 to SQL 2008 R2. I have the accounts but I do not have the passwords that the application uses and there is not a configuration file that I can change to password.Does anyone have a process that works to do the following:- Migrate the account and password to a different server- Decrypt the passwordThanks for all the help.

Sql server 2000 - Reverse the fill factor values after DBCC Reindex

$
0
0
Hi,I have applied on a huge [b]SQL server 2000 Database[/b] [b]DBCC Reindex[/b] on all the tables in my Db with the value of fillfactor =100. The Database has a thousands of indexes with the values 85, 75 and 90. Now using the backup of that DB taken before I ran the script, I would like to back out my changes. I executed the script below on the Database with the correct fill factors values and run the result on the database online to fix the fill factor values. this is my script: =========================DECLARE @Index_Name VARCHAR(255) DECLARE @Table_Name VARCHAR(255) DECLARE @cmd NVARCHAR(500) DECLARE @fillfactor INTDECLARE IndexCursor CURSOR FOR Select O.name Table_name, I.name As Index_Name, OrigFillFactorFrom sysindexes I inner join sysObjects O on I.Id=O.IDwhere I.OrigFillFactor>0 and I.OrigFillFactor<100 and O.xtype='U'order by Table_name, Index_NameOPEN IndexCursor FETCH NEXT FROM IndexCursor INTO @Table_Name,@Index_Name,@fillfactor WHILE @@FETCH_STATUS = 0 BEGIN SET @cmd = 'DBCC DBREINDEX( ' + @Table_Name + ',' + @Index_Name + ',' + CONVERT(VARCHAR(3),@fillfactor) + ')' Print(@cmd) FETCH NEXT FROM IndexCursor INTO @Table_Name,@Index_Name,@fillfactor ENDCLOSE IndexCursor DEALLOCATE IndexCursor---------------======= TEST THE RESULT=============================To test the results,select OrigFillFactor, count(*) from sysindexes group by OrigFillFactori run the query above on both databases and compare the results. Unfortunately the results are different. Am I wrong somewhere?Thanks for your help.Abdiel.

SQL server does not use tempdb

$
0
0
I have a DB with some tables more than 7 millions record. However any query ,even with join , from those table are slow and the they are using tempdb at all. The reason that I say tempdb is not used is because its size is about 8 MB and it is not changed. I had no restart to Server them my assumption is that tempdb is not restored from model. Can anyone help me to find why SQL is not using tempdb?

What's running update statistics with fullscan

$
0
0
HelloI have a 2000 instance that seems to periodically run statistics updates on a number of tables (not all) with a full scan and I've no idea what is causing itI can't see any jobs, maintenance plans or scheduled tasks that would cause thisReports are running slowly and I think this is the source of the problemI can kill the process but I'm just wondering how to find what's causing itThanksDamian.

Performanence very slow after migrated database from 2000 to 2008 sql

$
0
0
Users are facing slowness issue after restored database from 2000 to 2008 sql server, they are gernerating report in crystal it takes 5 minutes in SQL 2000 physical server. But after migrated to VM machine sql 2008 with 80 compatilablity , but report gerneration almost takes 3 hours.Could you nyone help on this... what is cause of slowness crystal report generationBR,Jerry

RESTORE (SQLSERVER 2008) VIA BAT

$
0
0
Dears, good morning !I inciante in database and am developing a script for optimization routines in SQLServer.This bat is being run in a Windows environment, and to perform the bat the backup files are displayed on the screen, but would like a solution that, after we select a backup, it should be completed in the corresponding syntax restore, for example ( RESTORE DATABASE test FROM DISK = N'C: \ SQLServer \ Backup \ bkp_xpto.bak '). I wish the selected backup was automatically filled in restore syntax, or I could just type up the name, the restore syntax .--> RESTORE DATABASE test FROM DISK = N'C: \ SQLServer \ Backup \ bkp_XPTO. bak. ' )Note: The backup files are never replaced, they are geradoscom date and time.Attached follows the prints.att,Douglas RamosEm anexo, segue os prints.Att,Douglas Ramos

SQLServerAgent Error: 32. [SQLSTATE 42000] (Error 22022)

$
0
0
Our maintenance job for recycling SQL Server Agent errorlog frequently fails with following error:-----------------------------------------------------------------------SQLServerAgent Error: 32. [SQLSTATE 42000] (Error 22022)-----------------------------------------------------------------------When ran manually ran sp_cycle_agent_errorlog : below error gets reported.---------------------------------------Msg 22022, Level 16, State 1, Line 0SQLServerAgent Error: 32.---------------------------------------

space given in DB name and backup failure

$
0
0
There seems to be an extra space in the database name given when it was created.The backup job is failing with the following error message:BACKUP failed to complete the command BACKUP DATABASE [safe_PreTMS ] TO DISK = N'S:\Full\[b][size="4"]safe_PreTMS \[/size][u][/u][/b]safe_PreTMS _db_201310021607.BAK' WITH INIT , NOUNLOAD , NOSKIP , STATS = 10, NOFORMAT Please observe the space in the above command. When I remove the space and run the backup, it happens without any issue.I am unable to remove the space in the DB name as well.Can someone help me fix this issue

Error 0: This server has been disconnected. You must reconnect to perform this operation.

$
0
0
Good afternoon all,I have recently been getting the above error message when attempting to view 2 databases on a particular server, only when I try to look at the tables in enterprise manager.I have run a checkdb on both databases and they run fine, and I can also select from the tables in QA without any issues, when I continue to get issues with the db's via Enterprise Manager.Both databases were recently restored from backup copies of a live db. One is for use as a test environment, and the other is being used as a standby.I don't know if this is relative to the problem, but I did find it strange that both databases with issues have a similar origin.I have tried restoring from later/earlier backups, but there honestly does not appear to be any issues with the databases themselves, and the issue still appears.there are several other databases on the server and none of the others has had any issues such as this.Has anyone else experienced this problem before?Any suggestions would be greatly appreciated.Thanks in advance for any responses :)

Differences between MS SQL Server and Gupta SQL Server

$
0
0

Hi Guys!!!

I needed to support one of the Gupta SQL Base 8.5 database very soon. Right now I am supporting quite a few MS SQL Server databases (6.5, 7.0 and 2000). Just wanted to check if there were any differences between the two.

Can you please give some information on how big are they different, any links, etc.

Thanks so much.

need sql 2000 (developer) to work on new windows 10 development machine

$
0
0
I have been working on a win2012r2 machine as a development machine. We have sql 2000 developer edition. We definitely need to upgrade, soon, to at least sql2005, for our application, but this will take a lot of regression testing and research. In the meantime we need to stay with 2000. I was asked to build a new development machine with windows 10, which I did. I tried to install sql 2000 today on that windows 10 64 bit machine and I got various "initialization" errors. I've seen various postings about some very tedious steps / workarounds to make this work... not sure I want to go down that road.Another approach I am considering is installing the hyper-v role on the desktop machine and making an older OS vm on the desktop machine. I only have limited experience with hyper-v and that's in a server environment, but it seems like it should be a good workaround.If necessary I can go back to windows 8 or 7, but I'd really rather not, unless absolutely necessary. Any recommendations on how to handle this situation would be appreciated. Thanks.

SQL 2000 PK Constraint Error

$
0
0
I have inherited a SQL 2000 database that the previous DBA archived data by removing the compound primary key used in the production table; unfortunately there are now thousands of duplicate records in the table. I'm trying to clean up the archived data so I've created a new table and added the compound primary key. I have tried coping the DISTINCT records into the new table, but get a violation of primary key constraint error - cannot insert duplicate key in object. I also tried doing a GROUP BY all on fields, and still receive the PK error. I thought by using DISTINCT I would only receive unique records to insert into the new table but I'm unable to get past the PK constraint error. Any help you can provide would be greatly appreciate. Working in SQL Server 2000 Query Analyzer.Thanks!!

detach and re-attach mdf/ldf files results in read only database

$
0
0
I am trying to move some databases from the E: drive to the F: drive as we are running out of space on E:. In Enterprise Manager (SQL 2000) I've backed up the database, detached the database (both with and without updating statistics, copied the files to F: and reattached them. The database appears read only. I can run a DBCC CHECKDB and no errors are generated but when I try to remove the readonly property I get "Error 5105: Device activation error. The physical file name 'F:\Databases\data\sdbWCQP_Data.MDF' may be incorrect. The physical file name 'F:\Databases\data\sdbWCQP_Log.LDF' may be incorrect. Could not restart the database 'sdbWCQP'. Reverting back to old status."If I detach and reattach on the E: drive or if I create the database on the F: drive and restore the backup it works fine. Only have the problem with detach from E: and reattach on F:I can always do the backup and restore but I'm trying to minimize the time the database is unavailable and figure detach, copy and move will be faster.

SQL 2000 cant not login using servername\Instancename

$
0
0
Hello,After sql server restart I've noticed that I [b]can[/b] login remotly only using: instancenameinstancename,portIP,portBut [b]can not [/b]login using only: Instancename (before restart that was possible)Can someone give me a hint what has been changed?KR,Porter

PAGEIOLATCH_EX

$
0
0

Environment:

  • SQL Server 2000 sp3
  • 8 CPUs
  • Auto Statistics option is ON
  • Simple Recovery Mode

Issue:

  • Running a batch of INSERT statements that has been running for a very long time during development of a migration tool

Some diagnostic

  • SELECT * FROM sysprocesses WHERE spid = 53

spid kpid blocked waittype waittime lastwaittype waitresource ecid 53 2104 0 0x0000 0 PAGEIOLATCH_EX 13:1:6938984 053 2828 0 0x0208 16 CXPACKET 153 2680 0 0x0208 16 CXPACKET 253 704 0 0x0208 16 CXPACKET 353 3408 0 0x0208 16 CXPACKET 453 2792 0 0x0208 16 CXPACKET 553 912 0 0x0208 16 CXPACKET 653 616 0 0x0208 16 CXPACKET 753 760 0 0x0208 16 CXPACKET 8

I am aware that ecid = 0 corresponds to the parent thread.

QUESTION: Does this look OK?

Thanks for your help.

Setting Query Governor to zero Not having any effect

$
0
0
Hello Experts,I am trying to do a database upgrade using our internal .net based application. When I run it on the clients SQL ServerExpress 2012 I get"The query has been canceled because the estimated cost of this query exceeds the configured threshold of xx"I restored the DB to an instance of SQL ServerExpress 2012 on my own machine and got the same error.I went into Server, Connections and unticked "Use query governor to prevent long-running queries".I then successfully did the update.I did the same on the client server, restarting the SQL server service after making the change and still get the original error.The setting on my instance and theirs appear to be the same. The only difference I can see is their instance SP3 and mine is RTM.Any suggestions most welcome.

Performance issue

$
0
0
hi all,I have 10Gb DB.From past 2-3months my DB slows down due to high transaction.I have added new filegroup and moved some table in it using cluster index.I also add one log file to Database..I want to conform whether this will help me in improvment or not?Can any one help me with this issue?Thanks,Neerav

Locking SQL Server Logins

$
0
0
All,I know that I can use sp_denylogin and sp_revokelogin for Windows NT or 2000 users and groups. How can I lock the logins for SQL Server Authenticated logins? Didn't there used to be a sp_locklogin system proc?Thanks In Advance,DariasEdited by - dgbrown on 06/18/2002 12:55:21 PM
Viewing all 482 articles
Browse latest View live