|
Yes, but why would the client be adding records to those tables?
Kevin Marois wrote: PK's are unique
Globally unique?
|
|
|
|
|
I don't understand why you're questioning this.
The software is installed locally on a user's PC, along with a local copy of the DB. The software does CRUD operations on the local copy of the DB.
Then, at night, or at least once per week, the software uploads all new/changed/deleted records to the server.
If it's not broken, fix it until it is
|
|
|
|
|
PIEBALDconsult wrote: That is a big reason not to use integers as keys.
Yeah, people being too lazy. The problem goes away with GUIDs, since that allows for laziness.
Bastard Programmer from Hell
|
|
|
|
|
Kevin Marois wrote: and each night will upload its data to the server
Is this a oneway communication where the data is only uploaded, or will it synchronise the data with the server?
If it's just an upload you don't need to have global keys, you can add new keys at the server when uploading.
|
|
|
|
|
There will be two-way communicaation
If it's not broken, fix it until it is
|
|
|
|
|
I don't see a key, only an identity-field. If that identity is the key, and you need a quick solution, add a second column with a GUID and promote that to be the primary key.
I'd recommend to have a "real" key; take those columns that uniquely identify a record, and use those as a key, and the identity merely as an alternative shortcut to that.
Bastard Programmer from Hell
|
|
|
|
|
|
Hi we have an Oracle 10g database that I would like to connect to, the database has been written by a 3rd party.
I was wondering what free tools I can use to access the tables, etc. Something similar to SQL Server management studio would be nice.
Also if I need to install something else Oracle related, dll or whatever, in order to connect to it. We have the server, database login, etc, just need to connect to it!
Thanks
|
|
|
|
|
Dangermouse99 wrote: Something similar to SQL Server management studio would be nice.
Something like Sql Developer[^] perhaps?
|
|
|
|
|
|
No problem. Glad to help.
|
|
|
|
|
I downloaded Oracle's ADO.net connector and added support for it in my database classes. That meant that I could access Oracle databases from my console and WinForms apps, including one that allows the user to enter ad hoc queries and view the schema.
|
|
|
|
|
SQLTools[^] if you want it lightweight.
TOra[^] is at the other end of the spectrum.
Both are opensource.
SQL Developer and Oracle Developer Tools for Visual Studio has already been mentioned. They are from Oracle and are supported, ... sort of.
You will also need to install some version of the Oracle Client which is available in several versions such as the normal Client, Instant Client or Oracle Data Provider for Dotnet.
Oracle Developer Tools for Visual Studio has the Client built in.
|
|
|
|
|
I save image to database using byte array to SQL server image type, if i save 10 MB image, is it going to be bigger or smaller in database?
|
|
|
|
|
10 Mb will remain just that, unless you use a CompressionStream .
Bastard Programmer from Hell
|
|
|
|
|
I had a programmer in a foreign country develop an application for me, I had to dismiss him because he would not finish the program on time. I asked him for the source code to MySQL db and he would not provide it. I paid him so that wasn't the issue. I need to move my application from one cloud server to another company and I need help in figuring out how to break the db code to move the application. There are a lot of connection points in and out of the db so I can't just copy the db and move it over.
Thanks
|
|
|
|
|
Isn't the password mentioned in the connectionstring?
Bastard Programmer from Hell
|
|
|
|
|
hello,
I have a table named: 'Applicant' having fields:
'id_Applicant', 'name,'date_of_birth','date_of_death'
the sql or oracle query is:
'Select all applicant who are alive on 30-05-2012'
Please it's urgent
thanks alot.
|
|
|
|
|
What have you tried so far?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
m_safaaaa wrote: Please it's urgent
That's a big no no to say in a forum post. People will help you when they can. As the other poster has mentioned, what have you tried so far?
""Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I suspect that 2012-05-30 just might possibly be between the date_of_birth and the date_of_death (or some date in the future if null).
You are using DATE or DATETIME fields, right? Right?
modified 9-Jun-12 17:11pm.
|
|
|
|
|
|
SELECT * FROM Applicant
WHERE Date_Of_Death > CONVERT(VARCHAR,'30-05-2012',106)
- Happy Coding -
Vishal Vashishta
|
|
|
|
|
Works great, if the guy is still alive today...
Your query selects all who have already died past that date - that's a difference.
|
|
|
|
|
Either date_fo_death is null or greater than the given date:
SELECT *
FROM Applicant
WHERE date_of_death is null
OR date_of_death>@somedate
|
|
|
|