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

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...

Related

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.

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

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'?

Cannot connect to Sql Server database: non-system databases are not shown

I'm trying to connect to SQL Server 2008 express database from Visual Studio 2010 using data connection wizard. I choose new connection -> MS Sql Server then I choose the only available server name (PAVEL-PC\SQLEXPRESS). The problem is i cannot see my database in the combobox below. System databases (like master, model, msdb etc) are shown though.
I've managed to find similar questions (like this one: Cannot connect to SQL Server database in Visual Studio because my database isn't there) and it seems I'm having permission issues. However I cannot understand which user (and where) should I add.
The account name which I'm running my Visual Studio on is Pavel. My computer name is Pavel-PC. I'm not sure what my SQL Servers account names are, but it was installed using default settings.
Here is the answer to my question:
use "PAVEL-PC" instead of "PAVEL-PC\SQLEXPRESS"

Create button doesn't do anything on Add Connection dialog for a new SQL Server CE connection

I have just deleted a SQL Server CE database, attempting to start a debugging process with a fresh, new database, but when I try to add a new CE connection using Server Explorer, the Create button simply does nothing. What could be wrong here?
The SQL Server Compact tools are broken, re-install SSCEvstools.msi from the VS Installtion media

Resources