Viewing 15 posts - 16 through 30 (of 48 total)
Good question. I guessed 0 thinking it was SQL injection issue which would delete all the rows in the table.Learnt sth new.
February 3, 2010 at 11:28 pm
The SERVERPROERTY function can give you some info on the server level:
For example can give you collation information to know the language info.
Hope this helps.
select SERVERPROPERTY ('Collation') as 'Collation'
February 3, 2010 at 11:04 pm
I believe you meant to say...partition it by ProductName and delete all the records greater than rownum 1.
You probably missed to add the Partition By in the Over clause. Yes,...
February 2, 2010 at 11:17 am
I am assuming that there is an Identity Column in the tblVersion table 🙂
February 1, 2010 at 5:25 pm
Forgot to past the script:
DELETE D FROM
(
SELECT ProductName, ROW_NUMBER()OVER(ORDER BY ProductName) AS RowNum
FROM dbo.T1
) as D
JOIN
(
SELECT ProductName, ROW_NUMBER()OVER(ORDER BY ProductName) AS RowNum
FROM T1
) as E
on D.ProductName = E.ProductName
AND...
January 28, 2010 at 7:35 pm
You are right about the systax errors, it was happening as I had some empty characters in the query I attached. I am reattaching the script w/o the empty characters.
Also,...
January 28, 2010 at 7:29 pm
Yes, it's an Index Covering issue. Having the following index should also suffice your query and will not have any key/bookmark lookup and just an index seek since columns KEY1...
January 20, 2010 at 11:24 pm
Hi,
I tried it using cross join and that seems to be a better way to handle this.
Thanks
June 12, 2009 at 1:25 pm
Hi All,
Any comments or suggetions of any other best practices to handle this would be very helpful.
Thanks
June 12, 2009 at 12:12 pm
Matt,
I tried by putting the XML schema validation within a nested Try/Catch in the proc and now it's able to capture the LocalError passsed in.
Thanks for you feedback.
April 3, 2009 at 4:57 pm
Hit Matt,
Thanks for you feedback.
Actually yes, I am already doing that in my Unit Test for the from as shown below, but still no luck
--Set the values for the Input...
April 3, 2009 at 3:18 pm
Hi Jacob,
I am trying to Raise an error using RAISEERROR function in sql when the XML schema validation fails.
I am doing this inside a store proc. I am declaring the...
April 2, 2009 at 10:02 pm
Thanks Jacob,
That works pretty well. Have used Cross Apply with XML and another table but within the same XML. This is pretty useful. Appreciate your feedback on this.
March 6, 2009 at 11:20 am
Hi Jacob,
Wondering if could give some feedback to my issue here.
With SQL Server 2008...
I have an XML document and created it's XSD schema using VSTF (Visual Studio) create schema tool.
I...
March 3, 2009 at 6:17 pm
GSquared,
I don't have to update the existing Main XMl, generting a new one as a final XML fine as well.
I am not understanding the following statement of yours.
"It would be...
February 19, 2009 at 4:15 pm
Viewing 15 posts - 16 through 30 (of 48 total)