.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

Upgrade SqlDatabase 2005 to SqlDatabase 2008 Error

Posted By:      Posted Date: October 11, 2010    Points: 0   Category :Sql Server
 

i have sql database 2005 and the log file when i want to update My sql server to 2008 i found the problem with attach the old datebase file the error is :

Msg 3415, Level 16, State 3, Line 1
Database 'SMMS_test' cannot be upgraded because it is read-only or has read-only files. Make the database
 or files writeable, and rerun recovery. Msg 1813, Level 16, State 2, Line 1 Could not open new database 'SMMS_test'. CREATE DATABASE is aborted.

plz help me to solve this problem and i want to attach my old 2005 databases thank all pro

the code i used is :

USE [master]
GO
CREATE DATABASE [SMMS_test] ON 
( FILENAME = N'D:\Databases\SMMS_test.mdf' ),
( FILENAME = N'D:\Databases\SMMS_test_log.ldf' )
 FOR ATTACH
GO
i use windows vista and sql server 2008 enterprise my instance is windows\Authentication mode I'm admin and it is my local PC

any one can help me ??????????




View Complete Post


More Related Resource Links

Upgrade from 2005 to 2008 fails with error MSSQLSERVER.INACTIVE

  
Hi,
I am trying to upgrade my copy of SQL 2005 Ent edition to 2008, the first time i tried this it passed all checks and seemed to install ok.  When I tried to run it it was corupt.
I have since removed the 2008 install and tried to re-install but I keep getting the following message.
The Instance ID 'MSSQLSERVER' is already in use by SQL server instance 'MSSQLSERVER.INACTIVE'. To conrinue, specify a unique Instance ID
Help! how can I upgrade again, I can not get passed this error.
Thanks

Moving a Copy of SQL Report Server 2005 and Upgrade to 2008

  
Hello, We have SQL 2005 Report Server in a Windows 2003 64 bit server box. We want to create a copy of this report server database somewhere in the domain, so that we can access it for a different purpose. My question is, will there be any complications with this? I'm thinking about the encryption key that's needed to access the database. If we are successful with this, we might also want to upgrade to SQL 2008. Thanks for your help,   Elizabeth K.

Best practice for user defined error messages in SQL Server 2005/2008 --Need help

  
My requirement is to setup a standard practice for our team in handling DB erros and also  user defined messages. We are handling exceptions using Raiseerror method with in Try and Catch blocks.  For user defined message, we are using Sp_addmessage to add our application specific error/warning messages with error codess>80000.  Ex: 80001 | Company name already exists. please check. Here is the sample code ********************************************************************* CREATE PROCEDURE [dbo].[usp_CompanyProfile_insert]  -- Add the parameters for the stored procedure here  (@company_name VARCHAR(50),  @company_code VARCHAR(3),  @user_id INT  ) AS BEGIN  -- SET NOCOUNT ON added to prevent extra result sets from  -- interfering with SELECT statements.  SET NOCOUNT ON;  BEGIN TRY -- Begin Try Block      -- Validate company name   IF EXISTS (SELECT company_id FROM companyprofile WHERE company_name = @company_name)    RAISERROR(90021, 16, 1)      INSERT INTO companyprofile (company_name,       company_code,       createdby)   VALUES(@company_name,     @company_code,     @user_id)    END TRY  -- End Try Block &

Error with Visual Web Developer 2008 Express and MS SQL 2005 Express in Vista

  
I have created a database in SQL 2005 Express and am trying to connect to it in  Visual Web Developer 2008 Express. When I try to connect to a database and click on the Test Connection button, I get that the test connection succeded. However, when I click on OK, I get the following message:     Unable to add data connection.     Could not load file or assembly     Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0.0,     Culture=Neutral, PublicKeyToken='89845dcd8080cc91', or one of its     dependencies. The system cannot find the file specified. I have turned on the IIS 7.0 functionality and am still recieving this error message. Please help. Thanks.

getting MOF error trying to install either SQL 2005 Developer version or SQL 2008 R2 Developer versi

  
I have tried so many times but failed to install SQL 2005 Developer version on my XP machine. Got the 29513 error. I then switched to SQL 2008 R2 Developer version and got the MOF syntax error. I'm new SQL Server and need some help fixing this problem. I'm not sure what version of the SQL 2005 version it is. I downloaded it from MSDN Subcriber Download page. Any help to fix this problem would be appreciated. Got a project that needs to use Sql Server ASAP.

