Viewing 15 posts - 301 through 315 (of 330 total)
Hello friends Thanks for your valuable suggestion i got my solutions
here it is You just copy this and Run you will find my Requirement :
DECLARE @FromTime VARCHAR(20), @ToTime...
December 2, 2009 at 3:57 am
Hi
I have Attached my Requirement
In Q1 (File Name) The O/P is True it is correct because 12:01:00 to 12:59:00 lies between the Temp table Range of 11:31:00 to...
December 2, 2009 at 2:08 am
Go to Modify Table
Go to Properties
Go to Table Designer
Go to Regular data space specification Go to file group or Part Choose the File groups which you...
December 2, 2009 at 12:25 am
parthi-1705 (12/1/2009)
DECLARE @TEMP TABLE (RID INT IDENTITY,FTIME datetime,TTIME datetime)
INSERT INTO @TEMP
SELECT '2009-12-01 10:00','2009-12-01 11:30'
UNION ALL
SELECT '2009-12-01 11:31','2009-12-01 13:00'
UNION ALL
SELECT '2009-12-01 14:00','2009-12-01 15:00'
UNION ALL
SELECT '2009-12-01...
December 1, 2009 at 11:04 pm
DECLARE @FromTime VARCHAR(20), @ToTime VARCHAR(20)
DECLARE @TEMP TABLE (RID INT IDENTITY,FTIME datetime,TTIME datetime)
INSERT INTO @TEMP
SELECT '2009-12-01 10:00','2009-12-01 11:30'
UNION ALL
SELECT '2009-12-01 11:31','2009-12-01 13:00'
UNION ALL
SELECT '2009-12-01 14:00','2009-12-01 15:00'
UNION ALL
SELECT '2009-12-01 15:01','2009-12-01...
December 1, 2009 at 9:56 pm
Hi this is what the Input i too get from the table i my self convert it and try by using Varchar.But yours always shows FALSE .Not able to get...
December 1, 2009 at 5:29 am
When ever You post on Development You better post with example so that we can get the idea ,so that you might get the result sooner
November 30, 2009 at 11:16 pm
I think this is thing you are looking for as per your Requirement
DECLARE @STARTDATE DATETIME
DECLARE @ENDDATE DATETIME
DECLARE @PLANNED SMALLINT
SET @STARTDATE ='12/01/2009'
SET @PLANNED=10
SELECT @ENDDATE=DATEADD(dy,@PLANNED,@STARTDATE)
SELECT CONVERT(VARCHAR,@ENDDATE,101)
November 30, 2009 at 10:19 pm
Hi
You are asking for SQL or for .Net ,If you are asking for SQL then Give me any Example related to that.
November 30, 2009 at 2:54 am
Hi Gail thanks
how to get this
Select 'Hi I 'll be there @6'O clock '
November 30, 2009 at 12:37 am
Hi
I little bit confused with that one.My thing is whether Pages are there in Transaction Log
(.LDF).Pages are will be there are not.After that i get to...
November 29, 2009 at 11:34 pm
Hi try This
DECLARE @Value VARCHAR(50)
select @Value=abc from test_abc WHERE LoginName=@LOGIN_NAME
IF @Value='Inv'
BEGIN
Select
'Active' AS DISPLAY,
'0' AS VALUE
Union
Select
'Archived' AS DISPLAY,
'1' AS VALUE
END
ELSE
BEGIN
Select
'Active' AS DISPLAY,
'0' AS VALUE
Union
Select
'Archived' AS DISPLAY,
'1' AS...
November 29, 2009 at 11:07 pm
Hi Moorthy
I just done this for dynamic one.
If u know how many types you have then no problem you can use case but if you dont know the types i...
November 29, 2009 at 10:51 pm
Try This.....
CREATE TABLE #TEMP (
Col1 int not null,
Type int not null
)
GO
INSERT #TEMP
SELECT 1,1
UNION
SELECT 2,1
UNION
SELECT 3,2
UNION
SELECT 4,2
UNION
SELECT 5,2
DECLARE @TotCnt INT
Select @TotCnt=COUNT(*) from #TEMP
Select Count(*) Type,CONVERT(DECIMAL(20,2),Count(*)/5.0*100) as...
November 27, 2009 at 4:17 am
Try this....
CREATE TABLE #TEMP (Rid int identity , NAME VARCHAR(1000))
INSERT INTO #TEMP
exec SP_MSforeachDB 'USE ? Select TABLE_CATALOG+''..''+TABLE_NAME From Information_schema.Tables'
SET NOCOUNT ON
DECLARE @Cnt INT ,@I INT ,@Name VARCHAR(1000)
SET @I=1
SELECT @Cnt=Count(*)...
November 27, 2009 at 12:52 am
Viewing 15 posts - 301 through 315 (of 330 total)