How do you provide SQL with your software to a client? - deployment

I am new to SQL and I have a few silly questions I am wondering about.
I am a C# developer and have thus far only worked with access, .mdb files.
Let's say you develop some software for a client. It;s to be loaded on a few workstations and they need to connect to a central database.
When you use an .mdb file its pretty straight forward.
But how will you handle it if its SQL? Do you normally install SQL express on the server and just set the connection string in the software on the workstations. I've never heard of an easier way to get the SQL database up and running and available to be connected to. As far as I know you can't connect to a SQL database file like with an mdb file
Please help me understand a little bit better?

Assuming that you're going to deploy a web application, the SQL need to install in the server, then the website developer set their connection strings in the web.config file of the project, and the connection string is pointed to server.
you can read this regarding web.config: https://msdn.microsoft.com/en-us/library/bf7sd233%28v=vs.85%29.aspx

Related

Explore ODBC Database From Netbeans

I've been Googling this for a while now without much luck, but I suspect if it is possible it should be quite straight forward...
I have an ODBC connection set up within Windows to Sage 50 Accounts, with the DSN of SageLine50v22. I can browse through the Sage database using standalone ODBC programs, but I was wondering if it's possible to connect to it from Netbeans (v8.1) directly, so that I can browse through the database from within the IDE, in the same way I could with a MySQL or SQLLite connection? Please note - I am not trying to connect my actual code to the database - I only want to be able to browse it (I think the Sage ODBC connector is one way only anyway).
I was trying to use the Oracle/Oracle Thin drivers, since the driver is called ODBC7.jar, but I'm beginning to suspect I may be barking up the wrong tree, since all the Google results seem to indicate this is for connecting to ODBC programmatically using Java. Can any one clear this up for me?

How to import sql developer connections-file in 0xDBE

Trying the 0xDBE from jetbrains. Does anybody know how I can import my old Oracle SQL Developer's connection file?
SQL Developer exports connections in XML. I do not believe that Datagrip has a connection importer which can be configured to ready the connections structure for SQL Developer at the moment.
To make things a little easier you can use the TNS entries housed in SQL Developer's app/client/product/.... path and load those into Datagrip.
You can try DataGrip plugin "sqldeveloper connections importer"
Also follow a feature request in our bug tracker.

Is it a good idea to use WAMP server as a web server?

I have bought a VDS (Virtual Dedicated Server) that Windows Server 2008 is installed on it. I needed to use server because I have developed a C# console application that can read data by TCP socket and write them in the MySQL database.
Now I need to start a website on this server. I think WAMP server is so easy for me.
Maybe in future a lot of people visit my website.
Is it a good idea to use WAMP server as a web server?
In principal there is nothing wrong with using WAMPServer as a LIVE webserver.
However, not the out of the box version.
Out of the box WAMPServer and XAMPP for that matter expect to be used as a single seat developer tool and while that is great for a click and go solution to get a developer up and running on Apache/MySQL and PHP in a few minutes it is not secure enough to be considered as a LIVE web facing webserver.
Now if you have the knowledge and experience to create an user account on Windows Server that has access to only what Apache needs to do its work, and can get Apache to run in that account instead of its default account (which has way to many privilages for a live server) and are prepared to explore all the Apache security features/modules that would be required for a web facing server then it is possible. However this is not a trivial task, and any mistakes or ommissions will leave your server open to the simplest of hacks.
In short, unless you really know what you are doing with Windows Server and Apache, you would be far better to pay for a professionally configured and managed web server environment.

FuelPHP on remote server

I am having a really hard time trying to get the FuelPHP to work with my remote server/ remote database. I know that they have Oil functionality that generates database tables for you but the issue is that I was only able to do it locally but not remotely.
Is there a tutorial or better way of trying to deploy or run FuelPHP on my remote server. I have seen a bunch of tutorials that are helpful for local server but I have not found anything for creating sites on remote server.
Maybe I am going about this in a wrong way or something but I am frustrated and confused. I just want to get it to work on my remote server as it does on my local server.
You should use migrations to create and modify your database schema. It allows you to change the schema and rollback if needed, using oil refine migrate.
Using it implies however that you have commandline access to your remote server. If it's one of those cheap ftp-only hosting options, you've got a challenge. You can create a controller that uses the Migrate class to run migrations, which you can call from the browser after you've ftp'd the updated code to the server.
If you go this route, make sure you secure it properly!

How to migrate Orchard CMS to another Server

I've already copied the files and the database to my new system. But now I don't know, in which web.config I find the sql server settings.
Any suggestions, links, etc?
Database server settings are usually found in $webapproot\App_Data\Sites\Default\Settings.txt