Click here to Skip to main content
15,891,253 members
Home / Discussions / Database
   

Database

 
AnswerRe: Difference between Delete and Truncate? Pin
John-ph23-Sep-07 21:18
John-ph23-Sep-07 21:18 
GeneralRe: Difference between Delete and Truncate? Pin
Pete O'Hanlon23-Sep-07 22:30
mvePete O'Hanlon23-Sep-07 22:30 
GeneralRe: Difference between Delete and Truncate? Pin
John-ph23-Sep-07 23:11
John-ph23-Sep-07 23:11 
GeneralRe: Difference between Delete and Truncate? Pin
Pete O'Hanlon23-Sep-07 23:29
mvePete O'Hanlon23-Sep-07 23:29 
GeneralRe: Difference between Delete and Truncate? Pin
kubben24-Sep-07 8:32
kubben24-Sep-07 8:32 
GeneralRe: Difference between Delete and Truncate? Pin
kubben24-Sep-07 8:35
kubben24-Sep-07 8:35 
GeneralRe: Difference between Delete and Truncate? Pin
ganeshMohan24-Sep-07 19:19
ganeshMohan24-Sep-07 19:19 
AnswerRe: Difference between Delete and Truncate? Pin
Mike Dimmick24-Sep-07 4:09
Mike Dimmick24-Sep-07 4:09 
One other difference is that the user doing the TRUNCATE must have greater permissions than doing a DELETE. DELETE permissions can be granted to a user or role on a per-table basis; on SQL Server 2000, TRUNCATE permissions are only granted to the owner of the table, members of the sysadmin server role, and members of the db_owner or db_ddladmin fixed server roles.

SQL Server 2005's documentation is a little unclear, it says that the user must have ALTER permissions on the table but then repeats the sentence from SQL Server 2000 Books Online.

Obviously if you're connecting to SQL Server using sa or a trusted connection (Windows authentication) using an administrator account, you have those permissions. However, this is not a good practice as those accounts have full control over the entire database server, and as such, a mistake in your application logic could lead to accidental, or even deliberate, damage. In my view, you should firewall what an application can do by setting up less-privileged server logins and database users.


DoEvents: Generating unexpected recursion since 1991

AnswerRe: Difference between Delete and Truncate? Pin
Sathesh Sakthivel24-Sep-07 21:38
Sathesh Sakthivel24-Sep-07 21:38 
QuestionSQL Tuning Pin
Bad Programmer23-Sep-07 18:50
Bad Programmer23-Sep-07 18:50 
AnswerRe: SQL Tuning Pin
John-ph23-Sep-07 22:14
John-ph23-Sep-07 22:14 
QuestionRead Excel Sheet by oledb Pin
Rami Said Abd Alhalim23-Sep-07 2:16
Rami Said Abd Alhalim23-Sep-07 2:16 
AnswerRe: Read Excel Sheet by oledb Pin
Paul Conrad23-Sep-07 6:48
professionalPaul Conrad23-Sep-07 6:48 
GeneralRe: Read Excel Sheet by oledb Pin
Rami Said Abd Alhalim23-Sep-07 20:43
Rami Said Abd Alhalim23-Sep-07 20:43 
QuestionPassing data from stored procedure to windows applicaton Pin
Shajeel23-Sep-07 1:01
Shajeel23-Sep-07 1:01 
AnswerRe: Passing data from stored procedure to windows applicaton Pin
Mike Dimmick24-Sep-07 4:40
Mike Dimmick24-Sep-07 4:40 
GeneralRe: Passing data from stored procedure to windows applicaton Pin
Shajeel24-Sep-07 17:53
Shajeel24-Sep-07 17:53 
Questiondo i have to create a certificate if i need to encript the connection string Pin
prasadbuddhika23-Sep-07 0:37
prasadbuddhika23-Sep-07 0:37 
Questionhow to get protection Pin
ahmed eldeghedy22-Sep-07 10:05
professionalahmed eldeghedy22-Sep-07 10:05 
AnswerRe: how to get protection Pin
Colin Angus Mackay22-Sep-07 13:58
Colin Angus Mackay22-Sep-07 13:58 
GeneralRe: how to get protection Pin
Paul Conrad23-Sep-07 6:50
professionalPaul Conrad23-Sep-07 6:50 
AnswerRe: how to get protection Pin
Colin Angus Mackay25-Sep-07 9:37
Colin Angus Mackay25-Sep-07 9:37 
QuestionNeed ahelp about deletion of records Pin
Vjys22-Sep-07 1:00
Vjys22-Sep-07 1:00 
AnswerRe: Need ahelp about deletion of records Pin
Paul Conrad22-Sep-07 5:33
professionalPaul Conrad22-Sep-07 5:33 
Questiontable locking in sql2000 Pin
Rasal doss Solomon21-Sep-07 23:50
Rasal doss Solomon21-Sep-07 23:50 

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.