Upgrade from SQL 2005 EXPRESS to SQL 2008 EXPRESS

  
Hello friends, I restored My database in SQL 2005 of size more than 4 GB but it creates problem when i save picture (image data) in database.i.e i can't save it.So i searched for that problem and came to know that SQL Express 2005 has database size limit of 4 GB. i upgraded it to SQL EXPRESS 2008 and restored it to there.Still it has the same prblem means i can't able to save data.. So what may be the problem. Thanks in advance. RAHUL PATEL. rahulpatel112@live.in

2005 Enterprise upgrade to 2008 Standard?

  
We are currently running 2005 Enterprise Edition. Is it possible to move the database to 2008 Standard Edition?  

Upgrade from SQL 2005 to SQL 2008 cause problems with MSDTC

  
We have recently upgraded our server from SQL Server 2005 to SQL Server 2008.  Previously we were running our asp.net application using MSDTC with no problems. Since we upgraded, we are encountering problems that seem to relate to Multiple Active Result Sets (MARS).  The error we receive is: "There is already an open DataReader associated with this Command which must be closed first" when we try and perform a save process.  To fix this problem we added MultipleActiveResultSets=True to the connection string.  We now get the error: "The transaction operation cannot be performed because there are pending requests working on this transaction." Within the transaction scope we save to a table and then load from the same table.  Our stack trace indicates this is where the first error occurs.  Again, this transaction worked using SQL Server 2005. If we do not use MSDTC by putting Enlist=false in the connection string, the request works. We are really stumped as to what to do.  We would prefer not to have to role back to SQL Server 2005 and would also prefer not to have to have sweeping code changes in our application.  We have test MSDTC by using DTC ping on our servers and it works. Your help is greatly needed and would be greatly appreciated. Regards, Steve and Nilesh

Upgrade from SQL 2005 to SQL 2008 cause problems with MSDTC

  
We have recently upgraded our server from SQL Server 2005 to SQL Server 2008.  Previously we were running our asp.net application using MSDTC with no problems. Since we upgraded, we are encountering problems that seem to relate to Multiple Active Result Sets (MARS).  The error we receive is: "There is already an open DataReader associated with this Command which must be closed first" when we try and perform a save process.  To fix this problem we added MultipleActiveResultSets=True to the connection string.  We now get the error: "The transaction operation cannot be performed because there are pending requests working on this transaction." Within the transaction scope we save to a table and then load from the same table.  Our stack trace indicates this is where the first error occurs.  Again, this transaction worked using SQL Server 2005. If we do not use MSDTC by putting Enlist=false in the connection string, the request works. We are really stumped as to what to do.  We would prefer not to have to role back to SQL Server 2005 and would also prefer not to have to have sweeping code changes in our application.  We have test MSDTC by using DTC ping on our servers and it works. Your help is greatly needed and would be greatly appreciated. Regards, Steve and Nilesh

upgrade sql 2005 to 2008 issue

  
i am trying to upgrade sql server 2005 Enterprise edition sp2 to Sql server 2008 R2 Data center Edition on a windows 2003 Enterprise edition SP2. Up gradation fails to give 'FeatureUpgradeMatrixCheck' error. any ideas ? i don't find much online. I would like to upgrade ::: [Microsoft SQL Server 2005 - 9.00.4035.00 (Intel X86)     Enterprise Edition on Windows NT 5.2  ] to [Microsoft SQL Server 2008 R2 (RTM)   Data Center Edition ] possible ? thx, jason

SSRS in place upgrade from 2005 to 2008 issue

  

I did an inplace upgrade of SSRS 2005 to 2008 and now the reports are throwing the following error. The reports were all working fine and there is a datasource with the name 'Data Source Name' without the '_'.  Please help.

  • An error has occurred during report processing. (rsProcessingAborted)
    • The data source 'Data_Source_Name' cannot be found. (rsDataSourceNotFound)

Slow sql-server after upgrade from SQL-Server 2005 x64 standard to SQL-Server 2008 R2 x64 enterprise

  

