Click here to Skip to main content
15,919,479 members
Home / Discussions / Database
   

Database

 
GeneralRe: DataSet Pin
Frank Kerrigan2-Aug-05 21:55
Frank Kerrigan2-Aug-05 21:55 
GeneralUPDATE cmd ASP.net Access 2k doesn't work Pin
xsoftdev21-Aug-05 9:17
xsoftdev21-Aug-05 9:17 
GeneralRe: UPDATE cmd ASP.net Access 2k doesn't work Pin
Frank Kerrigan3-Aug-05 1:21
Frank Kerrigan3-Aug-05 1:21 
GeneralRe: UPDATE cmd ASP.net Access 2k doesn't work Pin
Rob Graham4-Aug-05 5:08
Rob Graham4-Aug-05 5:08 
GeneralSQL Audit trail Pin
Alomgir Miah1-Aug-05 9:09
Alomgir Miah1-Aug-05 9:09 
GeneralRe: SQL Audit trail Pin
Colin Angus Mackay2-Aug-05 4:15
Colin Angus Mackay2-Aug-05 4:15 
GeneralRe: SQL Audit trail Pin
Alomgir Miah2-Aug-05 7:36
Alomgir Miah2-Aug-05 7:36 
GeneralRe: SQL Audit trail Pin
Colin Angus Mackay2-Aug-05 8:01
Colin Angus Mackay2-Aug-05 8:01 
Having a LastUpdatedBy column in the table(s) would be a possible solution as the trigger can get that information.

But, why are you passing an insert statement into the stored procedure. You'd need to do something like EXEC(@insertStatement) which kind of blows away the purpose of a stored procedure if that is all you are doing. It is much better, and more secure, if you create a stored procedures (plural) for your data access and modification needs so that the each stored procedure can do sanity checking on the data and also it means that only the actions that the stored procedures can perform are available to outside applications (assuming you revoke access to the tables and views directly for the database user that is being used by the application). The stored procedures can also update the relevant audit tables for you. That would mean that you no longer need to have a LastUpdatedBy column in your tables.

Assuming those above you are serious about security - but their one user for the whole database seems inherently insecure, they should have set up roles so that each person can only access the data they need. I know the application is probably stopping that kind of access, but there could be a weakness in the application and it is better to have multiple levels of security. That is why if you look at ancient castles that still exist today then you'll see they have many layers of protection. If an invader breaks down one wall or gate then the occupants can retreat and fight from the next gate.


My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More


GeneralRe: SQL Audit trail Pin
Alomgir Miah2-Aug-05 8:22
Alomgir Miah2-Aug-05 8:22 
GeneralDataRow Class and Insert command Pin
dwark1061-Aug-05 7:21
dwark1061-Aug-05 7:21 
GeneralComparing times (hh:mm:ss) in SQL Server Pin
Member 21613301-Aug-05 2:04
Member 21613301-Aug-05 2:04 
GeneralRe: Comparing times (hh:mm:ss) in SQL Server Pin
WoutL1-Aug-05 2:36
WoutL1-Aug-05 2:36 
GeneralRe: Comparing times (hh:mm:ss) in SQL Server Pin
andyharman1-Aug-05 5:25
professionalandyharman1-Aug-05 5:25 
GeneralRe: Comparing times (hh:mm:ss) in SQL Server Pin
Frank Kerrigan2-Aug-05 6:11
Frank Kerrigan2-Aug-05 6:11 
GeneralDataRow vs Business object Pin
WDI31-Jul-05 22:21
WDI31-Jul-05 22:21 
GeneralRe: DataRow vs Business object Pin
Colin Angus Mackay1-Aug-05 23:50
Colin Angus Mackay1-Aug-05 23:50 
GeneralRe: DataRow vs Business object Pin
WDI2-Aug-05 4:09
WDI2-Aug-05 4:09 
GeneralRe: DataRow vs Business object Pin
Colin Angus Mackay2-Aug-05 4:12
Colin Angus Mackay2-Aug-05 4:12 
GeneralRe: DataRow vs Business object Pin
Mohamad Al Husseiny2-Aug-05 16:16
Mohamad Al Husseiny2-Aug-05 16:16 
GeneralCorresponding .cs file is not added when I add a Crytal Report file in Solution Explorer VS.Net2003 Pin
Member 123075730-Jul-05 23:53
Member 123075730-Jul-05 23:53 
Questionhow to store document into sql Server from ASP.Net Pin
kpsetty30-Jul-05 20:20
kpsetty30-Jul-05 20:20 
GeneralComparing Database Snapshots Pin
Kathy Banks30-Jul-05 11:07
Kathy Banks30-Jul-05 11:07 
GeneralRe: Comparing Database Snapshots Pin
AJ Russ30-Jul-05 11:13
AJ Russ30-Jul-05 11:13 
GeneralLinked Server with DataAdapter Pin
ammarmujeeb30-Jul-05 4:08
ammarmujeeb30-Jul-05 4:08 
GeneralRe: Linked Server with DataAdapter Pin
Frank Kerrigan2-Aug-05 5:47
Frank Kerrigan2-Aug-05 5:47 

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.