I am working in SQL Server 2008 R2 on my local machine, Its working fine. But when I an connecting to Server on internet on which SQL Server 2012 is loaded, I am able to connect but not able to save Views. When I am saving the View I am Getting an error:
Object reference not set to an object. (SQLEditors).
If any one has got the solution, Please help me.
This happens because the query designer in SQL Server Management Studio for SQL Server 2008 R2 is incompatible with SQL Server 2012.
You have two options:
When saving the view, issue an ALTER VIEW statement, instead of using the designer.
Install SQL Server Management Studio for SQL Server 2012 on your local machine.
Related
I would love to manage and create my databases in SQL Server using SQL Server Management Studio and use them in Visual Studio but I can't connect to the same database :
Different Version of SQL used
As you can see, Visual Studio is connected to SQL Server 13.0 and Management Studio is connected to SQL Server 12.0.
Can someone help me to figure this out and make the two programs using the same database.
Thanks in advance for your help
You are connected to different instances of SQL Server. Visual Studio is connected to a LocalDB instance while SQL Server Management Studio is connected to SQL Server Express instance. To resolve this issue you just select local instance at login step of SQL Server Management Studio tool.
I've installed Microsoft SQL Server 2012 Management Studio today and now I'm trying to connect to server. As far as I know there should be default local server that would allow me to create a database in it. Unfortunately, my list of servers is empty and I cannot connect to anything. I've read tutorials and tried everything, even reinstalling all the Microsoft SQL Package. How can I fix this problem and find/create my local server?
Ok, I've read that there might be a problem with connecting to database even if whole microsoft package gives me LocalDB. I had to install Visual Studio, then clicked View -> SQL Server Project Explorer. Right click at 'SQL Server', I added new database and then entered its name. Now I can connect with my own server by typing '(localdb)\v11.0' in management studio.
Question Background
I have a created a database in Visual Studio under the Server Explorer tab. This is fine but I would like to be able to open this database in SQL Server Management Studio (SQL Server 2008 in this case). I can't see the database under the database list in SQL.
How can I open the database I've created in Visual Studio in SQL Server?
The following diagrams show the issues:
The MainDB.mdf database in VS:
SQL Server 2008 Management Studio. The database MainDB database is not showing:
You are connecting to two different instances. From Visual Studio, the default instance is either localhost\SQLExpress or just localhost (or just your computer name). From SQL Server Management Studio I can see that you specified something else. From the "Connect to Server" window in SQL Management Studio, choose one of the instances I mentioned above. Or alternatively, from Visual Studio, right click on "Data Connections" --> "Add Connection...", and then specify the same instance name you used to connect using SQL Server Management Studio.
Since you are using Visual Studio 2012, here is something that changed - VS 2012 uses a localDB instance whenever you create a database for use within your application. So you have 2 options:
1. There is a new window called the SQL Server Object Explorer that you can use to work with your LocalDB. It provides a view of your database objects that’s similar to SQL Server Management Studio. You can access it from the view menu.
2. If you still want to use SSMS, you can access it by putting (localdb)\v11.0 in server name. More about this here.
It should show directly in SQL Server, Unless your are using different credentials for connection. (credentials means Server Name & User)
Create new DB
http://i.stack.imgur.com/FEmMB.png
Explore in sql
http://i.stack.imgur.com/VxgiV.png
Can you let us know are they both same ?
You can also try 'Browse in sql server object explorer' by right clicking DB name in Visual studio
I had SQL Server 2005 installed on my system. Then I installed SQL Server 2008 R2 also.
Now when I open SQL Server 2008 R2 Management Studio I get two messages.
(1) You can import customized user settings from SQL Server 2005 Management Studio. Be aware that some default settings might be changed after you import your customized user settings. Do you want to import your customized user settings from SQL Server 2005 Management Studio
(2)There are SQL Server 2005 Management Studio registered services on this system. Do you want to add them into Microsoft SQL Server Management Studio? Adding The Server registration information has no effect on the servers themselves.
What I should answer to this messages? Yes or No? Please help. I am trying to install Sharepoint Server 2013 Server on my system. But there is an error when I ran Products configuration wizard.
Failed to create sample data. An exception of type
System.Null.Reference Exception was thrown.
Does the error in SQL server Management Studio have anything to do with this error?
1st Sql is warning you that you have prev users that are created in the old sql server 2005 instance.
And asking you if you wish to migrate those users to the new sql 2008 instance.
if you would like to login with the same users that you used to use in the old sql then press yes other wise neglect the dialog and create your new users in the new sql server.
Anyone please give me some ideas what to do next? I have a 2008 SQL Server installed, and try to create a DB on my PC \SQLExpress, however, I come up with the following message:
Cannot write property isfilestream this property is not available on sql server 7.0
Actually I have already enabled this via the properties within Management Studio and via the configuration tool, but the message still pops out...
My computer originally has 2008, but because I cannot access to the local server .\SQLExpress, then I re-downloaded the 2012 SQL Server, and then is able to access to the local server via 2008 SQL management studio. Not sure if this is related to my issue
Thank you so much in advance!