webdevRefinery Forum: Please help me out, I am having severe problems with Microsoft SQL Server 2008 R2 - webdevRefinery Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

User is offline deucalion0 

  • Group: Members
  • Posts: 183
  • Joined: 05-September 10
  • LocationDundee, Scotland

Posted 03 November 2011 - 04:54 PM (#1)

Please help me out, I am having severe problems with Microsoft SQL Server 2008 R2


I created a database using Microsoft SQL Server 2008 R2 and i am having not but problems. One time my database just disappeared from my instance, I got hold of a copy of this database which was a university lab practical from a friend, the next day i opened up Microsoft SQL Server 2008 R2 to attach his copy of the database then my database was back! so I continued to use it as normal, then today it is gone again! I try to attach a copy I made after this incident happened before, but it says it cannot attach it because there was an error and the code was 662, or something, the problem apparently was that it thinks this was made using an earlier edition and a downgrade path cannot be created.

I have to say i have had nothing but issues with this software since the day I installed it. I need to use it for my university coursework and I am pulling my hair out. can anyone please tell me why this happening? i would really appreciate some advice before this laptop goes out the window.

Thanks.
0


User is online callumacrae 

  • {{ post.author }}
  • Group: Members
  • Posts: 2862
  • Joined: 20-January 11
  • LocationWarwickshire, England
  • Expertise:HTML,CSS,PHP,Javascript,Node.js,SQL

Posted 03 November 2011 - 05:41 PM (#2)

I would strongly recommend using an alternative database server such as MySQL.

Failing that, try a reinstall.
Front-end developer and writer
Twitter | GitHub | phpBB Contributor and Website Team Member | lynxphp
0


User is offline TheEmpty 

  • I say words in sequences.
  • Group: Members
  • Posts: 5154
  • Joined: 02-October 10
  • Expertise:HTML,CSS,PHP,Java,Javascript,Python,Ruby on Rails,SQL

Posted 03 November 2011 - 05:50 PM (#3)

View Postdeucalion0, on 03 November 2011 - 04:54 PM, said:

I need to use it for my university coursework and I am pulling my hair out. can anyone please tell me why this happening? i would really appreciate some advice before this laptop goes out the window.

Well first off it's not the laptop.

View Postcallumacrae, on 03 November 2011 - 05:41 PM, said:

I would strongly recommend using an alternative database server such as MySQL.

He said that he needed to use it for school.

I would google the error code and your problem, I don't think too many people use Microsoft SQL Server.
Reserved.
0


User is offline Daniel15 

  • dan.cx
  • Group: Moderators
  • Posts: 3414
  • Joined: 17-April 10
  • LocationMelbourne, Australia
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 03 November 2011 - 06:37 PM (#4)

Are you using SQL Server Management Studio? If so, are you sure you're connecting to the right instance every time? On my computer it's .\SQLEXPRESS. Perhaps you have more than one instance and are connecting to a different instance every time.

Could you take a screenshot when you get an error again, and post it here?

Quote

I would strongly recommend using an alternative database server such as MySQL.

Why? Microsoft SQL server has a lot of features that either aren't implemented or are very poorly implemented in MySQL (MySQL's stored procedures are nowhere near as good as SQL Server's). If anything, I'd suggest PostgreSQL as it's probably the closest open-source equivalent to SQL Server.
Daniel15! :D
Posted Image

Repeat after me: jQuery is not JavaScript. It is not the answer to every JavaScript-related question. When you have to write some JavaScript, do not instantly react with "Oh, I'll do that with jQuery!"

Spoiler
0


User is offline TheEmpty 

  • I say words in sequences.
  • Group: Members
  • Posts: 5154
  • Joined: 02-October 10
  • Expertise:HTML,CSS,PHP,Java,Javascript,Python,Ruby on Rails,SQL

Posted 03 November 2011 - 07:14 PM (#5)

Yes, PostgreSQL is my favorite DB, I've never use SQL Server though. (Just vouching on D's post that PostgreSQL is fucking awesome [his words not mine [no]])
Reserved.
0


User is offline deucalion0 

  • Group: Members
  • Posts: 183
  • Joined: 05-September 10
  • LocationDundee, Scotland

Posted 04 November 2011 - 04:05 AM (#6)

Hey guys thanks for the input, I tried googling the error code but it brings back results where people have had issues trying to attach a database created on a different version of sql server, I think the version before R2, I simply am trying to get my database back, as it was there the day before and not the next. As I mentioned before, the next day i opened SQL server, my database had returned. As for different instances, I only have one instance created.

I just tried to attach the database which is in the folder where all the databases are for that instance and here is the error I get:


TITLE: Microsoft SQL Server Management Studio
------------------------------

Attach database failed for Server 'RAYMOND-LAPTOP'. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.....0+((KJ_RTM_GDR).110422-1901+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Attach+database+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

The database 'TutorialTwo' cannot be opened because it is version 661. This server supports version 662 and earlier. A downgrade path is not supported.
Could not open new database 'TutorialTwo'. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 948)


I need to use this heap of crap for my coursework, but I spend more time trying to get it to work than I do actually doing something productive.

any further help is appreciated guys.

Thanks
0


User is offline Daniel15 

  • dan.cx
  • Group: Moderators
  • Posts: 3414
  • Joined: 17-April 10
  • LocationMelbourne, Australia
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 04 November 2011 - 05:12 AM (#7)

This is why companies that use SQL Server have dedicated DBAs o_O

Did you see this blog post?

Quote

the user is trying to attach a SQL Server 2008 R2 database (v. 661) to an SQL Server 2008 SP2 instance. This is not supported. User has to either upgrade the SQL Server 2008 SP2 instance to SQL Server 2008 R2, or it has to attach the database back to a R2 instance and copy out the data from the database into SQL Server 2008 instance database, eg. using the Import and Export Wizard.


Have you installed or removed any patches recently? Try installing all updates from Windows Update.

Apart from that, I don't have any other suggestions... Sorry :(. I'm still learning a lot about SQL Server.
Daniel15! :D
Posted Image

Repeat after me: jQuery is not JavaScript. It is not the answer to every JavaScript-related question. When you have to write some JavaScript, do not instantly react with "Oh, I'll do that with jQuery!"

Spoiler
0


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Enter your sign in name and password


Sign in options
  Or sign in with these services