Click here to Skip to main content
15,890,399 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL Server in US, client in asia - how to? Pin
oskardiazdeleon3-Oct-05 17:47
oskardiazdeleon3-Oct-05 17:47 
QuestionMTXOCI Access Violation Pin
grinder27-Sep-05 1:37
grinder27-Sep-05 1:37 
QuestionHow to send files stored in Sql server database as an attachment with Email?? Pin
Nilesh Gambhava26-Sep-05 21:45
Nilesh Gambhava26-Sep-05 21:45 
QuestionSQL JOB (DTS PACKAGE) NOT RUNNING. Pin
Bigfootguy26-Sep-05 14:56
Bigfootguy26-Sep-05 14:56 
AnswerRe: SQL JOB (DTS PACKAGE) NOT RUNNING. Pin
Bigfootguy27-Sep-05 21:26
Bigfootguy27-Sep-05 21:26 
QuestionINSERT vs SELECT Pin
shoaibnawaz26-Sep-05 11:37
shoaibnawaz26-Sep-05 11:37 
AnswerRe: INSERT vs SELECT Pin
miah alom26-Sep-05 11:55
miah alom26-Sep-05 11:55 
AnswerRe: INSERT vs SELECT Pin
Colin Angus Mackay26-Sep-05 12:11
Colin Angus Mackay26-Sep-05 12:11 
shoaibnawaz wrote:
Is there any way to execute both quries cerrtainly after one another or combine quries?

Wrapping the queries in a transaction would be the normal way to do it. I also recommend using a stored procedure - you can pass all the data to the Stored Procedure and it can wrap the inserts into a transaction for you.

Also, I most certainly do NOT think that the way you are creating queries (by concatenating strings together) is very wise. It presents a large gaping security hole in the side of your application that is just asking to be exploited. You should read SQL Injection Attacks and Some Tips on How to Prevent Them[^]


My: Blog | Photos

"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious


QuestionRe: INSERT vs SELECT Pin
shoaibnawaz26-Sep-05 19:23
shoaibnawaz26-Sep-05 19:23 
AnswerRe: INSERT vs SELECT Pin
Colin Angus Mackay27-Sep-05 9:36
Colin Angus Mackay27-Sep-05 9:36 
AnswerRe: INSERT vs SELECT Pin
Edbert P27-Sep-05 17:54
Edbert P27-Sep-05 17:54 
QuestionSQL Problem Pin
ankur61126-Sep-05 8:13
ankur61126-Sep-05 8:13 
AnswerRe: SQL Problem Pin
Colin Angus Mackay26-Sep-05 8:16
Colin Angus Mackay26-Sep-05 8:16 
AnswerRe: SQL Problem Pin
miah alom26-Sep-05 9:52
miah alom26-Sep-05 9:52 
QuestionRefresh table in Visual Studio .NET IDE Pin
Kevin McFarlane26-Sep-05 7:51
Kevin McFarlane26-Sep-05 7:51 
QuestionAbout SQL Server 2005 Pin
Ahsan Askare26-Sep-05 1:47
Ahsan Askare26-Sep-05 1:47 
QuestionFull Text Query Pin
Its due when25-Sep-05 22:33
Its due when25-Sep-05 22:33 
QuestionORACLE DATABASE Pin
utsav_verma25-Sep-05 19:41
utsav_verma25-Sep-05 19:41 
QuestionPlease give me a way for display pictures which store in DB Access 2003 by "OLE object"? Pin
Anonymous25-Sep-05 18:47
Anonymous25-Sep-05 18:47 
Generalresizing images from database Pin
Mangala S25-Sep-05 18:30
Mangala S25-Sep-05 18:30 
GeneralRe: resizing images from database Pin
sreejith ss nair25-Sep-05 18:48
sreejith ss nair25-Sep-05 18:48 
QuestionWhy update statement in a Stored Procedure is Slow ? Pin
webC#25-Sep-05 18:22
webC#25-Sep-05 18:22 
AnswerRe: Why update statement in a Stored Procedure is Slow ? Pin
sreejith ss nair25-Sep-05 18:42
sreejith ss nair25-Sep-05 18:42 
QuestionConnect two Access Databases Pin
vtalau25-Sep-05 15:21
vtalau25-Sep-05 15:21 
QuestionDataSet fill problems Pin
Dan Neilsen25-Sep-05 12:08
Dan Neilsen25-Sep-05 12: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.