Viewing 15 posts - 16 through 30 (of 98 total)
Try something like this...
DECLARE @data varchar(50)
DECLARE @Value int
DECLARE @Count int
DECLARE @val varchar(16)
SET @data = 'THIS IS A TEXT MESSATE SORRY IT...
June 5, 2009 at 1:43 am
george sibbald (6/3/2009)
select suser_sname(sid),name from master..sysdatabases
just add the relevant where clause for a particular database
Retrieving who originally created the database (if different) I...
June 3, 2009 at 6:57 am
MarkusB,
Is it possible to achieve this through sql statement? Like sys.databases some thing like ....
---
June 3, 2009 at 6:27 am
Thanks you very much MarkusB for your quick info. 🙂
June 3, 2009 at 1:22 am
DECLARE @ExpDate int
DECLARE @CurrentDate NVARCHAR(180)
DECLARE @TimeElapsed NVARCHAR(180) -- 'hh:mm'
DECLARE @RemainingTime NVARCHAR(180)
SET @ExpDate = 13
SET @TimeElapsed = '06:00' -- 'hh:mm'
SET @CurrentDate = '2009-04-14 10:00:00.000'
SELECT @RemainingTime = -- Some Logic
My Result
---------
The result...
April 13, 2009 at 11:03 pm
San (4/2/2009)
SELECT * FROM
(
SELECT
CASE WHEN (Row_Number() OVER (ORDER BY Q.QText)) > 1...
April 2, 2009 at 3:53 am
Thanks All for your valuable reply.
Yes Andrew, i have done that through dropping the foreign key and recreating the same.
But i am still doing, is there any other way...
February 5, 2009 at 10:10 pm
Andrew Reilly (2/4/2009)
Just go into management studio into the table design and set the Identity Specification and it should work just fine
😛 That i know. How can i achieve through...
February 4, 2009 at 9:29 pm
Hi,
I got my it is happened. here i changed my sa password for my server.
When i right click and say create to ==> it shows me the old sa...
January 27, 2009 at 5:33 am
vikas bindra (1/22/2009)
January 22, 2009 at 6:03 am
vikas bindra (1/15/2009)
January 15, 2009 at 3:25 am
Thanks Vikas, RBarry for your quick reply.
I can understand now.
But is it possible to knock off that warning message also?
Because we are getting nearly 10 to 15 warning messages...
January 15, 2009 at 12:07 am
Thanks Jack for your valuable reply.
Here i was using NULLIF function. Using this i got the result. Please see the below code.
SELECT SCOPE_IDENTITY(),
ISNULL(NULLIF(Ques.value('Option1[1]','varchar(16)'),''),NULL) AS Option1,
...
January 5, 2009 at 5:35 am
DECLARE @HieLevel TABLE
(
HieID[uniqueidentifier],
HieLevel[tinyint],
ParentHieID[uniqueidentifier],
Levels[tinyint]
)
;WITH CTEHierLevel(fldHieID,fldHieLevel,fldParentHieID,Level)
AS
(
SELECT
fldHieID,
fldHieLevel,
fldParentHieID,
0 AS Level
FROM
tblHierachey
WHERE
fldHieID = @HieID
UNION ALL
SELECT
Client.fldHieID,
Client.fldHieLevel,
Client.fldParentHieID,
Level + 1
FROM
tblHierachey AS Client
INNER JOIN
CTEHieLevel AS CL
ON (Client.fldParentHieID = CL.fldHieID)
)
INSERT INTO @HierLevel (HieID,HieLevel,ParentHieID,Levels)
SELECT fldHieID,fldHieLevel,fldParentHieID,Level FROM CTEHierLevel order by level
/* Below...
November 19, 2008 at 7:14 am
Viewing 15 posts - 16 through 30 (of 98 total)