Click here to Skip to main content
15,906,333 members
Home / Discussions / Database
   

Database

 
GeneralDetermining the ID of an inserted row Pin
Ahmed Hefny27-Jan-05 21:26
Ahmed Hefny27-Jan-05 21:26 
GeneralRe: Determining the ID of an inserted row Pin
Colin Angus Mackay27-Jan-05 22:58
Colin Angus Mackay27-Jan-05 22:58 
Generalsaving and retrieving image data Pin
Rashid_Mehmood27-Jan-05 20:01
Rashid_Mehmood27-Jan-05 20:01 
GeneralRe: saving and retrieving image data Pin
Colin Angus Mackay28-Jan-05 0:39
Colin Angus Mackay28-Jan-05 0:39 
GeneralRe: saving and retrieving image data Pin
Mike Dimmick28-Jan-05 2:38
Mike Dimmick28-Jan-05 2:38 
GeneralRe: saving and retrieving image data Pin
Mr.Cooper9-Feb-05 1:01
Mr.Cooper9-Feb-05 1:01 
Generaldatatable only working occasionally Pin
lxhan27-Jan-05 18:49
lxhan27-Jan-05 18:49 
GeneralRe: datatable only working occasionally Pin
Colin Angus Mackay27-Jan-05 23:08
Colin Angus Mackay27-Jan-05 23:08 
You should tell us what the database is. There may be subtle differences between them.

Your code is most insecure. It is the potential subject of a SQL Injection Attack. You should read this article about how to prevent them: http://www.codeproject.com/useritems/SqlInjectionAttacks.asp[^]

Is your connection open before calling the Fill on the data adapter? If the connection is closed when you call Fill then the data adapter will open the connection, perform the action and then close the connection again. So the Close statement in the finally block is redundant.


Do you want to know more?
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums


GeneralRe: datatable only working occasionally Pin
lxhan1-Feb-05 3:33
lxhan1-Feb-05 3:33 
GeneralQuerying CSV db with Jet and ADO Pin
wilsonian27-Jan-05 12:26
wilsonian27-Jan-05 12:26 
GeneralRe: Querying CSV db with Jet and ADO Pin
Rob Graham31-Jan-05 5:15
Rob Graham31-Jan-05 5:15 
GeneralRe: Querying CSV db with Jet and ADO Pin
wilsonian31-Jan-05 8:50
wilsonian31-Jan-05 8:50 
GeneralRe: Querying CSV db with Jet and ADO Pin
Rob Graham31-Jan-05 11:14
Rob Graham31-Jan-05 11:14 
GeneralRe: Querying CSV db with Jet and ADO Pin
wilsonian31-Jan-05 11:53
wilsonian31-Jan-05 11:53 
GeneralRe: Querying CSV db with Jet and ADO Pin
Rob Graham31-Jan-05 14:44
Rob Graham31-Jan-05 14:44 
GeneralRe: Querying CSV db with Jet and ADO Pin
wilsonian31-Jan-05 16:34
wilsonian31-Jan-05 16:34 
GeneralRe: Querying CSV db with Jet and ADO Pin
Rob Graham1-Feb-05 2:42
Rob Graham1-Feb-05 2:42 
GeneralRe: Querying CSV db with Jet and ADO Pin
wilsonian1-Feb-05 8:52
wilsonian1-Feb-05 8:52 
GeneralSet RowCount issue in query containing function tables Pin
-Dr_X-27-Jan-05 4:52
-Dr_X-27-Jan-05 4:52 
GeneralRe: Set RowCount issue in query containing function tables Pin
-Dr_X-27-Jan-05 5:14
-Dr_X-27-Jan-05 5:14 
Generallock triggers while executing a transaction Pin
mhmoud rawas26-Jan-05 0:28
mhmoud rawas26-Jan-05 0:28 
GeneralRe: lock triggers while executing a transaction Pin
tojamismis27-Jan-05 7:35
tojamismis27-Jan-05 7:35 
GeneralMSDE Setup.Exe and Reinstall Pin
Blake V. Miller25-Jan-05 18:28
Blake V. Miller25-Jan-05 18:28 
QuestionCOMException--Why? Pin
mysorian25-Jan-05 18:02
professionalmysorian25-Jan-05 18:02 
AnswerRe: COMException--Why? Pin
tojamismis27-Jan-05 7:45
tojamismis27-Jan-05 7:45 

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.