This collection of scripts will convert a Compact SQL (*.sdf) database to SQL Express 2012 database and update SambaPOS to use the database.
Requirements
1… SambaPOS should be working using the Compact SQL database -> SambaPOS4.sdf
2… Install SQL Express 2012 exactly as documented here - DO NOT follow step 4. Using SQL Express 2012. and do not run SambaPOS after installing SQL Express.
3… Locate SambaPOS4.sdf and place all of the files from the attached ZIP file into this location. The location usually is C:\Users\{user}\Documents\SambaPOS4.
4… Check in C:\ProgramData\SAMBAPOS\SambaPOS4 and make sure that SambaSettings.txt file is there.
5… Run import_sql.bat
6… Run SambaPOS. Go to Manage->Settings->Local Settings and make sure the Connection String is Data Source=localhost\SAMBAPOS3; User Id=sa; Password=sambapos; Database=SambaPOS4;
This was designed and tested on Win7.
This is non-destructive to your Compact SQL database, but as always I make no guarantees. Always make a copy of your SamabPOS4.sdf file first.
Exporting data from SambaPOS4.sdf to SambaPOS4.sql
Initializing…
Generating the tables…
Generating the data…
Generating the primary keys…
Generating the indexes…
Generating the foreign keys…
Sent script to output file(s) : SambaPOS4.sql in 13324 ms
Creating SAMBAPOS database in SQL Express
Sqlcmd: errore: Microsoft SQL Server Native Client 11.0 : Interfacce di rete di
SQL Server: Errore nell’individuazione del server/dell’istanza specificati [xFFF
FFFFF]. .
Sqlcmd: errore: Microsoft SQL Server Native Client 11.0 : Timeout di accesso sca
duto.
Sqlcmd: errore: Microsoft SQL Server Native Client 11.0 : Si è verificato un err
ore specifico dell’istanza o relativo alla rete durante il tentativo di stabilir
e una connessione a SQL Server. Server non trovato o non accessibile. Verificare
che il nome dell’istanza sia corretto e che il server sia configurato in modo d
a consentire connessioni remote. Per ulteriori informazioni, vedere la documenta
zione online di SQL Server…
Importing SambaPOS4.sql into SQL Express SambaPOS4 database
Sqlcmd: errore: Microsoft SQL Server Native Client 11.0 : Interfacce di rete di
SQL Server: Errore nell’individuazione del server/dell’istanza specificati [xFFF
FFFFF]. .
Sqlcmd: errore: Microsoft SQL Server Native Client 11.0 : Timeout di accesso sca
duto.
Sqlcmd: errore: Microsoft SQL Server Native Client 11.0 : Si è verificato un err
ore specifico dell’istanza o relativo alla rete durante il tentativo di stabilir
e una connessione a SQL Server. Server non trovato o non accessibile. Verificare
che il nome dell’istanza sia corretto e che il server sia configurato in modo d
a consentire connessioni remote. Per ulteriori informazioni, vedere la documenta
zione online di SQL Server…
Changing SambaSettings.txt file to connect to SQL Express database.