Converting SQL Server database to SQL Server Compact edition file (.sdf) version 3.0 - sql

I'm currently creating a solution for a software that were developed in 2005 and beside using some more modern technologies, the company wants to keep supports of the old windows embedded compact edition based phones until they can replace everything.
I tried using ErikEJ's Export2SQLCE and SqlCEcmd command tools and thought I found the solution, until I realised the older application is using SQL Server CE version 3.0, whereas ErikEJ's can only convert to 3.5 or 4.
Is there any way to convert an existing SQL Server table into SQL Server CE version 3.0?
If not, is there any way to connect into a SQL Server CE file (.sdf) from a nodejs server and send queries?
Thanks!

Related

SQL Server - Client Version

I am new to SQL Server and trying to familiarize myself with it, so I have some questions.
My background is Oracle and am wondering if it works very similar to SQL Server.
On a client machine we need to install a client version of Oracle, and with the installation it comes with a TNSNames.ORA file which has settings for all of the Oracle DB's which are located on an Oracle DB server.
I would assume that SQL server would follow something similar, install a client version of SQL server? If so, does SQL Server has something similar to local Oracle?
I've found how connect to SQL server from another computer, just wondering if I still would need a slim down/client version of SQL Server, I would assume yes.
https://technet.microsoft.com/en-us/library/ms345343(v=sql.110).aspx
Some of you might be asking, why don't you try it, don't have my second computer yet, would like this info. ahead of time.
Thank you
SQL Server client APIs include the low-level components needed to connect to and use SQL Server so there is generally no need to install other connectivity components. To name a few Microsoft ones:
ODBC: Latest version is ODBC Driver 13.1 for SQL Server
OLE DB: Latest is SQL Server 2012 Native Client
.Net Provider for SQL Server (SqlClient): included .NET framework
JDBC: Latest Microsoft version is 6.2
There are also a number of other open source and commercial APIs available for use in various programming languages and development frameworks (e.g. Tedious for Node.js).

Use different SMO version in the same VB.net application?

The SMO-libraries are for a specific version of SQL Server.
So , is there any possibility to use different SMO libraries , in the same VB.net application in order that my application works regardless of SQL server version?
Thank you !
Yes! You can use older version of SMO-libraries for both servers. I used SMO-libraries from SQL Server 2008R2 in C# apllication and powershell script to migrate DB from 2008R2 to SQL Server 2005. Thus, there shan't be problems and when using VB.net.

How to connect to MSSQL 2000 from PHP 5.3 and up

I have a legacy business application built on MS SQL Server 2000. I have some webbased utilities that access this database using PHP 5.2 with mssql extension.
I need to reinstall the web server, and I looked forward to upgrade to PHP 5.4. Unfortunately, the mssql extension is not supported on PHP 5.3 and newer. There is the sqlsrv extension available form Microsoft, but the description says that it is only supported for accessing SQL server 2005 and up.
How can I connect to my SQL Server 2000 from PHP 5.4 ? Did anyone already solve this issue ?
This is a really complicated issue. Here are the details of (in)compatibilities so someone else might spend less time searching and trying.
PHP extension sqlsrv from Microsoft
sqlsrv exists in two (+ an unofficial) versions, they are only compatible with 32-bit PHP. There is currently no version for 64-bit PHP.
sqlsrv version 2.0 is compatible with PHP 5.2.4 to 5.3.x and SQL Native client 2008 R2 to connect to Microsoft SQL Server 2000, 2005, or 2008.
sqlsrv version 3.0 is compatible with PHP 5.3.0 to 5.4.x and SQL Native client 2012 to connect to Microsoft SQL Server 2005, 2008, 2008 R2, and SQL Server 2012.
no official version currently supports PHP 5.5
There is an unofficial version of SQLSRV 3.0 on Rob's Area that does not require SQL Native client 2012 but should run with previous SQL Native clients. I didn't yet try this one.
ODBC extension of PHP
An other way to access SQL Server 2000 with PHP 5.4 is through the odbc extension. It is possible to connect using three ODBC drivers for SQL Server 2000:
SQL Server ODBC client version 6.00 that comes preinstalled with Windows 2008 R2
SQL Server Native Client 9.0 (SQL Server 2005 feature pack)
SQL Server Native Client 10.0 (SQL Server 2008 R2 feature pack)
The code for the connection for each of those ODBC Drivers:
$connection_string = 'DRIVER={SQL Server};SERVER=mbsql;DATABASE=vg1';
$connection_string = 'DRIVER={SQL Native Client};SERVER=mbsql;DATABASE=vg1';
$connection_string = 'DRIVER={SQL Server Native Client 10.0};SERVER=mbsql;DATABASE=vg1';
$connection = odbc_connect( $connection_string, $user, $pass );
These connections work with PHP 32 bit and 64 bit. I din't yet test which one is the best.

Move from SQL Server CE to SQL Server Express

I just wrote a large program using SQL Server Express and was very happy, the difficulty is that it is difficult for customers to install SQL Server to test the program out.
I looked into SQL Server CE and it looks great for smaller clients and trial software. However SQL Server CE uses System.Data.SqlCeServer and not System.Data.SqlClient
Is there a way to make an application that uses SQL Server CE and then if desired the client can upgrade to SQL Server Express?
No, they're different platforms. CE is for the Compact Edition, so it's intended to be used on sometimes disconnected devices with limited resources compared to a SQL Server. CE should have a subset of Express' functions.

Connecting Oracle with VB.net 2010

I have installed Visual Studio 2010 and Oracle 11g in my Window 7.
Oracle seem to be fine because i can connect to System user, Create user and create database.
But the problem is that I can not connect the Oracle to my VB.net project and there is no System.Data.OracleClient Namespace. Do I need to install Oracle Client in my computer even though i have installed Oracle Server?
You have to install Oracle Data Provider for .net, which is a separate download. Older oracle versions relied upon OleDb, but newer versions provide their own Data Provider.
Check this sites:
Getting Started with Oracle Data Provider for .NET (VB.NET Version)
Using Oracle VB.NET