Where is path for database stored in vs2012? - visual-studio-2012

I have SQL server 2008 R2 as well as SQL 2012 installed on my machine. I want VS 2012 to use SQL server 2008 R2 but for some reason its using SQL server 2012. Is there any setting inside VS2012 that i can use to specify the database i want to use?

Try a connection string in a config file.

Related

Azure SQL Server 2014 Express VM: Cannot update/patch SQL Server Express

I created an Azure Resource Manager VM using the standard Azure image "SQL Server 2014 SP1 Express on Windows Server 2012 R2".
I immediately ran Windows Update and all patches for the server worked but the Security Update for SQL Server 2014 Service Pack 1 (KB3070446) failed with a error code of 84B30002.
The Azure VM SQL Express version (SELECT ##VERSION) is:
Microsoft SQL Server 2014 - 12.0.4193.9 (X64) Nov 28 2015 03:44:12
Copyright (c) Microsoft Corporation Express Edition (64-bit) on Windows NT 6.3 (Build 9600: ) (Hypervisor)
This version is not a documented SQL Server 2014 Express version (as far as I can see here).
I have tried installing CU 5 for SQL Server 2014 Express but that couldn't find a valid version of SQL Server to update.
Do you think it is non-standard version of SQL Server Express that is causing the update to fail? I am stuck.
“Named” instance (SQLEXPRESS) will use dynamic port
"DEFAULT" instance (MSSQLSERVER) will use 1433 as a default one.
If you want to use “Named” instance (SQLEXPRESS) configure the firewall properly or else Change the dynamic port in SQL server configuration.
I raised a ticket with Microsoft and they confirmed that the SQL Express version number caused the problem. Their response was:
the product team has confirmed that the "SQL Server 2014 SP1 Express
on Windows Server 2012 R2" image was wrongly built by an internal
builds (12.0.4193.9).
I am not sure when they will have it fixed. As a workaround I uninstalled SQL Express and re-installed from a public download of SQL Express.
Please NOTE: I had to install the SQL Express as a "DEFAULT" instance (MSSQLSERVER). I tried to install the new SQL Express as a “Named” instance (SQLEXPRESS) instead of the “default” instance (MSSQLSERVER). This didn’t work for me however. I found that I couldn’t contact SQL Server from my other VM that was running my application. So I installed SQL Express as a “default” instance and communication from the other VM started working!

Where can I get sqlcmd.exe for Windows Server 2008 R2 Standard?

I am looking to install this on a 64 bit system in order to test SQL queries against an ODBC source. The current links are Microsoft are too new. Does anyone know where I can download it from?
SQLCMD should come with Management Studio http://www.microsoft.com/en-us/download/details.aspx?id=7593 However there's no reason why you couldn't use a newer version of SQLCMD to connect to an older database.
For SQL Server 2008 R2, you want to download the files from what is called the Microsoft® SQL Server® 2008 R2 Feature Pack. https://www.microsoft.com/en-us/download/details.aspx?id=16978
From there, you are going to need 2 programs
"Microsoft® SQL Server® 2008 R2 Native Client" X64 Package (sqlncli.msi) and "Microsoft® SQL Server® 2008 R2 Command Line Utilities" X64 Package (SqlCmdLnUtils.msi) in either 32 bit or 64 bit form depending on where you are installing it. Most servers are 64 bit so if doubt, choose that version first.
Install the native client first and command line utilities second.

Developing C# Winforms software using SQL Server 2012 in Visual Studio 2012 and running it on other system without installing SQL Server 2012

I wanted to develop a C# application oriented software using SQL Server 2012 in Visual Studio 2012. But if I install the software on another computer with out installing SQL Server 2012 database, how will this software work and access the data?
Is there any method and function or namespace that can provide the default storage space to store the data after the software is installed on a system?
If you develop an application that use Sql Server 2012 as storage for your data then you need to install it in a way or another. There are numerous versions of Sql Server, like Sql Server Express and LocalDB. In every case you need the bits that supports your coding calls.
This magazine article summarizes relevant infos on the various version of Sql Server
I suppose that the right product for you is Sql Server LocalDB. A version of Sql Server that could be distributed easily with your application setup and doesn't require a complex installation procedure.
However, if you don't foresee the need to escalate you application to a full Client-Server model and you need only a local storage for a single user, you could choose a single file database like Sql Server Compact Edition or SQLite or even MS Access.

Restore a MOSS 2007 farm on a new server

I'm currently trying to move a single-server farm to an other server.
The old server is a windows 2003 32-bit with sql server 2005.
The new one is a windows 2008 32-bit with sql server 2008 r2 (32 bit).
Both MOSS 2007 have the same versions.
What I'm trying to do is to use a farm backup from the old server to restore it on the new one by using the restore tool on the central administration or by using the stsadm command, but it seems that it is not the best solution as the restore will fail.
In fact, what should I do on the new server ? Does it needs to exactly look like the old one ? Do I have to recreate all the web applications for instance ?
Is there any tutorial out there that could guide me step-by-step ?
Thank you for your help.
Check technet>
Back up and restore an entire farm (Office SharePoint Server 2007): http://technet.microsoft.com/en-us/library/cc262412(v=office.12).aspx

Windows Azure Sql Database Management Portal Error

I ve done some research and i can't seem to find anything similar to this.
I have an SQL Database from Windows Azure with several tables. I can log in just fine and view all the table data of all tables, except from a specific table.
When I click on the "Data" section of that specific table, my screen just goes completely blank and then I can't do nothing about it, apart from starting over. Any thoughts on this ?
(I have the latest version of Silverlight installed and I ve tried with Chrome,Firefox and Opera)
Thanks
You can use SQL Server Management Studio (SSMS) 2008 R2 for browse or what ever the task you have to do with SQL azure database as a alternative for your way of method.
Using SQL Server Management Studio 2008 R2 to Manage SQL Azure sample screen is as below.
For more information check this out Getting Started with SQL Azure Development
UPDATE
If you're going to use express edition, then you have to use SQL 2012 express with Win 8.
Check this out SQL Express Edition 2012
I hope this will help to you.

Resources