|
John Robert Wilk wrote: I'm not very confident
When in doubt just stamp their request, "Disapproved. Resubmit in 90 days for further disapproval."
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
John Robert Wilk wrote: . They now want to store some data in a database and whould like to store the
data in different database files in each of the shared network folders.
Certainly doesn't suggest a database which is performant.
And what happens when one of those servers goes down? It means the database would disappear. Might be interesting to see if MS SQL Server would even let you create the DB files on a shared folder. If it won't then that would rule it out completely. If it does then I would next test what happens to the database server if the share goes away when the server is running.
You know that they can create it in different directories right? Wouldn't that be sufficient? You might also mention that there are other back up strategies possible with the database rather than just doing a file copy.
|
|
|
|
|
To be honest I think they are looking for the easiest way out on their end which would be to do nothing and continue with the current process as is.
|
|
|
|
|
If I was getting paid for it and they really wanted to do it I would still try it out in MS SQL Server with the shared directories just to see what would happen. It sounds like an interesting experiment.
|
|
|
|
|
John Robert Wilk wrote: My question is, is this even a remotely good idea.
It merely proves that someone does not understand what a database-server is, and how it's being used. Whoever came with the proposal should not be doing any work outside of Microsoft Access.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
I have a stored procedure that is updating, but causing an insert error. Never seen that before.
Update MyCoolTable
Set MyValue=@passedInValue, SecondaryIdentifier=@secondID
WHERE PrimaryID = @primaryID
There is an index on (SecondaryID,PrimaryID) that is being violated and I'm not sure why. :
Quote: Cannot insert duplicate key in object 'dbo.MyCoolTable'. The duplicate key value is (secondaryIDValue, primaryIDValue).
Why is it trying to insert on an update?
--edit--
Nevermind, I figured out what was happening (though not from the error message). It can't update the secondaryID because there can be more than one, which is what is causing the problem. I guess when they wrote it that could never ever happen.
If it moves, compile it
modified 17-Sep-12 13:41pm.
|
|
|
|
|
loctrice wrote: I guess when they wrote it that could never ever happen
You might wanna post this a tip/trick. Maybe in this way it'll get searchable more easily by others having the same problem (and hopefully avoid another This is failing dunno why plz provide codez Q&A question)
Full-fledged Java/.NET lover, full-fledged PHP hater.
Full-fledged Google/Microsoft lover, full-fledged Apple hater.
Full-fledged Skype lover, full-fledged YM hater.
|
|
|
|
|
Andrei Straut wrote: avoid another This is failing dunno why plz provide codez
was there something wrong with my question? I know it was a dumb question but my brain was just slow today. I guess I should/could have waited longer to post.
If it moves, compile it
|
|
|
|
|
Oh, sorry for not making it clearer. I wasn't referring to your question (and I did upvote it), that was posted just fine from my point of view. I was referring to someone else having this problem in the future and posting in the manner I described.
Didn't think you'd think I'd think that of your question (pun intended).
Full-fledged Java/.NET lover, full-fledged PHP hater.
Full-fledged Google/Microsoft lover, full-fledged Apple hater.
Full-fledged Skype lover, full-fledged YM hater.
|
|
|
|
|
Andrei Straut wrote: Oh, sorry for not making it clearer.
my fault. glad we got it cleared up
If it moves, compile it
|
|
|
|
|
how to add pictures and videos in mySQL???plz help me
|
|
|
|
|
It's very simple.
You try a Google search[^] first, then after you've done that and got some sort of idea of what you need to do you start doing it, and then when and if you get stuck, you come back, you explain your problem clearly and with detail (while providing the smallest possible amount of relevant code), and someone will probably give you an idea. This is how it works.
Until then, I am downvoting your question
Full-fledged Java/.NET lover, full-fledged PHP hater.
Full-fledged Google/Microsoft lover, full-fledged Apple hater.
Full-fledged Skype lover, full-fledged YM hater.
|
|
|
|
|
Snarky, bitchy and oh so polite - I love have another 5
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
10x. I hope I'm making my point across while repeating myself over and over again. If only they'd listen...
Full-fledged Java/.NET lover, full-fledged PHP hater.
Full-fledged Google/Microsoft lover, full-fledged Apple hater.
Full-fledged Skype lover, full-fledged YM hater.
|
|
|
|
|
Andrei Straut wrote: If only they'd listen. You can try shouting a bit louder, but that just gets you a sore throat.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Chris doesn't like shouting in the Q&A / programming forums
I do feel a really strong urge to do it however
Full-fledged Java/.NET lover, full-fledged PHP hater.
Full-fledged Google/Microsoft lover, full-fledged Apple hater.
Full-fledged Skype lover, full-fledged YM hater.
|
|
|
|
|
You should actually have it in your sig.
|
|
|
|
|
If only you knew how many times a day I think about it...
Full-fledged Java/.NET lover, full-fledged PHP hater.
Full-fledged Google/Microsoft lover, full-fledged Apple hater.
Full-fledged Skype lover, full-fledged YM hater.
|
|
|
|
|
I have table A with col1, col2 & table B with col3, col4.
I would like to write a query like
select a.* from A join B on A.col1=B.col3 and A.col2 like col4 + '%'
Is it possible in SQL 2005?
is there a concat function in SQL 2008 or 2005. I have seen it in 2012.
Pls help me.
Thanks in advance
|
|
|
|
|
Anything wrong with google today?
Have a look here[^].
String concatenation has been around as long as SQL has. But different dialects have different syntax.
Oracle uses '||', Sql Server uses '+', most implementations can use 'concat(string1, string2)' but not SQL Server AFAIK. Could be wrong about that though.
|
|
|
|
|
Jörgen Andersson wrote: Anything wrong with google today?
Same impression here, I'm starting to believe I'm the only person with Google access today
Full-fledged Java/.NET lover, full-fledged PHP hater.
Full-fledged Google/Microsoft lover, full-fledged Apple hater.
Full-fledged Skype lover, full-fledged YM hater.
|
|
|
|
|
Hi,
In MySQL, how can I format a number like this
1000000001
where the first 1 is the weekday and the last one is my LAST_INSERT_ID and I am adding just zeroos to make it always 10 digits?
|
|
|
|
|
How about this:
SELECT (DAYOFWEEK(NOW()) * 1E9) + @@LAST_INSERT_ID
|
|
|
|
|
Hi,
I want to update the column TID with the top most value of TID as long as MID is the same number.
I want to do this (table after update)
PID SID TID MID RID
3 0 0 4 1
3 NULL 0 4 2
3 NULL 0 4 3
3 NULL 0 4 4
3 NULL 0 4 5
3 NULL 0 4 6
3 NULL 0 4 7
3 4 4 8 1
3 NULL 4 8 2
3 NULL 4 8 3
3 NULL 4 8 4
Below is the actual table before update.
PID SID TID MID RID
3 0 0 4 1
3 NULL NULL 4 2
3 NULL NULL 4 3
3 NULL NULL 4 4
3 NULL NULL 4 5
3 NULL NULL 4 6
3 NULL NULL 4 7
3 4 4 8 1
3 NULL NULL 8 2
3 NULL NULL 8 3
3 NULL NULL 8 4
Any suggestion/solutions deeply appreciated.
Thanks
|
|
|
|
|
Assuming your DB is SQL Server, you can try this (just out of mind, not tried though)
UPDATE MyTable A SET A.TID = (SELECT MAX(B.TID) FROM MyTable B WHERE A.MID = B.MID)
|
|
|
|