• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cannot connect to Northwind Database

 
Greenhorn
Posts: 12
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Start with the schema.  What errors do you get?  How are you executing it?
 
Knute Snortum
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic