Click here to Skip to main content
15,899,124 members
Home / Discussions / Database
   

Database

 
Questiondifference between sql server and ms access on the basis of backward compatibility Pin
Pankaj Garg18-Jun-08 19:19
Pankaj Garg18-Jun-08 19:19 
AnswerRe: difference between sql server and ms access on the basis of backward compatibility Pin
Ashfield18-Jun-08 22:51
Ashfield18-Jun-08 22:51 
QuestionMsSQL to MySQL Pin
jacko87318-Jun-08 6:12
jacko87318-Jun-08 6:12 
AnswerRe: MsSQL to MySQL Pin
Jerry Hammond19-Jun-08 18:31
Jerry Hammond19-Jun-08 18:31 
Questionhow to add database Pin
SSN18-Jun-08 0:40
SSN18-Jun-08 0:40 
AnswerRe: how to add database Pin
Mike Dimmick18-Jun-08 2:17
Mike Dimmick18-Jun-08 2:17 
QuestionCommunication between Sql Server2005 and MS Access2007? Pin
Vicky2Galaxy18-Jun-08 0:13
Vicky2Galaxy18-Jun-08 0:13 
QuestionHandy information for any Windows user who customises Regional Settings Pin
Nigel Mackay17-Jun-08 23:26
Nigel Mackay17-Jun-08 23:26 
I have found a potential problem which may get some people stuck when they have customised their Regional Settings. Too short to submit as an Article. Moderators please do with it what is best.

I live in South Africa. PC set up for English (South Africa).

The problem is, Microsoft says that in South Africa we write our dates as MM/dd/yyyy, when in fact we (ordinary people) use dd/MM/yyyy.

So in Reqional Settings we use Customise and change our Short Date format to dd/MM/yyyy.

Everything works fine if you use datasets to update a table, as the data is already a DateTime. But when you use an INSERT INTO command a problem comes up because the DateTime needs to be placed between single-quotes:

"INSERT INTO (column) VALUES('" + myDate + "')"

In our case, this converts to:
"INSERT INTO (column) VALUES('dd/MM/yyyy')"
But the server is expecting:
"INSERT INTO (column) VALUES('MM/dd/yyyy')" because this is the default short-date format for South Africa.

So the following must be used:
"INSERT INTO (column) VALUES('" + myDate.ToString("MM/dd/yyyy") + "')"
This converts to:
"INSERT INTO (column) VALUES('MM/dd/yyyy')" which is what the server is expecting.

This problem will arise with any Customisations made, including separators. myDate.ToString() must specify the exact format the server is expecting.

Nigel
AnswerRe: Handy information for any Windows user who customises Regional Settings Pin
Giorgi Dalakishvili17-Jun-08 23:45
mentorGiorgi Dalakishvili17-Jun-08 23:45 
AnswerRe: Handy information for any Windows user who customises Regional Settings Pin
Alsvha18-Jun-08 0:50
Alsvha18-Jun-08 0:50 
Questionselect values from a table dyunamically in Stored procedure Pin
Pranav Thakur17-Jun-08 22:06
Pranav Thakur17-Jun-08 22:06 
AnswerRe: select values from a table dyunamically in Stored procedure Pin
dan!sh 17-Jun-08 22:19
professional dan!sh 17-Jun-08 22:19 
AnswerRe: select values from a table dyunamically in Stored procedure Pin
Niraj_Silver26-Jun-08 0:30
Niraj_Silver26-Jun-08 0:30 
Questionhow i set Table name and Column name dynmicalyy in Ms sql sp Pin
r_mohd17-Jun-08 21:42
r_mohd17-Jun-08 21:42 
AnswerRe: how i set Table name and Column name dynmicalyy in Ms sql sp Pin
Marek Grzenkowicz18-Jun-08 0:15
Marek Grzenkowicz18-Jun-08 0:15 
AnswerRe: how i set Table name and Column name dynmicalyy in Ms sql sp Pin
Niraj_Silver26-Jun-08 0:34
Niraj_Silver26-Jun-08 0:34 
QuestionHow to select records between ( 10 to 100) Pin
Logup17-Jun-08 4:26
Logup17-Jun-08 4:26 
AnswerRe: How to select records between ( 10 to 100) Pin
A Wong17-Jun-08 4:30
A Wong17-Jun-08 4:30 
GeneralRe: How to select records between ( 10 to 100) Pin
Logup17-Jun-08 7:56
Logup17-Jun-08 7:56 
AnswerRe: How to select records between ( 10 to 100) Pin
Alsvha17-Jun-08 5:39
Alsvha17-Jun-08 5:39 
QuestionStored Procedure, Commiting Changes Pin
Ian Uy17-Jun-08 3:30
Ian Uy17-Jun-08 3:30 
AnswerRe: Stored Procedure, Commiting Changes Pin
Ashfield17-Jun-08 3:50
Ashfield17-Jun-08 3:50 
GeneralRe: Stored Procedure, Commiting Changes Pin
Ian Uy17-Jun-08 4:34
Ian Uy17-Jun-08 4:34 
Questionasp.net insert data Pin
sonalisharma17-Jun-08 2:35
sonalisharma17-Jun-08 2:35 
AnswerRe: asp.net insert data Pin
Colin Angus Mackay17-Jun-08 3:08
Colin Angus Mackay17-Jun-08 3:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.