Viewing 15 posts - 1 through 15 (of 98 total)
USE AdventureWorks;
GO
SELECT ProductID, Name, Color
FROM Production.Product
WHERE ProductID = 1
FOR XML RAW('Task'), root('TaskList')
If executing the above query, XML result set will come along this ProductID 1.
USE AdventureWorks;
GO
SELECT ProductID, Name, Color
FROM Production.Product
WHERE...
August 13, 2009 at 6:30 am
Matt Wilhoite (8/13/2009)
Have you made sure this productID exists? The adventureWorks database I have installed does not have this productID.
Yes, the same ProductID not in my database as well....
August 13, 2009 at 6:11 am
I don't know how the logic is. I am trying the same.
If you have any idea about the logic let me know.
August 5, 2009 at 9:13 am
Lynn Pettis (8/5/2009)
sqluser (8/5/2009)
In this...
August 5, 2009 at 8:44 am
I want my result set should be like below.
RowfldIDfldUName1.12.2 3.3 4.4
110 Sample1 2009-07-07 NULL NULL NULL
220 Sample2 NULL ...
July 26, 2009 at 12:25 am
Thanks John for your reply. For time being i get the same procedure from some other server and create the same in my server.
Now, i am able to create...
July 2, 2009 at 5:15 am
I am using Standard Edition with Service Pack 2.
July 2, 2009 at 12:38 am
John Marsh (7/2/2009)
Hello again,Well, that should rule out permission issues then.
Does the SP exist in your Master DB i.e. somebody hasn’t accidentally (or possibly even deliberately) deleted it?
Regards,
John Marsh
No, that...
July 2, 2009 at 12:10 am
Yes, i am using sysAdmin Privilege to configure this.
July 1, 2009 at 11:52 pm
Can you tell me, why you are going for dynamic query as per your script...
June 12, 2009 at 6:20 am
Hi,
test the date
DECLARE @test-2 int
SET @test-2 = 1000.00000
SELECT STR(@Test,5,2)
what happened?
ARUN SAS
[/quote]
you need to change the length 7 instead of 5.
June 12, 2009 at 6:14 am
June 12, 2009 at 3:34 am
I hope this may solve your issue.
IF EXISTS(SELECT * FROM sys.objects WHERE [name] = 'tblTable')
BEGIN
DROP TABLE tblTable
END
CREATE TABLE tblTable (fldID int, fldName varchar(8))
IF NOT EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME...
June 12, 2009 at 1:16 am
Viewing 15 posts - 1 through 15 (of 98 total)