Thankyou, now I am not getting that error.
Now my problem is I am having a column in the database which takes hours like 1, 2,3 integer values.
I have written a stored procedure like this
CREATE PROCEDURE [dbo].[SendEmail]
As
BEGIN
SET NOCOUNT ON;
Select...
Thanks, I could get the message now. Now How do I show the Details grid when there are zero records in the database
and Insert a new record into the database.
I am not able to see the detailsView on the page , when there are no records in the database.
Can you please help me..
Hello,
If there are no records in the database then the Gridview does not show up in the asp page.
Can you help me in giving code atleast to put some message on the page if the gridview does not have any records in the database.
Thanks in advance
Hello,
I am having a detailsView, On which I want to put some validation on each of the fields,
Now I am facing two problems,
1. When I type more than one words in the fields then in the output i see that each word is in a single line and the size of that field is going on increasing,
HOW...
I have added these lines in the above stored procedure .
EXEC Issues.dbo.xp_sendmail
@recipients=Alias,
@message=N'Reminder !!! This issue should be closed with in 30 minutes.' ;
I am getting this error,
Cannot add rows to sysdepends for the current object because it depends on the...
Hello,
I am having a stored procedure which is like this below,
How can I send an email from this stored procedure
Can you please help me with the code ...
Thanks in advance...
CREATE PROCEDURE [dbo].[SendEmail]
As
BEGIN
select Alias,ExpireAt,CreatedAt,(completetime*60 - 30)
From...
Thanks for your reply, Can you please help me with the code , how to call the stored procedure on the page_load and bind the data to the datagrid with the selected records.
Can you please help me with code, thanks in advance.
I have created a stored procedure to update the status fied like this
Declare
@expireat datetime,
@createat datetime,
@status varchar(10)
Select expireat
From Issues
Where expireat < getdate()
Update Issues Set status = 'Closed'
Where expireat < getdate()...
Thanks for the reply, I got your point but @status would be changed only if the storedprocedure will be called.
I want the @status to be changed automatically once the @createat > @expireat .
I have a datagrid to display all the records with status = open only. Can I write a stored proc on...
CREATE PROCEDURE [dbo].[CalculateIssueExpiryTime]
-- Add the parameters for the stored procedure here
@alias nchar(10),
@title ntext,
@description ntext,
@completetime int
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements...
Hello,
I have written a stored procedure where I have set the status = open, this stored procedure runs on click of the insert button , it inserts the record taking all the fields entered from the detailsview.
in the data base i have currentdate that is the systemdate and datewhich is 2...
Actually I was not very clear,
I am having the following fields in my database
title varchar(50)
desc varchar(50)
createdtime datetime
expiredtime datetime
addminutes int
The user enters only title, desc and addminutes from the DetailsView (ASP>NET 2.0)and click on the insert button,
now i...
Hello,
I am having a detailsview , which is accessing data from the database, there is a field which should show the system date in it, but I am not able to get that, Can you please help me ..
Thanks in advance.
Hello,
I am having a detailsview in which I am getting the data from the database. Now in one of the columns data I have to check if the value entered should not be greater than 6 and less than 1, that is range is 1 to 6.
How can I do that, How can I access that column to do furthur checking...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.