Click here to Skip to main content
15,923,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Common Cause of error Pin
Sathesh Sakthivel18-Jun-07 17:14
Sathesh Sakthivel18-Jun-07 17:14 
GeneralRe: Common Cause of error Pin
ASPnoob18-Jun-07 17:49
ASPnoob18-Jun-07 17:49 
Questionasp.net and access database Pin
ling_luv18-Jun-07 15:01
ling_luv18-Jun-07 15:01 
AnswerRe: asp.net and access database Pin
Christian Graus18-Jun-07 15:30
protectorChristian Graus18-Jun-07 15:30 
GeneralRe: asp.net and access database Pin
ling_luv18-Jun-07 15:36
ling_luv18-Jun-07 15:36 
GeneralRe: asp.net and access database Pin
Christian Graus18-Jun-07 15:43
protectorChristian Graus18-Jun-07 15:43 
GeneralRe: asp.net and access database Pin
ling_luv18-Jun-07 15:48
ling_luv18-Jun-07 15:48 
GeneralRe: asp.net and access database Pin
Christian Graus18-Jun-07 15:50
protectorChristian Graus18-Jun-07 15:50 
GeneralRe: asp.net and access database Pin
ling_luv18-Jun-07 15:52
ling_luv18-Jun-07 15:52 
GeneralRe: asp.net and access database Pin
Christian Graus18-Jun-07 15:56
protectorChristian Graus18-Jun-07 15:56 
GeneralRe: asp.net and access database Pin
ling_luv18-Jun-07 16:02
ling_luv18-Jun-07 16:02 
GeneralRe: asp.net and access database Pin
Christian Graus18-Jun-07 16:06
protectorChristian Graus18-Jun-07 16:06 
GeneralRe: asp.net and access database Pin
ling_luv18-Jun-07 16:26
ling_luv18-Jun-07 16:26 
GeneralRe: asp.net and access database Pin
Christian Graus18-Jun-07 20:25
protectorChristian Graus18-Jun-07 20:25 
GeneralRe: asp.net and access database Pin
ling_luv18-Jun-07 20:27
ling_luv18-Jun-07 20:27 
GeneralRe: asp.net and access database Pin
ling_luv18-Jun-07 16:50
ling_luv18-Jun-07 16:50 
GeneralRe: asp.net and access database Pin
Christian Graus18-Jun-07 20:26
protectorChristian Graus18-Jun-07 20:26 
Questionpass values Pin
seemamltn18-Jun-07 13:03
seemamltn18-Jun-07 13:03 
I have the following Stored procedure. There is column named
"tcktreceived" in my database and I want to pass all the rows one by
one to the parameter @starttime. I don't know how to do it.

CREATE PROCEDURE [twcsan].[usp_DateDiff]
-- Add the parameters for the stored procedure here
@starttime DateTime


AS
BEGIN
DECLARE @Diff Varchar(15)
DECLARE @Day INT
DECLARE @Hour INT
DECLARE @Minute INT
DECLARE @Start_Date DateTime
DECLARE @End_Date DateTime
DECLARE @itemReceived DateTime
DECLARE @ID INT
DECLARE @message VARCHAR(50)


DECLARE @table TABLE
(
ItemReceived DateTime,
ID INT,
message text,
Differnce VARCHAR(20)


)
SET NOCOUNT ON;
SET @Start_Date = @starttime


SET @End_Date = GETDATE()
SET @Day = DATEDIFF( day, @Start_Date, @End_Date)
SET @Hour = DATEDIFF(hour , @Start_Date, @End_Date)
SET @Minute = DATEDIFF(minute , @Start_Date, @End_Date)
SET @Minute = @Minute-(@HOUR* 60)
SET @Hour = @Hour-(24* @Day)
SET @Diff = CONVERT(Varchar, @Day) +'d ' + CONVERT(Varchar , @Hour) +
'h ' + CONVERT(Varchar , @Minute) +'m'


INSERT INTO @table(ItemReceived, ID, message, Differnce)
select tck.tcktreceived, tck.ticketid,tckmsg.tcktmessage,@Diff
from tbtickets tck inner join tbticketsmessages tckmsg
on tck.ticketid = tckmsg.ticketid


select * from @table


END




seema

AnswerRe: pass values Pin
Christian Graus18-Jun-07 13:10
protectorChristian Graus18-Jun-07 13:10 
AnswerRe: pass values Pin
Tarik Guney18-Jun-07 16:36
Tarik Guney18-Jun-07 16:36 
AnswerRe: pass values Pin
Sathesh Sakthivel18-Jun-07 16:47
Sathesh Sakthivel18-Jun-07 16:47 
QuestionLogin failed for user 'DIGITAL-NB\ASPNET'. Pin
aransiola18-Jun-07 9:43
aransiola18-Jun-07 9:43 
AnswerRe: Login failed for user 'DIGITAL-NB\ASPNET'. Pin
Not Active18-Jun-07 12:33
mentorNot Active18-Jun-07 12:33 
Questiondate time difference Pin
seemamltn18-Jun-07 7:36
seemamltn18-Jun-07 7:36 
AnswerRe: date time difference Pin
Not Active18-Jun-07 7:58
mentorNot Active18-Jun-07 7:58 

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.