• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Cannot connect to Northwind Database  RSS feed

 
Greenhorn
Posts: 12
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am studying for the MTA Software Fundamentals exam and going through the Wiley Book.
It tells me to try and connect the Northwind Database via Visual Studio (2017), but every time I do so, I am faced with an error (I have attached a picture).
“The database file that you are attempting to connect is not compatible with the current instance of SQL Server”.
I then try to upgrade the database file then it says:
“Database file cannot be upgraded because it’s a non-release version, its not supported by this version of SQL Server.”

I have tried uninstalling SQL 2014 (express) and installing 2012 (express).
I have looked at most posts on the web with the same issue but can’t deduce what the answer is telling me to do.
I’m extremely new to SQL, does anyone have a basic explanation on how to fix this? The practical exercises from the Wiley book seem to be extremely useful, so I'm not giving up!

Any help would be greatly appreciated

Thanks. Ainsley.
SQL-Issue.png
[Thumbnail for SQL-Issue.png]
 
Sheriff
Posts: 5443
147
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would try updating SQL Server to the latest version you can and downloading the NorthStar sample DB manually.

https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/sql/linq/downloading-sample-databases
 
Ains Clark
Greenhorn
Posts: 12
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, thanks for your reply.

I can have tried SQL 2014 and 2012. I can't go any higher as I have windows 7.
I have tried downloading the Northwind databases direct from Microsoft but no luck.

Thanks again.
 
Knute Snortum
Sheriff
Posts: 5443
147
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe this will help?

https://github.com/mrin9/northwind
 
Ains Clark
Greenhorn
Posts: 12
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply,

Would you know how to convert this SQL file to an .mdf file?

Sorry if this is basic!
 
Ains Clark
Greenhorn
Posts: 12
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried to open this database up with SQL but its riddled with errors.
Same goes for 3 other sample databases that I have downloaded from github.
This is so hard
 
Knute Snortum
Sheriff
Posts: 5443
147
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start with the schema.  What errors do you get?  How are you executing it?
 
Knute Snortum
Sheriff
Posts: 5443
147
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I worked over schema.sql so that it works for postgres.  I found that once I got the schema right the data inserted without a problem.  Maybe this is closer to what you want:
 
Ains Clark
Greenhorn
Posts: 12
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much for your reply,

I didnt manage to create the northwind database, it says the IF statements are valid, which is strange.

However I did manage to create tables and insert the table thanks to your code.

So thanks again.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!