Click here to Skip to main content
15,918,596 members
Home / Discussions / Database
   

Database

 
Generalconnect to access db over internet Pin
Hesham Amin28-Feb-03 1:00
Hesham Amin28-Feb-03 1:00 
GeneralRe: connect to access db over internet Pin
andyharman28-Feb-03 4:13
professionalandyharman28-Feb-03 4:13 
GeneralRe: connect to access db over internet Pin
Hesham Amin28-Feb-03 23:55
Hesham Amin28-Feb-03 23:55 
GeneralProcess Info Question Pin
Bugoy27-Feb-03 8:49
Bugoy27-Feb-03 8:49 
GeneralRe: Process Info Question Pin
andyharman27-Feb-03 9:37
professionalandyharman27-Feb-03 9:37 
GeneralRe: Process Info Question Pin
Bugoy27-Feb-03 12:27
Bugoy27-Feb-03 12:27 
Question2 sql statement using 2 command and 2 datareader? Pin
ylaine27-Feb-03 2:51
ylaine27-Feb-03 2:51 
AnswerRe: 2 sql statement using 2 command and 2 datareader? Pin
andyharman27-Feb-03 9:23
professionalandyharman27-Feb-03 9:23 
I couldn't see the point of objReader2 at all. Try closing the DataReader before attempting objComm2.ExecuteNonQuery() because the you can't execute other commands on that connection until you have closed the reader, and remove the objReader2 stuff.

The CloseConnection behaviour is used to close the database connection after you have explicitly closed the reader.

In this particular case you could use the ExecuteScalar method because you are only interested in a single value from the database. This means that you wouldn't have to use a DataReader at all.

The SQL-Select statement will currently have problems if the user-id or password contain quotes. You might want to consider using parameters instead.

A single stored procedure would be a better way. You could do the select and the insert within the same procedure.

Hope this is helpfull.

Regards.
Andy
Generalsingle stored procedure Pin
ylaine28-Feb-03 5:44
ylaine28-Feb-03 5:44 
GeneralRe: single stored procedure Pin
andyharman28-Feb-03 7:22
professionalandyharman28-Feb-03 7:22 
GeneralRe: single stored procedure Pin
ylaine28-Feb-03 22:05
ylaine28-Feb-03 22:05 
GeneralRe: single stored procedure Pin
andyharman1-Mar-03 23:19
professionalandyharman1-Mar-03 23:19 
GeneralRe: single stored procedure Pin
ylaine2-Mar-03 3:56
ylaine2-Mar-03 3:56 
GeneralDatabase ACCESS 97 to linked server SQL 2000 Pin
youssef26-Feb-03 23:23
youssef26-Feb-03 23:23 
GeneralRe: Database ACCESS 97 to linked server SQL 2000 Pin
David Salter27-Feb-03 23:20
David Salter27-Feb-03 23:20 
QuestionTextbox Control databinding, a bug? Pin
DionChen26-Feb-03 5:27
DionChen26-Feb-03 5:27 
GeneralDB access problem!! Pin
Andrea Ferraro26-Feb-03 3:13
Andrea Ferraro26-Feb-03 3:13 
GeneralRe: DB access problem!! Pin
DiWa26-Feb-03 6:21
DiWa26-Feb-03 6:21 
GeneralRe: DB access problem!! Pin
Andrea Ferraro28-Feb-03 3:06
Andrea Ferraro28-Feb-03 3:06 
GeneralADO help needed Pin
odeveloper26-Feb-03 1:09
odeveloper26-Feb-03 1:09 
GeneralRe: ADO help needed Pin
Jon Hulatt26-Feb-03 4:22
Jon Hulatt26-Feb-03 4:22 
Generalsingle access on store procedure Pin
Delz25-Feb-03 21:00
Delz25-Feb-03 21:00 
GeneralRe: single access on store procedure Pin
SimonS25-Feb-03 21:22
SimonS25-Feb-03 21:22 
GeneralRe: single access on store procedure Pin
Antares68626-Feb-03 0:15
Antares68626-Feb-03 0:15 
GeneralAccessing Visual Fox Pro 3.0 Data Pin
sybux200025-Feb-03 11:00
sybux200025-Feb-03 11:00 

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.