sharing of database between two programs
Hello
I have the need to save the data to an application (I use a SQL database) and access the data of another application.
Following a few examples, I have the following code to create the database.
This is the code of the application that CREATES the database.
void ApplicationUI::createDatabase() {}
Basis of data QSqlDatabase = QSqlDatabase::addDatabase ("QSQLITE", "Database");
Boolean success = false;
database.setDatabaseName("./data/Database.db");
If (database.open ()) {}
success = true;
} else {}
const QSqlError error = database.lastError ();
}
Database.Close ();
}
That's what I do for create table.
Sub ApplicationUI::createTable()
{
Basis of data QSqlDatabase = QSqlDatabase::database ("Database");
("SqlDataAccess * sqlda = new SqlDataAccess("./data/Database.db ");
SQLDA-> run ("DROP TABLE IF EXISTS people");
{if (!) SQLDA-> HasError())}
} else {}
const DataAccessError error is sqlda-> error();.
}
const QString createSQL = "CREATE TABLE people ().
«name VARCHAR»
«email VARCHAR»
'e - mail1 VARCHAR'
«email2 VARCHAR»
");";
SQLDA-> execute (createSQL);
{if (!) SQLDA-> HasError())}
} else {}
const DataAccessError error is sqlda-> error();.
}
}
The first program also fills the table
Here is the code of the OTHER application that reads the database.
void ApplicationUI::getDATA() {}
int recordsRead = 0;
("SqlDataAccess * sqlda = new SqlDataAccess("./data/Database.db ");
const QString sqlQuery = "SELECT email, email1, email2 FROM people;"
QVariant result = sqlda-> execute (sqlQuery);
{If (! sqlda-> {hasError())}
If (! result.isNull ()) {}
List of QVariantList = result.value
} } The error I get, is that there is no table named "persons". Is it because the two programs are in different folders? If so, where could / should I put the database for both programs can access freely? Thanks for your help and your clarification. No, a shared folder for normal users and the users of the workspace is different, but you can access it with this line: Tags: BlackBerry Developers How can I set sharing of files between two iMacs? I want to set up the sharing of files between two iMacs in my office. Both work on iOS 10.11.3 and both are on the same WiFi network. I'll Finder, select the name of the other computer under 'sharing', then ' connect under... ". ", and then enter the name and password of the other computer. On a computer, I am told that it is connected with each other. However, the second computer always shows "the connection failed". I tried the 'Registered user' choice of "Guest" and "using Apple ID", but none will establish the connection. There must be something obvious that I'm missing, but I wasn't able to find out. I also tried to see if they would communicate with Bluetooth. Bluetooth screens on each computer show the the other is detectable by the proper name, but is never establish a connection. Connect to the same network. Enable sharing of files on both machines. Select the items to share on each machine and check the box in the dialog box information. Sharing a SQL database between two computers by cable of flipping? I have a problem. My computer runs a hardware inventory program that stores information in a database stored on the same computer. Due to high traffic, I need a second computer to access the same database at the same time as my own computer which would also be able to access it, but change the database at the same time, as I can. They are already connected by a cable of reversal, but I can't seem to find a way to connect the two to the database? I tried to look everywhere, but there is no indication that I can find. Can someone please help? This issue is beyond the scope of this site and must be placed on Technet or MSDN Insert date individual of database, between two dates Shirish wrote: ERMM... same as you would any other insert... or How can I share contacts and calendars between two Apple ID? Also my wife and share our music iTunes between our IDs? See the following topics: I have a .net programming when it was on XP pro it worked fine. Since moving to Windows 7 pro the shared link will open the program, but information is not updated, because it seems that she has created its own database with information from the local computer is installed on and is not matching the information. For example, if the local computer is mapped machine upon receipt #25 is the #15 and should be on #26 and showing all the other receipt printed by the local machine. but its starts from where it was stopped 2 days ago, and is not followed. OT: .mdb problem with WIN 7 pro Thanks for all the help, I need it! Hello The question you posted would be better suited to Windows 7 IT pro community. Copy of the object between two databases Hi, in SQLDeveloper I can copy the objects 'tools-> copy of database... "between two databases such as (tables, views, indexes, triggers, constraints, etc, etc...), but how can I do it with SYNONYMS and GRANT of the object? Thanks for your help. You can watch the cart (view > trolley). The cart can generate a script to include SUBSIDIES, and you must add synonyms. You can then run these scripts in your target database. Drag the table to your shopping cart. Add synonyms. Export your basket. Select "grants." Decide if you want the data or not. vMotion (without shared storage) between two hosts with different vSwitches standard s VM I can VM vMotion (without shared storage) between two hosts with different vSwitches standard? The vSwitches on these two hosts have different names and number of NIC, but have the same name of portgroup. Yes, you can in a Storage VMotion to one Esxi to another with no shared storage... It is important the portgroup bears the same name... This is the reference for the VM... Move a virtual machine to turn off between two hosts, shared storage Dear Experts, Please guide me for the next case. There are two hosts of Esxi, host 1 is Esxi 4.0 and host 2 is Esxi 4.1. There are store data SAN storage that is visible to both hosts. I watched solard winds VM monitor utility that hosting 2 consumes 90% of the memory while its processor is ok. On host 1 is normal. So, I want to spend only a few VM of to host 1. So please correct me if what I think are OK. I will turn off the virtual machine to be moved from host 2. Then I it will remove host 2 inventory. Then on host 1, I'll go to the data store in the folder that VM and do a right click on the file 'say add to the inventory' and now I'm going to see this virtual machine in the inventory of the host list, just turn on and everything is perfect, is this correct? Second question on the same hosts, there are a few other data stores that are visible to a host. As if this is the case there is a virtual machine on a data store that is visible to host 2 and I want to spend this VM to host 1 to reduce load on host 2. How to move this virtual machine because this data store is not visible to host 1? Will I have to copy this VM files in a data store that is visible to host 1? If YES then what real required to copy files? Kindly help me. Kind regards From your description I m assuming that you use not vCenter to manage your hosts, correct? If you have a store of data shared between two hosts you can do the steps you descripte (power off, remove the inventory etc.). For your second case there are several ways, it depends on where you want to place the virtual machine in the future. Wouldn't be on the shared data store that already exists or can in the local data store on the other host? Or is there an option to also display the current data store to host 1? If you want to copy the VM files copy the whole folder of it. Kind regards Mario How can I make a network between two databases? 969352 wrote: What virtualization product do you use? * #* vmware - toolbox - cmd - v VMWARE product information: Version: 7.0.0 build - 203739 Ok. You will need to ensure that the ip addresses you assign to your virtual machines are in the same subnet that the adapter created by the installation of vmware. Once you get the fixed basic network installation, you can treat these virtual machines like any machine in your data center. Forget the vm console and access it exactly as you would for any remote server - putty for the Linux and Windows Remote Desktop to the Windows machine. To a prompt on the host computer, post this: You will get feedback on multiple net cards, of which two are identified as with vmware - vmNet1 and vmNet8. Note the IP addresses of the two. We'll need later. Note that these issues are out of scope for this forum. I don't mind helping, but I don't have an installation of vmware for details of the reference. I tried to Exchange data from windows to linux DB database It's pretty vague. Exactly how did you try to "Exchange data"? A SQL using a db_link? import/export? Pigeons? I don't know, how to set up the ip address and the necessary information for the windows database. Configuration of an IP address is purely a matter of admin OS and out of range for this database forum. It's all Edstevens... Thank you... use a hard file as a shared disk between two vm Hi guys,. I wanted to know if there is a possible way to create a hard file as a shared disk between two virtual machines. That's my idea: I want to create a mscluster between two vm one before I need to a shared disk - I don't want to use the external storage, so I thought that maybe there is a way to use a file hard like a disk storage shared "external". Is it possible to do this? If there is, I enjoy an explanation how to do that. Thank you very much Martin. Take a look at the cluster configuration guide - http://www.vmware.com/pdf/vsphere4/r40/vsp_40_mscs.pdf. Dave VMware communities user moderator New book in town - Start Guide quick vSphere -http://www.yellow-bricks.com/2009/08/12/new-book-in-town-vsphere-quick-start-guide/. You have a system or a PCI with VMDirectPath? Submit your specifications to the unofficial VMDirectPath HCL - http://www.vm-help.com/forum/viewforum.php?f=21. "Limited connection" when you configure the network between two computers XP. Original title: Configuration of the network connection Trying to establish a network connection between two home PCs., both running Windows XP Pro. Have been through the network on both PC Setup Wizard but, they still say limited, in fact no connection. I use an Ethernet cable between the two Crusader. If it is true what I'm doing wrong? Old but good, networking tips from MVP Malke, MS: The best and simplest is to buy a wireless router. This way you get Internet connectivity both machines and the added benefit of security more between you and the Internet. Then you configure your network wireless safely, and then you configure file/printer sharing. Here is information on the implementation of a router and also in networking. It seems long, but don't be intimidated. Setting up a router and the LAN of sharing between two computers takes about 15 minutes. The router configuration Setting up a router is simple enough. Normally, you run the CD that came with the router and follow the instructions. If you're running Vista, maybe the CD that came with the router does not work; I do not know this. But you can set up the router without the CD. Note that if you have Internet cable for the connection you have just set up the router to DHCP (or there may even be a choice of cable to choose). If you have DSL Internet, you select TRP usually and enter the username and password you selected when you initially set the DSL connection. So: 1. turn off the power to your cable modem. 2. attach a cable (usually supplied with the router) course Ethernet cat5e Internet/WAN port of the router to the Ethernet port on the cable modem. 3. connect the ethernet cable cat5e from the network card in your computer to one of the ports on the router. If you do not have an ethernet cable (because you were using USB), you will need to go to the store and buy a. 4. turn on the cable modem. After that all the lights are on, turn on the router. To configure the router: Have a computer connected to the router with an ethernet cable. Examples given are for a Linksys router. See the manual of your router or the router mftr's Web site. for the parameters by default if you don't have a Linksys. Open a browser such as Internet Explorer or Firefox and in the address bar type: http://192.168.1.1 [Enter] (it is default IP address of the router, which varies from router to router then check your manual) This will bring you to the login screen of the router. The default username is blank and the Linksys default password is "admin" without the quotes. Enter this information. You are now in the configuration of the router utility. Your configuration utility may be slightly different from mine. Click the Administration link at the top of the page. Enter your new password. MAKE A NOTE SOMEWHERE THAT YOU WILL NOT LOSE. Re-enter the password to confirm it, and then click Save settings at the bottom of the page. The router will reboot and show you the box of connection again. Do not fill in the user name and put it in your new password to enter the configuration utility. Now, click on the link wireless at the top of the page. Change the network name (SSID) wireless by default to something, you'll recognize. I suggest that my clients not use their surname as the SSID. For example, you might want to name your network wireless network "CastleAnthrax" or similar. Click on save settings and when you get the prompt that your changes were successful, click the wireless security link which is just beside the Basic Wireless Settings link (where you changed your SSID). If you have a newish computer, you will be able to affect security WPA2-Personal Mode. Do this and enter a password. The password is what you enter on all computers that are allowed to connect to the wireless network. MAKE A NOTE SOMEWHERE THAT YOU WILL NOT LOSE.
At this point, your router is set up and if the computer that you use to configure the router will normally connect wireless, disconnect the Ethernet cable and wireless of the computer should see your new network. Enter the password you created to join the network and start surfing. ***** B. file/printer sharing of Excellent, comprehensive, but easy to understand article on sharing files/printer under Vista. Contains information about sharing printers and files, and the folders: http://TechNet.Microsoft.com/en-us/library/bb727037.aspx
For XP, start by running the Network Setup Wizard the on all machines (see warning in section A below). Problems sharing files between computers on a network are usually caused by 1) a misconfigured firewall or a firewall neglected (including a dynamic firewall in a virtual private network); or (2) inadvertently run two firewalls such as the firewall of Windows and a third-party firewall. and/or (3) do not have accounts to the same users and passwords on all computers in the workgroup. (4) tries to create actions where the operating system does not. A. configure the firewall on all machines to allow traffic to local area network (LAN) as being approved. With the Windows Firewall, it means which allows file sharing / print on the Exceptions tab normally run the XP Network Setup Wizard will take care of this for these machines. The only "witch hunt", it will turn on the XPSP2 Windows Firewall. If you are not running a third-party firewall or you have an antivirus with "Internet Worm Protection" (like Norton 2006/07) which acts as a firewall, you're fine. With a third-party firewall, I usually set up the allocation of LAN with an IP address range. E.g. would be 192.168.1.0 - 192.168.1.254. Obviously you would substitute your correct subnet. Do not run more than one firewall. DON'T STOP FIREWALLS; CONFIGURE THEM CORRECTLY. (B) to facilitate the Organization, put all computers in the same workgroup. This is done from the System applet in Control Panel, the computer name tab. C. create the counterpart of the user accounts and passwords on all machines. You do not need to be logged into the same account on all machines and assigned to each user account passwords can be different; accounts/passwords just need to exist and to match on all machines. DO NOT NEGLECT TO CREATE PASSWORDS, EVEN IF ONLY OF SIMPLE. If you want a machine to boot directly to the desktop (a particular user account) for convenience, you can do this. The instructions on this link work for XP and Vista: Set up Windows to automatically connect (MVP Ramesh) - http://windowsxp.mvps.org/Autologon.htm D. Si one or more of the computers is XP Pro or Media Center, turn off Simple file sharing (Folder Options > view tab). E. create share as you wish. XP Home does not share the users directory or the Program Files, but you can share folders inside those directories. A better choice is to simply use the Shared Documents folder. See the first link above for more information on Vista sharing. F. you have the job of file sharing (and tested by exchanging a file between machines), if you want to share a printer connected locally to one of your computers, share of this machine. Then go to the printer mftr Web site. and download the latest drivers for the correct system. Install them on the target machines. The printer must be collected during the installation procedure. If this isn't the case, install the drivers and then use the Add Printer Wizard. In some cases, printers must be installed as local printers, but it is outside this response. I want to create communication between two laptops by Bluetooth series Hello I'm trying to accomplish communication series between two laptops via a Bluetooth connection. The two laptops are NOT portable Toshiba, but they work together the Toshiba Bluetooth Stack For Windows. They have both also use the default Bluetooth Manager program supplied by Toshiba and Dell (just rebadged?). Basically I can set up a connection no problem, but then I have never send data serially from one computer and watch the receiver serial port on another computer but nothing happens. Is there a good tutorials for this? It would be nice to have something for the Toshiba Bluetooth Manager especially windows and buttons have names as explained in the tutorial. Thanks in advance. Adam I tried via a hyperterminal connection for testing purposes and it worked. PC1: PC2: PC1: PC1, PC2: PC1: CD part downloads between two iTunes accounts on the same MacBook Pro We have a MacBook Pro shared between two users Can I share a CD downloaded on two iTunes accounts, without using home sharing? I don't really want to download the same CD twice as that would waste space unnecessary. Thank you Without using home sharing...? I guess it's technically possible if you put the iTunes Media folder to somewhere that is accessible from the two user accounts, but which will cause more problems than it is worth. For example, you can add new songs in your iTunes library and the other user iTunes library will not know about these songs. Or another user can delete music files, while your iTunes library expects that these records of songs to always be there. Is it possible to route signals of relaxation between two chassis PXI-1002 with the PXI-8335? Hello as the subject says, I am interested in the delivery of a signal to trigger between two chassis PXI-1002. At present, these two chassis are connected by a MXI - 3 system using maps PXI-8335. The software is Labview 2010 sp1 and 380 NIScope drivers. We want to keep (a PXI-5122 by chassis) scanners supply separated due to the requirements of our measure! The chassis are connected via cable to fiber optic. This explains why I can not just use the shutter release in Star, or connect via 'Trigger' or 'clk' cards (the inputs / outputs to the front of the cards). I found a few examples, but they seem to all be designed for use with a chassis only, I'll call later to the examples that inspired me to this point. Each guide explaining the synchronization of several chassis systems seems to use another material or VI is not accesible to me. This makes me wonder if my hardware has the capacibilities I need. The first picture shows approximately where I started from (sorry I can't post VI, confidential...): Only the middle part is interesting. Two sessions are initialized and manipulated parallel, trigger too. This has led to delays in the signals and should now be fixed. This apart from the VI works fine. Goal is to trigger only on one channel but both devices! If possible, the device will trigger must be chooseable. I started to rebuild the VI using the "EX Synchronization.vi 5xxx niScope' seeming spontaneity. The result is shown in the following image: I tried different RTSI lines, but had no positive results. only the main channel has triggered. After this first approach, I looked in the "niScope EX .vi multi-Device configured Acquisition (TClk)" and other examples of TClk which seem to work for similar problems. The VI of reconstruction can be seen in the following images: (Sorry, I had to use two photos..) In this case, I didn't have no choice for trigger lines, it would automatically set the VI TClk. I tried to trigger on both devices, though. This second approach seemed promising to me, but it was an error: "niTClk Synchronize.vi:1".
Index (starting at zero) of the session: 1 The error reported by the pilot of the instrument: No registered trigger could be found between the If you have a PXI chassis, the chassis correctly identify in Source device: PXI1Slot4 Target unit: PXI2Slot4 Status code:-89125niTClk Synchronize.vi:1
Index (starting at zero) of the session: 1 The error reported by the pilot of the instrument: No registered trigger could be found between the If you have a PXI chassis, the chassis correctly identify in Source device: PXI1Slot4 Target unit: PXI2Slot4 "Status code:-89125"
This error came back even after I've identified this drug as possible to the MAX, as shown in the screenshot: In some of the textbooks, they showed how to get the MAX trigger lines, but as you can see, there is only booking options in my MAX. Whatever I do, I can't find options to define how to get my trigger signals... In principle, it is possible to trigger instruments in different chassis, which is indicated in this Guide and others... the question that remains is can it be done with my set of components?
I understand that the use of multichassis compromised the integrity of the lines very adjusted as trigger in Star etc., so the configuration should be taken into account in some way, that my approach does not, I knew... But there must be a way to do this? And to start: to get just any signal from one device to the other trigger! For any advice on this issue, I would be very thanfull! Concerning Max1744 Hi Max,. Thanks for the detailed post and explanations of your application and requirements. You're right using TClk, because this is the optimal method to synchronize the 5122 digitizers. The original VI you worked with is unique for some of the legacy scanners and does not directly work with scanners based on the most recent CMS (for example the 5122). The good news is that you can synchronize these cards to separate chassis, but it will use the calendar 66xx and synchronization (T & S) cards in the chassis of the master and the slave, as indicated in the guide that you have accessed. These are needed because a common reference clock must be shared between them as well as a couple of tripping. MXI itself can not handle export triggers and clocks, so there is no way to do this without physically wiring between the chassis with cards T & S. Unfortunately, regardless of what specific method, you use for synchronization, it will take a material extra beyond what you currently have. As one of your needs looks like it is necessary to retain wiring between the chassis directly, you may need to consider to synchronize using 1588 or GPS protocols. 1588 Protocol is a system for synchronization on the network while GPS course use antennas and locks for a common wireless signal. Although these synchronization methods may allow you to keep your chassis isolated, they will also require some manual configuration because you would be able to use the TClk synchronization and so the level of synchronization you can get between the cards may not be as good that can physically wire signals between the chassis using T & S cards. Hope this helps, All of a sudden, I have problems with Facebook games. When you press spin it keeps spinning and spinning. Also, today I received the message that Download Manager is obsolete. In addition, my Firefox says not responding do not and I don't know why bu Gmail does not load in firefox Gmail does not load in Firefox browser. I can get it in Internet Explorer. I disabled the Add-ons, extensions, put the theme by default, renamed extensions. ?? files, running in safe mode and a few other options, but it still will not charge. Downloa Essentials is on run full scan but no information in the history I have run full crawls for three weeks but never get all the information in my story? How to have 2 apps together open I need to turn on open to read a book and the sidenote, open Notepad or word to take notes, NEXT! NOT in another window reduced to the start menu, NEXT! Open at the same time, so that I can make notes. This simple task is possible in Windows 8? Hello worldI use 11.1.1.7 version of Jdeveloper. I have a table adf BC. I need to call another ADF BC table inside the table. I need get the questionId from each row in the main table and fix the questionId as a point of view of the criteria drop ins
recordsRead = list.size ();
for (int i = 0; i)< recordsread;="" i++)="">
Map: QVariantMap = list.at (i) .value
name = map ["name"] m:System.NET.SocketAddress.ToString ();
email = map ["email"] m:System.NET.SocketAddress.ToString ();
e-mail1 = map ["email1"] m:System.NET.SocketAddress.ToString ();
Email2 = map ["email2"] m:System.NET.SocketAddress.ToString ();
}
const DataAccessError error is sqlda-> error();.
QString theerror = error.errorMessage ();
}
QString sharedPath = QDir::currentPath() + ' shared ';Similar Questions
I have IE (from_date, to_date, comment) form fields
If I select from_date: = 03/10/2012
TO_DATE: = 14/03/2012
Comment: = work (example) personal
Click on the "submit" button, and all I want is
in individual date of the database must be inserted into the database (i.e. between date - to date) with comment for every date.
Please suggest a procedure for this.
Thanks for the reply...
But how can I insert in the database...
INSERT INTO tablename
SELECT ...
INSERT INTO tablename
WITH ... subquery factoring clause ...
SELECT ...
http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads
Thank you.
Is going to set up oracle 10 g - (
I try to Exchange data between two different databases.)
Each database is configured in different operating systems.
For ex: a database of windows XP (separate virtual machinne)
a database of linux rhel (separate virtual machinne)
I'm waiting for suggestions...
Thank you...
Published by: 969352 on March 19, 2013 10:04
8.1.3.9911 (build-203739)
c:> ipconfig -all
You'll also need to know how you have configured the network cards on your virtual machine - NAT, bridged, hostonly?Which have really tried to do? ( Data transfer )
>Where are you stuck?
Google is your friend, but only if you use: [url http://lmgtfy.com/?q=configure+windows+ip+address] http://lmgtfy.com/?q=configure+windows+ip+address
>
Maybe the description also contains useful information for you.
It is here:
Start "Bluetooth settings-> Mode custom-> Select Remote PC-> Select"Serial Port"-> Accept proposed (in my case COM40) COM-> Confirm Assistant windows port
until the installation is completed".
Start 'HyperTerminal-> Select COM7.
Start 'HyperTerminal-> Select COM40 (in my case. (See step 1 above) »
Enter the password even if security is enabled for example "0000".
Everything you type in HyperTerminal must be visible in HyperTerminal of PC2 and vice versa.
devices on the route.
MAX and make sure that it has been configured correctly. If you use PCI
devices, make sure they are connected with a RTSI cable and that the cable RTSI
is saved to the MAX. Otherwise, make sure that there is an available trigger line
the trigger bus shared between devices.
devices on the route.
MAX and make sure that it has been configured correctly. If you use PCI
devices, make sure they are connected with a RTSI cable and that the cable RTSI
is saved to the MAX. Otherwise, make sure that there is an available trigger line
the trigger bus shared between devices.Maybe you are looking for