Reputation: 2402
I'm trying to connect SQL Server 2008 R2 to Visual Studio 2010. It seems that the versions are not consistent, it's a little strange for me since SQL Server is 2008 and VS is 2010!!! Since I'm a new user and cant upload image here you may find a screen shot of the error here:
http://img4up.com/up2/51497019025204797538.jpg
Would appreciate if anyone can help me.
Best Regards
Upvotes: 0
Views: 21281
Reputation: 68476
Follow the same steps as iamkrillin/Stecenko Ruslan suggested., If you had provided a username and password during the installation of SQL Server R2 , then choose the radio button "Use SQL Authentication" instead of "Use Windows Authentication"., in the "Add Connection" dialog of Visual Studio 2010.
Upvotes: 0
Reputation: 2848
Visual Studio 2010 installs SQL Server Express 2008 and your database was created with SQL Server 2008 R2. You'll need to upgrade to SQL Server Express 2008 R2 to open this database.
Upvotes: 1
Reputation: 6876
Instead of using "Microsoft SQL Server Database File" use "Microsoft SQL Server"
Then connect using the server address and user information.
Upvotes: 1
Reputation: 280262
You shouldn't be using the file option if the instance of SQL Server already exists and you plan to create a persistent database there (or use an existing one). You should be selecting a proper instance of SQL Server.
Upvotes: 0