setup project visual studio 2010 and sql server 2008 - c#-4.0

I created desktop application using c# ( visual studio 2010 ) and a database using sql server 2008.
and i made a setup project but the question is :
1- how to put the database files in my setup project?
2- how can i attach the database automatically in sql server 2008 express when i install the application on another machine?
3- there is another solution instead of install sql server 2008 express on the other machines i'll install the application on it (there is no network between them )?

Related

Unable to add service-based database in Visual Studio

I installed the Visual Studio 2012 on Windows 10 and then installed SQL Server 2012 successfully, I have connected to the server from Visual Studio but every time I try to add a service-based database to the windows form I'm creating, it says this
Connection to SQL Server requires SQL server 2005 express or SQL
Server 2008 Express to be installed and running on the local
computer...
What should I do now?

how to share virtual sharepoint server and get it in host windows and visual studio?

I Installed windows 8.1 and then Installed visual studio 2013 on this win 8.1
because I need sharepoint server so I installed windows server 2012 r2 on windows 8.1 hyper-v and then Installed sql server 2012 and sharepoint server 2013 and create my first farm server
now I want to create my sharepoint app in visual studio that is installed on windows 8.1 but when I tap to vs 2013 sharepoint solution give me the same error that as if sharepoint is not running on the local machine .
when I browse sp server admin center In windows 8.1 browser it's able to load sp server central admin
also I installed sharepoint designer on windows 8.1 and it's able to create site with this virtual sp server but just visual studio is not able to find this virtual server ?
please help me how can I add this virtual sp server to my visual studio ( the visual studio that is installed on my win 8.1 ) ??
thanks
(forgive me for my bad english)
Best regards:
Raha
Install VS 2013 on the hyper-v that your SharePoint server is installed on. run VS 2013 from inside the hyper-v and you should now be local with your SharePoint server.
Good luck

Visual Studio 2012 and SQL Server Express

Is it possible that the Visual Studio Ultimate that was installed in my machine didn't include SQL Server Express, they didn't turn any option off when installing, they simply installed it following the default options.
It comes with SQL Server, but the instance name is (LocalDb)\v11.0 instead of .\sqlexpress

how to add connection to sql 2008 mdf file from the vista partition in w 8 visual studio 2012

the original app in vista partition was using the connectionstring like
Data Source=.\SQLEXPRESS;
AttachDbFilename=c:\MDF\StringTmp.mdf;Integrated Security=True;
Connect Timeout=30;User Instance=True
I have migrated the app's project to visual studio 2012 pro still targeting .net 3.5
But I got the failed to login with "myw8pcName\username"
I also tried using add connection wizard in visual studio with windows auth. that failed.
I also tried a sql server application ID and password used in vista for the mdf file in the add connection wizard for "Use sql server Authentication" that also failed
when can I do?

Creating Installer in Visual Studio 2012

I wanted to deploy my application which uses crystal reports and SQL Server express.
How can create an installer which can create the databases and configure the app.config files on installation?
ClickOnce will not allow you to easily run db scripts upon installation. You will have to use a VS Setup project or a tool like InstallShield that provides much more control over the install process..

Resources