English Boards > Tutorials
Configuration backup
emre:
Ta taam... Great job John!!!
Our support team will love this. I have to translate it to Turkish asap.
jenem:
Hi John,
Great Job !!
Can I ask is it only for a networked database or can you use it for training on a local MSQL database?
Edgar
JohnS:
Edgar,
The script is setup for a local MSSQL database. If you need to connect to a remote database you will need to edit the MigrateDB.bat file and replace the following line
Export2sqlce "Data Source=%mssql%;Initial Catalog=SambaData2;Integrated Security=True" SambaData2.sqlce
with
Export2sqlce "Data Source=%mssql%;Initial Catalog=SambaData2;Integrated Security=False;User Id=sa;Password=sambapos;" SambaData2.sqlce
Making sure you enter the MSSQL User Id & Password you set when installing the MSSQL Instance.
Then you need to edit the SambaTrain.bat file and add the User Id & Password to the MSSQL connection string.
set mssql=D620-PC\SAMBAPOS; user id=sa; password=sambapos;
If you are running a domain controller or if all your PC's (including the MSSQL Server) have the same logins, and passwords, then you shouldn't have to change any of this. But then again it is MSSQL ::)
** Just updated the files to reflect these notes **
JohnS:
--- Quote from: JohnSCS on January 30, 2012, 09:47:44 pm ---Is there an easy way to add command line options to SambaPOS ? For example add a '/t' to tell SambaPOS that this is a training session and it displays 'Training' at the top of the screen.
Or better still '/t [terminal name]' to assign a terminal name like 'Restaurant Bar' to the top of the POS screen? Have it read the terminal name from settings and if we don't define a name when launching SambaPOS then it displays the terminal name.
--- End quote ---
OK Emre, now its your turn.
I would really like to see the above idea in action.
emre:
So what will you think about implementing an action for updating the title text? We can use it for different purposes...
I can add an additional feature to "Application Started" rule for testing command line parameters.
Maybe at a later time we can implement "start process" action for starting bat files, or executing scripts.
I don't know where we are going to :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version