SQL Server 2008 R2 Express - no option to create new DB - what I am I doing wrong? - sql-server-2008r2-express

I would like to create a new database in SQL Server 2008 R2 Express using the Management Studio, but there is no option for New Database... I searched online and all the tutorials show this option that I don't have. What step am I missing? The "Object Explorer" is blank.

Have you tried right clicking on the database folder and 'new database'?

Related

SSIS Oracle Provider not showing in Toolbox

First Post :)
I am using Visual studio 2019 (SSIS) but for some reason, the Oracle Provider for OLE DB is not showing in the source or destination. I have downloaded the latest ODAC for 64 and 32 bit as well as the ODT for the latest VS and none of these work. I have restarted my pc thinking this would need to synch but still nothing shows.
Am I missing a step perhaps?
Do this:
Right click on the Connection Manager > New Connection Manager
Choose OLEDB froma list of connections and then press Add:
Press New and at the top drop-down menu where you choose the Provider search for Microsoft OLE DB Provider for Oracle
You are now good to go.

VS 2013 Query Designer greyed out

I believe I am following the instructions at http://msdn.microsoft.com/en-us/library/vstudio/ms171960.aspx but whatever I try, the Query Designer toolbar remains greyed out and 'Query Designer' does not appear in the main menu. Am I missing something?
(VS2013 version 12.0.21005.1 REL connecting to a SQL 2008 R2 Express db)
Have posted similar problem here - Solved on this thread.
Create two connections in VS Server Explorer.
1) Microsoft SQL Server Database File (SqlClient):
Use this for editing tables, and for the connection string in the software.
2) Microsoft SQL Server + .NET Framework Data Provider for OLE DB:
Use this for visual queries.
Everything is VS, Publish options don't give 'file in use'.
On a completely unrelated Twilight Zone moment - you posted the same question, on the same day, on the same forum, and both our names are Peter G!

New database in SQL Server 2008 does not show up in dropdown

I'm new to using Visual Studio and SQL Server.
My problem is this:
I have created a database in SQL Server Management Studio, then I'd like to connect it my app in Visual Studio. I right click in the Server Explorer and click on Add connection. Here I can find through dropdown list my server, but when selecting the database under "Connect to a database" it doesn't find my new database in the dropdown list...
Can you help me please? Thank you a lot :-)
check whether it is windows authentication or server authentication in sql server 2008 where you have created the database. If it is server authentication then check whether you are entering correct username and password.

Cannot create Sql Server database in App_Data folder

When I try to create an Sql Server Database in the App_Data folder of my Visual Studio 2010 project, I get the following error:
Login failed for user:[Domain]\[user]
I am able to create databases using Sql Server Management Studio. I am using Sql Server Express 2008.
Any help regarding this is appreciated. Thanks in advance!
As you are using express edition, in Visual Studio go to Tools>Options>Database Tools>Data Connections.
Remove the SQL Server Instance Name and click OK.
Now try connection to the server using Server Explorer. Once you get connected, you will be able to create a new DB in App_Data folder.
Here is the connection string:
public string ConStr = "Data Source=.;AttachDbFilename=|DataDirectory|CodeDB.mdf;
Integrated Security=True;User Instance=True";
Also make sure that you have user instances for your DB enabled.
In Visual Studio 2013:
Go to Tools-->> Options-->>Database Tools-->>Data Connections. SQL Server Instance Name
Type ProjectsV12
Then Create SQL Server Database inside the App_Folder, and it will work.
Open CommandPrompt as administrator
Type sqllocaldb info and press enter
It will display all the available local db.

Create Local Database Cache - Use SQL Server change tracking is disabled

I'm trying to create a new "Local Database Cache" item in Visual Studio 2010 to sync against a local Sql Server Express 2008 R2 database.
When the wizard pops up though the "Use SQL Server change tracking" checkbox is disabled. Any ideas? I tried running
ALTER DATABASE MY_Database SET CHANGE_TRACKING = ON
but that had no effect.
Cheers,
Alex..
Figured this out..
The database was set to SQL Server 2000 compatibility, set it to SQL Server 2008 and all is good...

Resources