Viewing 15 posts - 46 through 60 (of 312 total)
You may use this also.
with abc(managerNumber, managerFirstName, managerSurname, id, employeeId,
employeeFirstName, EmployeeSurname, employeeJob)
As
(SELECT
tab.col.value('employeeNumber[1]','VARCHAR(20)')AS managerNumber,
tab.col.value('first[1]','VARCHAR(200)') AS managerFirstName,
tab.col.value('surname[1]','VARCHAR(200)') AS managerSurname,
tab1.col.value('./@id','VARCHAR(20)')AS id,
tab1.col.value('employeeNumber[1]','VARCHAR(20)')AS employeeId,
tab1.col.value('(employeeName/first)[1]','VARCHAR(20)')AS employeeFirstName,
tab1.col.value('(employeeName/surname)[1]','VARCHAR(20)')AS EmployeeSurname,
tab1.col.value('job[1]','VARCHAR(20)')AS employeeJob
FROM
@b-2.nodes('//workingGroup/managerName') tab(col),
@b-2.nodes('//workingGroup/employeeGroup/employee') tab1(col) )
select min(employeeId) as...
August 6, 2008 at 4:56 am
Hi,
You can use this query.
DECLARE @Xml XML
SELECT @Xml = ' Your Xml here'
-----------
SELECT
tab.col.value('employeeNumber[1]','VARCHAR(20)')AS managerNumber,
tab.col.value('first[1]','VARCHAR(200)') AS managerFirstName,
tab.col.value('surname[1]','VARCHAR(200)') AS managerSurname,
tab1.col.value('./@id','VARCHAR(20)')AS id,
tab1.col.value('employeeNumber[1]','VARCHAR(20)')AS employeeId,
tab1.col.value('(employeeName/first)[1]','VARCHAR(20)')AS employeeFirstName,
tab1.col.value('(employeeName/surname)[1]','VARCHAR(20)')AS EmployeeSurname,
tab1.col.value('job[1]','VARCHAR(20)')AS employeeJob
FROM
@Xml.nodes('//workingGroup/managerName') tab(col),
@Xml.nodes('//workingGroup/employeeGroup/employee') tab1(col)
-- Output
---------------------------------------------------------------------------------------------------
--managerNumber ...
August 5, 2008 at 6:06 am
Hi,
I think your xml file is not uploaded properly...
Please check once..and upload the correct one..
Cheers!
Sandy.
August 4, 2008 at 9:44 am
Hi All,
This issue got resolved. Actually one of the file missed from the Application Data folder from documents and settings folder.
It got resolved once log off and login again on...
August 4, 2008 at 3:11 am
Jack,
I think you are not clear on my question.Let me clear you...
As per my question, User1 is not trying to open MRS report in SSRS enviorment.
Actually he wants to...
August 1, 2008 at 9:26 am
Congrats..Gail..:)...You deserve it..:)
"All The Best....:)"
Cheers!
Sandy.
August 1, 2008 at 8:38 am
luv,
you can use this:
set @Approve = (select top 1 convert(int,SettingValue)
...
July 31, 2008 at 7:43 am
SQL SERVER 2008 RELEASE 🙂 : May be middle of August or September....
Not sure??
Cheers!
Sandy.
July 31, 2008 at 7:33 am
Thanks gail...:)
Cheers!
Sandy.
July 31, 2008 at 2:59 am
Although I was not knowing it..
but still I use to respect gail more than MVP...
His Answer is so specific to understand the technology like anything..
thanks to gail 🙂 for nice...
July 30, 2008 at 10:22 am
Thats True...I do agree on this...
but What's about the MSDN then...??
Cheers!
Sandy.
July 30, 2008 at 9:43 am
Gail,
As MVP's are the people those who selected by the Microsoft itself... So I can consider their suggestion's as one of the selective answer for this topic....
Cheers!
Sandy.
July 30, 2008 at 9:34 am
Grant,
I am not talking about gail is rite or wrong...
I am looking for a answer which make sense with respect to performance and design prospective..
more over to that, if you...
July 30, 2008 at 9:28 am
Yes, Gail...
Your last post make sense for me...
Thanks...:)
Anyways I would like to open this question for others who have already got the exposer to this type of indexing too...
Cheers!
Sandy.
July 30, 2008 at 9:17 am
Please Check this:
Cheers!
Sandy.
July 30, 2008 at 9:09 am
Viewing 15 posts - 46 through 60 (of 312 total)