Click here to Skip to main content
15,888,351 members
Home / Discussions / Database
   

Database

 
QuestionBLOBS Pin
Elizma2-Nov-08 6:07
Elizma2-Nov-08 6:07 
AnswerRe: BLOBS Pin
Wendelius2-Nov-08 6:21
mentorWendelius2-Nov-08 6:21 
QuestionHow to move data from local database to web server database? Pin
kandalu1-Nov-08 20:38
kandalu1-Nov-08 20:38 
AnswerRe: How to move data from local database to web server database? Pin
Wendelius2-Nov-08 0:01
mentorWendelius2-Nov-08 0:01 
QuestionWhere can I download SQL Server 2000 Books Online (SQL BOL)? Pin
Rameez Raja1-Nov-08 19:36
Rameez Raja1-Nov-08 19:36 
AnswerRe: Where can I download SQL Server 2000 Books Online (SQL BOL)? Pin
Wendelius1-Nov-08 21:44
mentorWendelius1-Nov-08 21:44 
QuestionIs there a better solution to check today's record? Pin
lingerpop1-Nov-08 19:18
lingerpop1-Nov-08 19:18 
AnswerRe: Is there a better solution to check today's record? Pin
Wendelius1-Nov-08 21:52
mentorWendelius1-Nov-08 21:52 
If you have recorded logins to a table, add a column for sign-in time. Then use that column in your query to restrict rows to today's information. Also add an index containing both username (or whatever is the column you use to identify the user) and sign-in date.

Also you could delete older rows once in a while.

Another option is only to record the last login date to the table containing user information (update the row and set last login date to getdate()). When you fetch info about the user, check if the last login date is today or earlier.

The need to optimize rises from a bad design.

My articles[^]

QuestionConversion from varchar data type into datetime in sql server 2000 Pin
Rameez Raja1-Nov-08 19:10
Rameez Raja1-Nov-08 19:10 
AnswerRe: Conversion from varchar data type into datetime in sql server 2000 Pin
Wendelius1-Nov-08 21:32
mentorWendelius1-Nov-08 21:32 
QuestionUsing Stored Procedure or View in the following scenario Pin
ashwanigl1-Nov-08 17:47
ashwanigl1-Nov-08 17:47 
AnswerRe: Using Stored Procedure or View in the following scenario Pin
Wendelius1-Nov-08 22:21
mentorWendelius1-Nov-08 22:21 
GeneralRe: Using Stored Procedure or View in the following scenario Pin
ashwanigl2-Nov-08 1:29
ashwanigl2-Nov-08 1:29 
GeneralRe: Using Stored Procedure or View in the following scenario Pin
Wendelius2-Nov-08 1:31
mentorWendelius2-Nov-08 1:31 
Questionsample insert statment Pin
Zlemox1-Nov-08 15:32
Zlemox1-Nov-08 15:32 
AnswerRe: sample insert statment Pin
Ashfield2-Nov-08 20:03
Ashfield2-Nov-08 20:03 
QuestionIs it possible to convert a data base in a exe file? Pin
r_mohd1-Nov-08 11:50
r_mohd1-Nov-08 11:50 
AnswerRe: Is it possible to convert a data base in a exe file? Pin
Rob Graham1-Nov-08 15:31
Rob Graham1-Nov-08 15:31 
AnswerRe: Is it possible to convert a data base in a exe file? Pin
Wendelius1-Nov-08 22:28
mentorWendelius1-Nov-08 22:28 
QuestionHow to get the last record .. Stored Procedure? Pin
kindman_nb1-Nov-08 5:54
kindman_nb1-Nov-08 5:54 
AnswerRe: How to get the last record .. Stored Procedure? Pin
Blue_Boy1-Nov-08 7:01
Blue_Boy1-Nov-08 7:01 
GeneralRe: How to get the last record .. Stored Procedure? Pin
Rob Graham1-Nov-08 7:07
Rob Graham1-Nov-08 7:07 
AnswerRe: How to get the last record .. Stored Procedure? Pin
Rob Graham1-Nov-08 7:05
Rob Graham1-Nov-08 7:05 
GeneralRe: How to get the last record .. Stored Procedure? Pin
r_mohd1-Nov-08 11:46
r_mohd1-Nov-08 11:46 
QuestionPervasive 9 Pin
Zeyad Jalil1-Nov-08 4:01
professionalZeyad Jalil1-Nov-08 4:01 

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.