Viewing 15 posts - 8,176 through 8,190 (of 8,753 total)
hunchback (5/23/2014)
May 23, 2014 at 10:31 am
The order is important and must be respected in the XML but in the result set it is not. Therefore, use the row_number function to assign the "order" when shredding...
May 23, 2014 at 4:05 am
Not certain what the problem is, testing your code with an addition of a row_number consistently brings back the results in the expected order.
😎
declare @Products xml = N'<BS>
<B Id="5" />
<B...
May 23, 2014 at 1:04 am
Without more information, the answer is it depends. What kind of queries, aggregation? How does the schema look like etc.
😎
May 23, 2014 at 12:20 am
Quick question, what has changes since the last successful attempt?
😎
May 22, 2014 at 2:09 pm
Sean Lange (5/22/2014)
May 22, 2014 at 1:37 pm
I suggest you change from the + (addition) concatenation to the CONCAT function, it should implicitly cast the input to the appropriate character type if it does what says on...
May 22, 2014 at 1:26 pm
First of all, sorry for my hurried and incomplete postings on the subject, the question is about parameter binding and sql injection, I recognise that this is slightly (read...
May 22, 2014 at 1:20 pm
Sean Lange (5/22/2014)
May 22, 2014 at 10:21 am
Quick question, are you on SQL2008 SP1? If so, try OPTION ( OPTIMIZE FOR ( @xml = NULL ) ).
😎
May 22, 2014 at 7:15 am
raosankar19 (5/21/2014)
Delete cascade syntax in sql server...
I want to know delete cascade syntax in sql server...
🙂
ON DELETE CASCADE
😎
USE tempdb;
GO
CREATE TABLE dbo.TBL_PARENT
(
PARENT_ID INT IDENTITY(1,1)...
May 22, 2014 at 2:01 am
You can test the result set, if the count is 0 then don't execute the code, see the code!
😎
DECLARE @RES TABLE
(
is_hidden ...
May 21, 2014 at 12:52 pm
Eric M Russell (5/21/2014)
May 21, 2014 at 12:15 pm
Had a quick look at it again and discovered minor snags:-D
Firstly, this is not going to work for more than one customer at a time so I added a variable...
May 20, 2014 at 11:18 pm
Viewing 15 posts - 8,176 through 8,190 (of 8,753 total)