This question already has an answer here:
Update SQL Server table with local data
(1 answer)
Closed 8 years ago.
I am creating an Access Database that will reside on a Windows Tablet.
The user will take the tablet to locations where network and internet access aren't available, create entries into the local database on the tablet.
The database was developed on Sql Server 2008, then copied to local table to insure correct structure.
I can collect the data fine, my question is this:
When the tablet is back on the network, I want to use a button to upload the data stored locally to our SQL Server, then remove the data from the local database.
How do I connect the SQL Database (connection string info in VBA I assume - just don't know the syntax) and perform the upload when back on the network?
Thank you,
Steve
If you are talking about synchronising a local sql database on a table (surface ?) to say web based sql server you might want to consider the sync framework - see this post for more information on its use in mobile
mobile and sync framework
Related
Machine A: live IP 110.36.228.157 / Installed SQL Server 2014, have a database PCLS2018
Machine B: live IP 110.36.228.156 / Installed SQL Server 2014, also has a database PCLS2018
I need to transfer data on a daily basis from Machine A database to Machine B database.
I tried to use an open query but failed. Then I tried to use linked server but could not create a linked server.
I expect after running the query the data on both databases deployed on different machines having different ip's will be same.
enter image description here
enter image description here
Linked server is a best solution to use distributed transaction and cross database\Instance call. Can you please share the details, why you are not able to create Linked Server?
I'm working on a database driven program in Visual Studio 2015, in C#, Windows Form Application, and I'm using SQL Server 2014 for my databases, downloaded the most recent version from the MSDN site.
I've got it working well. But if I want other users on other computers and different versions of Windows, this would require them to have SQL Server installed, correct?
Basically the app is used for storing current medications, moods, a mood quiz, symptoms, etc.. and I store all the results in SQL Server databases. They can be edited, deleted, etc through the program's GUI. Do the users need SQL Server installed to use this app?
If so, is there an alternative to keeping databases without having to have the SQL Server connections, or is there a way to do this without the users having to have SQL Server installed? I don't want remote connections to me, I want it standalone.
Does this make any sense? If not, I can explain more. I know way back in the days of Visual Basic 4 I was making, reading and writing databases without SQL. But that was 16 years ago. So I'm wondering what the easiest solution to this is. Thanks!
In other words, you want a database that you can a) distribute to end users freely and b) that will 'connect' just to the copy of the database they have stored locally.
Here are a few options ---
SQLite over ODBC is as-easy-to-use as MSSQL, the driver can be found here:
SQLite ODBC
Use ConfigurationManager.OpenExeConfiguration to read / write your app config .xml file and use it as a key / value store. I can provide examples if needed.
Dynamically create an Access database, it should work as well as MSSQL for most things, with less overhead. Here's how:
Create an Access Database
Use SQLIte DLL. Details on SO
create-sqlite-database-and-table
I am new to remote database connections and I want to setup a very simple single table Delphi XE6 project to view a table ('CUSTOMERS') that I've just created in a small Windows Azure SQL database. I plan to use this access for both VCL code and FireMonkey on Android later. I can see and edit the table using the Azure dashboard.
To test the VCL code, i've dropped an FDConnection on my form with a TFDTable, TDatasource and TDBGrid. I've seen example connection info here but this refers to the MSSQL driver which I presume that I don't have because I'm using XE6 Professional. So I've used a TFDPhysSQLiteDriverLink and tried using the SQLite driver with connection params:
User_Name=user#56ss8sbeq
Database=tcp:56ss8sbeq.database.windows.net
Password=1234
Encrypt=Yes
MetaDefCatalog=DB123SQL
DriverID=SQLite
My table is CUSTOMERS and this is in the table name property of the TFDTable. When I run the project I get no connection errors but I do get "[FireDAC][Phys][SQLite] ERROR# no such table CUSTOMERS". Does this indicate that I'm being stupid in trying to use that driver? If so, do I have any way of accessing my DB with FireDAC?
AFAIK Windows Azure SQL database is a MS SQL database hosted on the cloud.
You need an MS SQL driver. You just can not link to MS SQL with a SQLite3 driver!
Upgrade your XE6 edition by buying the FireDAC bundle, or switch to other libraries, like ADO Components, which are part of XE6 Professional if I remember well.
I have been trying to figure out how to start with Oracle SQL, but I can't get the "Connection" to work. I'm not sure what the (connection name, username, password, etc.) fields are.
If I want to create a small database on local host, why do I need to connect in the first place.
I searched Google but still can't get it to work. Any help is appreciated.
ERROR MESSAGE: IO Error: The Network Adapter could not establish the connection
SQL Developer is just a client utility that lets you connect to an existing database. It sounds like you don't have a database to connect to yet. If that's the case, you'd either need someone to create a database on another machine for you or you'd need to download the database software on to your local machine and create a database to connect to. You can download the Oracle database from the Oracle Technology Network, the same place you downloaded SQL Developer from. I would guess that you would want to download Oracle 11.2 Express Edition.
Alternately, you may want to download one of the VMs that Oracle has put together that has a lot of related software installed for you to use. For example, this VM has SQL Developer, Oracle 12.1, APEX, XML DB, and a number of labs already installed for you.
Oracle SQL Developer is a tool to ACCESS existing database, you cannot create new database here. The connection is used to define where your existing database sits and how to connect to it. So you need to name you connection (bookmark), provide host name, where database runs and user name plus password to identify yourself.
I am developing windows 8.1 application and using AZURE mobile services to communicate with. I need have some data in azure mobile services database which will be dumped to application when it's installed on any device. So I tried to add records in the database using azure management portal SQL_database but seems like I cant do that it gives me error
"Cannot add a row in the Table Data Editor because one or more columns are required but their SQL types are not supported in Table Data Editor. Use the Transact-SQL Editor to add a row."
This is probably due to the --version column that has binary type . So I tried deleting this column but then there was following error
"The target table 'ShoppingListPro.Category' of the DML statement cannot have any enabled triggers if the statement contains an OUTPUT clause without INTO clause."
I googled this issue and what I found is Link .
Please guide me if it is possible to edit the azure mobile service data base using management portal that will make my life bit easy , other wise I need to write an app to feed data to azure mobile database.
Thanks
You can connect to the DB from SSMS. Just check what your connection string is below 'Connect to your database':