Click here to Skip to main content
15,887,135 members
Home / Discussions / Database
   

Database

 
GeneralRe: Cannot connect to SQL Server using Visual Studio .NET and Query Analyzer Pin
jomargon10-Dec-04 14:03
jomargon10-Dec-04 14:03 
GeneralCalling sp_helptext from ASPNET Pin
Hans Ruck10-Dec-04 5:02
Hans Ruck10-Dec-04 5:02 
GeneralRe: Calling sp_helptext from ASPNET Pin
Colin Angus Mackay10-Dec-04 5:36
Colin Angus Mackay10-Dec-04 5:36 
GeneralRe: Calling sp_helptext from ASPNET Pin
Hans Ruck10-Dec-04 6:18
Hans Ruck10-Dec-04 6:18 
GeneralRe: Calling sp_helptext from ASPNET Pin
tojamismis10-Dec-04 11:28
tojamismis10-Dec-04 11:28 
GeneralRe: Calling sp_helptext from ASPNET Pin
Edbert P12-Dec-04 13:34
Edbert P12-Dec-04 13:34 
GeneralGenerate generalized insert, delete and update statements Pin
CNU9-Dec-04 16:10
CNU9-Dec-04 16:10 
GeneralRe: Generate generalized insert, delete and update statements Pin
Colin Angus Mackay10-Dec-04 5:59
Colin Angus Mackay10-Dec-04 5:59 
NOTE: You don't specify what your backend database is, so I will assume SQL Server.

Cnu wrote:
To accomplish this, first of all how can we generate an insert/update/delete sql statement if the table name is given ??

The SqlDataAdapter can do this. By supplying a SELECT statement it can figure out the INSERT/DELETE/UPDATE for the table. However, it does not work with joins.

Anyway, I am not sure that this is the best way to proceed. A better way would be to create appropriate stored procedures and have your DAL (Data Access Layer) call the stored procedures. This adds a level of security and performance is improved over calling ad hoc SQL queries against a database.


Do you want to know more?
WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums


QuestionServer -- keep connection open? Or open/close as needed? Pin
Judah Gabriel Himango9-Dec-04 6:32
sponsorJudah Gabriel Himango9-Dec-04 6:32 
AnswerRe: Server -- keep connection open? Or open/close as needed? Pin
Alex Korchemniy9-Dec-04 10:55
Alex Korchemniy9-Dec-04 10:55 
GeneralRe: Server -- keep connection open? Or open/close as needed? Pin
Judah Gabriel Himango9-Dec-04 11:45
sponsorJudah Gabriel Himango9-Dec-04 11:45 
GeneralRe: Server -- keep connection open? Or open/close as needed? Pin
Mike Dimmick10-Dec-04 2:28
Mike Dimmick10-Dec-04 2:28 
GeneralRe: Server -- keep connection open? Or open/close as needed? Pin
Judah Gabriel Himango10-Dec-04 4:29
sponsorJudah Gabriel Himango10-Dec-04 4:29 
AnswerRe: Server -- keep connection open? Or open/close as needed? Pin
Dave Kreskowiak10-Dec-04 9:56
mveDave Kreskowiak10-Dec-04 9:56 
GeneralRe: Server -- keep connection open? Or open/close as needed? Pin
Judah Gabriel Himango10-Dec-04 10:00
sponsorJudah Gabriel Himango10-Dec-04 10:00 
GeneralStored Procedure using Disconnected Recordset Pin
web_app_developer9-Dec-04 4:00
web_app_developer9-Dec-04 4:00 
GeneralRe: Stored Procedure using Disconnected Recordset Pin
tojamismis10-Dec-04 12:42
tojamismis10-Dec-04 12:42 
GeneralSQL Server 2000 / Access Pin
| Muhammad Waqas Butt |9-Dec-04 1:08
professional| Muhammad Waqas Butt |9-Dec-04 1:08 
GeneralInsert photos and files Pin
CNU8-Dec-04 14:46
CNU8-Dec-04 14:46 
GeneralRe: Insert photos and files Pin
Alex Korchemniy8-Dec-04 16:55
Alex Korchemniy8-Dec-04 16:55 
GeneralRe: Insert photos and files Pin
CNU8-Dec-04 17:39
CNU8-Dec-04 17:39 
GeneralRe: Insert photos and files Pin
Alex Korchemniy9-Dec-04 10:53
Alex Korchemniy9-Dec-04 10:53 
GeneralRe: Insert photos and files Pin
Mekong River9-Dec-04 4:18
Mekong River9-Dec-04 4:18 
GeneralSQL query Pin
Paps28-Dec-04 3:49
Paps28-Dec-04 3:49 
GeneralRe: SQL query Pin
Yulianto.8-Dec-04 15:58
Yulianto.8-Dec-04 15:58 

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.