Click here to Skip to main content
15,916,030 members
Home / Discussions / Database
   

Database

 
AnswerRe: Traversing Column rows Pin
Mycroft Holmes17-May-09 22:00
professionalMycroft Holmes17-May-09 22:00 
QuestionException handling in mysql stored procedures Pin
Rajeshwary17-May-09 19:15
Rajeshwary17-May-09 19:15 
AnswerRe: Exception handling in mysql stored procedures Pin
Henry Minute20-May-09 1:14
Henry Minute20-May-09 1:14 
Questionnvarchar to datetime conversion plz!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Learner52017-May-09 4:33
Learner52017-May-09 4:33 
AnswerRe: nvarchar to datetime conversion plz!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Manas Bhardwaj17-May-09 7:18
professionalManas Bhardwaj17-May-09 7:18 
AnswerRe: nvarchar to datetime conversion plz!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Blue_Boy17-May-09 10:49
Blue_Boy17-May-09 10:49 
AnswerRe: nvarchar to datetime conversion plz!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Mycroft Holmes17-May-09 12:59
professionalMycroft Holmes17-May-09 12:59 
GeneralRe: nvarchar to datetime conversion plz!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Learner52017-May-09 21:24
Learner52017-May-09 21:24 
thanks holmes for your kind answer

my Problem;
the following code is working perfectly except date. every thing is working perfectly pleas let me know how to add Date into table through following query, and dont worry about other variables these are working perfectly because i have changed them into varchar like this
SELECT @str_Session_Id=CONVERT(nvarchar(10), CONVERT(int, @SessionId))

but i dont want to add date like varchar because i have to compare date with other dates therefore i dont want to convert into varchar.

select @date =(select DATEADD(dd, 1, GETDATE()))

Begin
set @txtSql =
case when (@Std_Count < 3) then 'insert into ProjectRequests values('+ @str_stu_Id+','+ @str_Priority_Id +','+ @str_Project_Id +' , '+ @str_Session_Id +', '+ @date +' , NULL)'


Msg 241, Level 16, State 1, Procedure FUALLY_QUALIFIED_STUDENT_BULK, Line 48
Conversion failed when converting datetime from character string.


any help would be appreciated.
GeneralRe: nvarchar to datetime conversion plz!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
Mycroft Holmes17-May-09 21:40
professionalMycroft Holmes17-May-09 21:40 
QuestionQuestion on ConnectionString Pin
NetQuestions16-May-09 19:17
NetQuestions16-May-09 19:17 
AnswerRe: Question on ConnectionString Pin
Mycroft Holmes16-May-09 20:58
professionalMycroft Holmes16-May-09 20:58 
QuestionProblem - Stored Procedure not found Pin
NetQuestions16-May-09 9:18
NetQuestions16-May-09 9:18 
AnswerRe: Problem - Stored Procedure not found Pin
AlexeiXX316-May-09 9:59
AlexeiXX316-May-09 9:59 
GeneralRe: Problem - Stored Procedure not found [modified] Pin
NetQuestions16-May-09 19:16
NetQuestions16-May-09 19:16 
QuestionTry catch in MYSQL Stored procedures Pin
PeriyasamyRamachandran16-May-09 5:03
PeriyasamyRamachandran16-May-09 5:03 
AnswerRe: Try catch in MYSQL Stored procedures Pin
N a v a n e e t h16-May-09 6:49
N a v a n e e t h16-May-09 6:49 
GeneralRe: Try catch in MYSQL Stored procedures Pin
PeriyasamyRamachandran16-May-09 7:06
PeriyasamyRamachandran16-May-09 7:06 
Questionupdating database Pin
piticcotoc15-May-09 22:38
piticcotoc15-May-09 22:38 
AnswerRe: updating database Pin
AlexeiXX316-May-09 13:09
AlexeiXX316-May-09 13:09 
Questionhow do i acess ms sql database using pocket pc Pin
ChiSmile15-May-09 19:41
ChiSmile15-May-09 19:41 
AnswerRe: how do i acess ms sql database using pocket pc Pin
AlexeiXX315-May-09 21:40
AlexeiXX315-May-09 21:40 
GeneralRe: how do i acess ms sql database using pocket pc Pin
ChiSmile16-May-09 7:35
ChiSmile16-May-09 7:35 
GeneralRe: how do i acess ms sql database using pocket pc Pin
AlexeiXX316-May-09 9:40
AlexeiXX316-May-09 9:40 
AnswerRe: how do i acess ms sql database using pocket pc Pin
AlexeiXX316-May-09 9:44
AlexeiXX316-May-09 9:44 
GeneralRe: how do i acess ms sql database using pocket pc Pin
ChiSmile16-May-09 15:48
ChiSmile16-May-09 15:48 

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.