Setting up DB in client computer for WPF - sql-server

I have a wpf application developed with VS2015 community edition. I'm done with the development. I want to test it in the client computer. The program uses SQL database. I installed Microsoft SQL in the computer where it was developed. How to setup a db in the client computer? Is there a easier solution other than azure or installing Microsoft SQL in the client's computer. I wish to publish it as a ClickOnce application. Please give a simple solution. Thank you.

Related

Install SharePoint 2013 client sdk in SQL production

I am not a SharePoint person so please bear with me on my question. I have been asked to install the SharePoint 2013 Client Component SDK in a production SQL environment. I have been trying to research if there are negatives to doing this and cannot find that this is a common thing to do. Since SDKs are usually used for development and in almost 20 years of managing SQL Servers I have never been asked to install SDKs in a production environment I am thinking that this is not a good idea. Anyone have advice? Thanks!
The Client SDK of SharePoint 2013 deploy DLLs in the GAG of your server.
Microsoft.SharePoint.Client.dll, Microsoft.SharePoint.Client.Runtime.dll (as far as i remember) and some others client DLLs. So, there should not be any conflict with other MS product.
But, this sdk is needed by client application for SharePoint. Which means, you need to install a client SharePoint Application on a SQL server. If there is no problem with this. There is no problem with your install of the SDK.
PS: Client application for SharePoint can connect To SharePoint system everywhere (server, PC,..) so you can install this apps on an other server (or PC). but it depends on what the application makes
(sorry for my english)

c# WinForm - Pre-requisite for running Oracle Database Access

I've a Windows Form c# application which uses Oracle.DatabaseAccess.dll for communicating with oracle database.
After generating a MSI and installing on my laptop everything works great.
However when I try to install the same application on my colleague's laptop the connection doesn't work. It shows incompatible provider.
Could someone please help me out where can I get the pre-requisites for running application that uses oracle database?
I suspect it runs fine on my machine as I've installed oracle express database. But I don't want to install this on all machine where this application needs to be run.
Thank you.

Can a WPF app with .sdf database run on a computer without SQL Server installed

This question may seems a bit silly. The thing is I'm programming a WPF using VS2010, which contains a .sdf database (connection is ADO.NET).
Someone told me that if I use a SQL Server Express database it can be run on any PC even it has no SQL Server installed. But after I tried executing in my virtual machine (win7 & win xp), seems it cannot even start up.
So, can someone brief me, what database do people normally use in developing WPF software? Is it true that my program using a SQL Server database file cannot execute on PC without SQL Server installed?
Much appreciate in advance!
Yes, it can!
SQL Server Compact (that produces and uses .sdf) is the only SQL Server edition that does not require a server to be installed. All its code and logic is contained in the handful of DLL's that you need to include with your application. Just ship your app with those DLL's and you should be fine.
Read more about SQL Server Compact and how to use and deploy it on MSDN.
SQL Server Express (and any of the other editions, like Web, Standard, Developer, Enterprise) on the other hand does require an installation of the SQL Server Express edition - either on that machine, or somewhere in the network where your app runs (remote connections from the network are disabled by default, but can be enabled).

Windows Authentication to Access SQL Server from my application

I have 2 applications, one is written in vb6 and the other is asp.net web application.
from both of them I'd like to connect a remote (but on the same network) sql server 2008 r2 database.
Somehow, this doesn't work. I wanna put the asp.net application aside for now and just test the vb6 one.
The strange things is, if i install sql management studio on the same machine where
my vb6 application is installed and try to connect my remote sql server using windows authontication it works.
Thanks in advanced.
A shot in the dark: 2008R2 is much newer than vb6. What type of data connectivity are you using in the vb6 app?

Hosting Sharepoint and SQL Server off same server

Is it possible to host Sharepoint and SQL Server off the same server for small time testing. Environment would be set up for purely education purposes. Non-production. Thanks.
Yes. We do this also. Works like a charm.
Your best bet would be to use a simple virtual environment (I quiet like VirtualBox) and then run a server operating system on there, install SQL Server (if it is only for testing SQL Server express would be sufficient) and then install SharePoint. When you have installed SharePoint you will be better removing the default web application it adds for you and then adding your own as you will be able to link the new application's database easily to the instance of SQL on your SQL server.
Don't forget that if you are looking at using SharePoint 2010 it all has to be 64bit...
Minimum development environment for sharepoint 2007 webparts
Hope this helps anyway...
It is possible, but SQL server likes to use up all the RAM, making sharepoint really slow, and sometimes with sharepoint 2010 it crashes the web application.
Try to limit how much RAM sql server takes
http://blog.stevehorn.cc/2007/10/limit-memory-usage-in-sql-server-2005.html

Resources