Viewing 15 posts - 1 through 15 (of 93 total)
Nevermind. This one worked.
SELECT tbl2.rows2.value('.', 'int')
FROM @company.nodes('/Company/Locations/Location/Department') AS tbl(rows)
CROSS APPLY tbl.rows.nodes('./Employees/EmpId') AS tbl2(rows2)
WHERE tbl.rows.exist('../LocId[text()="3"]') = 1
April 22, 2009 at 12:06 am
This worked.
SELECT x.y.value('.', 'int')
from @depxml.nodes('(DEPARTMENT/EMPLOYEES/EMPID)') x(y)
April 20, 2009 at 5:23 pm
I tried to login to SSMS using sql auth, I got this error -
A connection was successfully established with the server, but then an error occurred during the login...
March 14, 2009 at 1:13 pm
I am sorry if I didn't explain myself clearly. The user 100 has two reports by same name - REPORT2. The id is unique, but we still would like the...
February 26, 2009 at 9:29 pm
Will it work from inside an aspx page? The csv file will be uploaded from an aspx web form.
February 6, 2008 at 5:49 pm
I don't think it will work in this case. This page has a dropdown option for the users to order the resultset on different fields.
May 23, 2007 at 3:25 pm
"Then if Farrell became friend of Sergiy, is he a friend of Senthil?" No. There is no friends of friends or recursive relationship.
I don't want to add multiple records, if...
April 4, 2007 at 9:52 am
I believe it talks about heirarchical tree structure. This friends table would be a non-directed graph. I think this table design is OK, I have all the select, insert, and...
April 3, 2007 at 3:14 pm
Can you please tell what typical fields you would have in each table. There is going to be just one forum. I think there will be no need for Forum...
March 9, 2007 at 11:12 am
Its a copy paste error. The actual var is @stringids, I thought @useridstring would be easier to understand for others. There were couple of other copy/paste errors as well. I...
February 21, 2007 at 9:19 am
Hi Lowell,
"no squishing userid's into a varchar and then re-extracting them." I am not sure if that will work. Please let me know if I am wrong or is there...
February 21, 2007 at 8:54 am
This is the sproc that runs from the windows service, from where I get the timeout errors.
CREATE PROCEDURE [dbo].[proc_broadcastemailsget]
AS
DECLARE @clientstable TABLE (userid INT PRIMARY KEY)
DECLARE @bid INT
DECLARE @useridstring VARCHAR(8000)
IF...
February 21, 2007 at 8:53 am
Thanks very much.
I have another questions. Some of the old orders imported from another system does not have the date, the datestamp field is null (it is of type...
November 30, 2006 at 9:26 am
Viewing 15 posts - 1 through 15 (of 93 total)