Click here to Skip to main content
15,904,823 members
Home / Discussions / Database
   

Database

 
GeneralRe: Debugging in Sql Server 2005 Pin
coolestCoder29-Dec-06 3:44
coolestCoder29-Dec-06 3:44 
GeneralRe: Debugging in Sql Server 2005 Pin
VK-Cadec29-Dec-06 3:55
VK-Cadec29-Dec-06 3:55 
QuestionLock Unlock Table Pin
VK-Cadec29-Dec-06 2:57
VK-Cadec29-Dec-06 2:57 
AnswerRe: Lock Unlock Table Pin
Colin Angus Mackay29-Dec-06 4:24
Colin Angus Mackay29-Dec-06 4:24 
Questionoracle ODBC Driver Connect window appears frequently Pin
bprashant29-Dec-06 0:02
bprashant29-Dec-06 0:02 
QuestionQuery SqlServer2003 stored procedure Pin
vivek_r28-Dec-06 19:29
vivek_r28-Dec-06 19:29 
AnswerRe: Query SqlServer2003 stored procedure Pin
_AK_28-Dec-06 20:40
_AK_28-Dec-06 20:40 
AnswerRe: Query SqlServer2003 stored procedure Pin
Colin Angus Mackay29-Dec-06 0:27
Colin Angus Mackay29-Dec-06 0:27 
vivek_r wrote:
I am using SqlServer2003 stored procedure


I very much doubt that.


vivek_r wrote:
I am working on a forgot password module in which i have to send the mail having password to the user


Personally, I think that is a bad idea. You should never store the password in a form where it can be sent via email. It is better to store the password as a salted hash which means that it can never be retrieved. Then, if the user forgets the password, it has to be regenerated.


vivek_r wrote:
if the IsApproved and IsVisble fields are set to 0 by admin then the password would not be sent to the user and if IsApproved is 0 and IsVisible is 1 then do not send mail and if IsApproved is 1 and IsVisible is 0 then send mail.


SELECT columns
WHERE Email = @email
AND IsApproved = 1

The logic is very simple. You have stated that if IsApproved is 0 then do not send the email, and IsVisible is unimportant (reread what you wrote if you think that is an incorrect interpretation)
IsVisible IsApproved Send Email
0         0          No
0         1          Yes
1         0          No
1         1          Doesn't say: likely yes




Upcoming Scottish Developers events:
* Glasgow: Tell us what you want to see in 2007


My: Website | Blog | Photos

GeneralRe: Query SqlServer2003 stored procedure Pin
vivek_r29-Dec-06 0:33
vivek_r29-Dec-06 0:33 
QuestionHow can I take the backup of SQL server database by code Pin
indian14328-Dec-06 19:08
indian14328-Dec-06 19:08 
AnswerRe: How can I take the backup of SQL server database by code Pin
Colin Angus Mackay29-Dec-06 0:30
Colin Angus Mackay29-Dec-06 0:30 
Questionfind database size sql server 6.5 Pin
manish1980kumar28-Dec-06 17:26
manish1980kumar28-Dec-06 17:26 
QuestionData Set object or XML file Pin
danaliasdan28-Dec-06 11:39
danaliasdan28-Dec-06 11:39 
QuestionList of Servers Pin
_mubashir27-Dec-06 7:41
_mubashir27-Dec-06 7:41 
AnswerRe: List of Servers Pin
Laubi28-Dec-06 0:57
Laubi28-Dec-06 0:57 
GeneralRe: List of Servers Pin
_mubashir28-Dec-06 4:27
_mubashir28-Dec-06 4:27 
GeneralRe: List of Servers Pin
Laubi28-Dec-06 4:34
Laubi28-Dec-06 4:34 
GeneralRe: List of Servers Pin
_mubashir28-Dec-06 5:37
_mubashir28-Dec-06 5:37 
AnswerRe: List of Servers Pin
Michael Potter28-Dec-06 9:33
Michael Potter28-Dec-06 9:33 
QuestionTransaction Query Pin
shaikshavali27-Dec-06 1:12
shaikshavali27-Dec-06 1:12 
AnswerRe: Transaction Query Pin
Colin Angus Mackay27-Dec-06 1:26
Colin Angus Mackay27-Dec-06 1:26 
GeneralRe: Transaction Query [modified] Pin
shaikshavali27-Dec-06 5:24
shaikshavali27-Dec-06 5:24 
QuestionLocking a table in sqlserver 2000 Pin
Uma Kameswari26-Dec-06 21:35
Uma Kameswari26-Dec-06 21:35 
AnswerRe: Locking a table in sqlserver 2000 Pin
Colin Angus Mackay27-Dec-06 0:20
Colin Angus Mackay27-Dec-06 0:20 
Questiontext color of a field Pin
248912826-Dec-06 20:13
248912826-Dec-06 20:13 

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.