Click here to Skip to main content
15,902,198 members
Home / Discussions / C#
   

C#

 
Questiondebugging C# dll Pin
pnpfriend29-Oct-07 12:06
pnpfriend29-Oct-07 12:06 
AnswerRe: debugging C# dll Pin
Malcolm Smart29-Oct-07 22:23
Malcolm Smart29-Oct-07 22:23 
GeneralRe: debugging C# dll Pin
pnpfriend30-Oct-07 6:13
pnpfriend30-Oct-07 6:13 
QuestionLighten a color Pin
Mike Hankey29-Oct-07 12:03
mveMike Hankey29-Oct-07 12:03 
AnswerRe: Lighten a color Pin
Anthony Mushrow29-Oct-07 12:16
professionalAnthony Mushrow29-Oct-07 12:16 
GeneralRe: Lighten a color Pin
Mike Hankey29-Oct-07 13:30
mveMike Hankey29-Oct-07 13:30 
QuestionCustomized date formating Pin
Glen Harvy29-Oct-07 11:33
Glen Harvy29-Oct-07 11:33 
AnswerRe: Customized date formating Pin
Colin Angus Mackay29-Oct-07 12:53
Colin Angus Mackay29-Oct-07 12:53 
Glen Harvy wrote:
I have always used the following coding when formatting dates for use with SQL:

bookingMadeDateTime.ToString("yyyy-MM-dd hh:mm:ss tt") <-- or very similar

however I have now been advised by a prospective user that they are using the following formats and the sql insert is failing


Why would you be formatting dates for SQL Statements. Surely you would be passing this as a parameter? If you didn't use parameters your code would be highly susceptable to SQL Injection attacks, which would not be good.

Please read SQL Injection Attacks and Tips on How to Prevent Them[^] to secure your application. Incidentally it will also solve your current date formatting problem.


Upcoming FREE developer events:
* Glasgow: SQL Server Managed Objects AND Reporting Services ...

My website

GeneralRe: Customized date formating Pin
Glen Harvy29-Oct-07 15:32
Glen Harvy29-Oct-07 15:32 
GeneralRe: Customized date formating Pin
Colin Angus Mackay29-Oct-07 22:37
Colin Angus Mackay29-Oct-07 22:37 
GeneralRe: Customized date formating Pin
Glen Harvy30-Oct-07 1:31
Glen Harvy30-Oct-07 1:31 
GeneralRe: Customized date formating Pin
Glen Harvy29-Oct-07 16:56
Glen Harvy29-Oct-07 16:56 
GeneralRe: Customized date formating Pin
Colin Angus Mackay29-Oct-07 22:43
Colin Angus Mackay29-Oct-07 22:43 
GeneralRe: Customized date formating Pin
Glen Harvy30-Oct-07 1:33
Glen Harvy30-Oct-07 1:33 
AnswerRe: Customized date formating Pin
PIEBALDconsult29-Oct-07 14:32
mvePIEBALDconsult29-Oct-07 14:32 
QuestionQuestion On Multithreading Lock Pin
cateyes9929-Oct-07 11:25
cateyes9929-Oct-07 11:25 
AnswerRe: Question On Multithreading Lock Pin
Daniel Grunwald29-Oct-07 11:53
Daniel Grunwald29-Oct-07 11:53 
GeneralRe: Question On Multithreading Lock Pin
cateyes9929-Oct-07 15:19
cateyes9929-Oct-07 15:19 
QuestionCast from string/text to int Pin
Manfr3d29-Oct-07 10:58
Manfr3d29-Oct-07 10:58 
AnswerRe: Cast from string/text to int Pin
DavidNohejl29-Oct-07 11:06
DavidNohejl29-Oct-07 11:06 
AnswerRe: Cast from string/text to int Pin
snorkie29-Oct-07 11:20
professionalsnorkie29-Oct-07 11:20 
AnswerRe: Cast from string/text to int [modified] Pin
Spiff Dog29-Oct-07 13:56
Spiff Dog29-Oct-07 13:56 
QuestionC# Build configuration in C# VS 2005 [modified] Pin
Rachel88b29-Oct-07 8:48
Rachel88b29-Oct-07 8:48 
AnswerRe: C# Build configuration in C# VS 2008 Pin
Dave Kreskowiak29-Oct-07 11:17
mveDave Kreskowiak29-Oct-07 11:17 
GeneralRe: C# Build configuration in C# VS 2005 [modified] Pin
Rachel88b29-Oct-07 22:33
Rachel88b29-Oct-07 22:33 

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.