We moved our databases to new hardware today (using copy database wizard)

 

The new hardware should be better than the old one.

We went from 28 GB ram to 128 GB.

We went from 16 cores to 32 cores (with even more cache etc.). We also moved from external SAN with 40 disks to intern disks (8 Samsung SS805 100gb ssd slc)

                             According to our own metrics we could get twice the IO using IO m

Upgrade SQL 2008 to SQL 2008 R2 error

  

Upgrade SQL 2008 to SQL 2008 R2 error :

The process cannot access the file C:\Windows\system32\perf-ReportServer-rsctr.dll because it is being used by another process”

 

I need some help?


SQL Server 2005 installation on windows 2008 cluster error

  

I am trying to install SqlServer 2005 on windows 2008 cluster with domain controller. Installation fails on the second node while trying to set registry settings for server network libraries. Attached error message and output from error log. Can somebody suggest any solutions.

Thanks

Ravi

TITLE: Microsoft SQL Server 2005 Setup
------------------------------

Failed to set registry settings for server network libraries. The action is SetDefaults. The error is 11004 (The requested name is valid, but no data of the requested type was found.
)

 

Func Name='LaunchFunction'>
Function=Do_SetServerSSNLDefaults
<Func Name='GetCAContext'>
<EndFunc Name='GetCAContext' Return='T' GetLastError='203'>
Doing Action: Do_SetServerSSNLDefaults
PerfTime Start: Do_SetServerSSNLDefaults : Fri Sep 24 17:45:31 2010
<Func Name='Do_SetServerSSNLDefaults'>
Setting server network settings for instance name MSSQLSERVER, instance id MSSQL.1
Failed to set registry settings for server network libraries. The action: SetDefaults Error: 11004
        Error Code: 0x80072afc (11004)
Windows Error Text: The requested name is valid, but no data of the requested type was found.
  Source File Name: sqlca\nlregca.cpp
Compiler Ti

SQL Server 2008 Upgrade Error - SQL Server 2008 Feature Upgrade

  

I get the following rule check error when attempting to run the SQL Server Upgrade process on my Vista Ultimate machine:

 

Code Snippet

---------------------------
Rule Check Result
---------------------------
Rule "SQL Server 2008 Feature Upgrade" failed.

The specified edition upgrade is not supported. For information about supported upgrade paths, see the SQL Server 2008 version and edition upgrade matrix in Books Online.
---------------------------
OK  
---------------------------

 

However, the version that I'm attempting to upgrade from is -  Standard Edition - Version 9.00.1399.06

 

And according to the Version and Editions Upgrades matrix, this should be possible?


I have a SQL 2005 to 2008 upgrade that is failing

  

I have a SQL 2005 to 2008 upgrade that is failing.
I have tried:
- Reinstalling
- Repairing
- Slipstreaming SP1 in with install and repairing

I cannot find any good ideas on the web.  Any ideas would be appreciated. 

 

TITLE: Microsoft SQL Server 2008 Setup
------------------------------

The following error has occurred:

Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.2531.0&EvtType=0xD15B4EB2%25400x4BDAF9BA%25401306%254024

------------------------------
BUTTONS:

OK
------------------------------

These services failed
Running post-windows installer configuration timing actions
Database engine services
SQL Server Replication
Full-Txt Search

 

Here is the LOG file for the Upgrade:
Overall summary:
  Final result:                

SSRS 2005 to 2008 upgrade: exporting to .PDF does not produce the same result

  

We have recently converted .rdl SSRS 2005 files to SSRS 2008 .rdl files. We do not have SSRS 2008 R2, we are working with the  first release. We are seeing issues when exporing a report to .pdf format:

1) when rendered in HTML, the function that displays page numbers (ie:page 1 of 2) for the report are correct. The standard function "Globals!TotalPages" is used to get the count of pages. We previewed a report in html in reports manager that had 1777 pages. when the report is exported to .pdf the last page displays page 1777 of 1816, even though there is no more pages beyond 1777.

2)When rendering the report in html a value is shown as "Caretaker1" but when exporting to adobe .pdf version 9.3, the same value is shown as "Caretaker2".

3)   One of our issues is

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend