Viewing 15 posts - 33,166 through 33,180 (of 59,099 total)
ALZDBA (7/22/2011)[hrOf course there is nothing wrong with yea good old DOS ..... in a sqlagent job please.
Not in the in-transaction-code !
I have to disagree there. xp_CmdShell can...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2011 at 6:40 am
RichB (7/22/2011)
I am torn between considering this genius or madness...:pinch:
Heh... I've found there's not much difference. 😀 The quality of the outcome is normally the determining factor.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2011 at 6:32 am
I can't help on the original problem because there's just not enough information to go on.
However, I see that you have a Split function and most folks rendition...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2011 at 5:29 am
Mitesh Oswal (7/22/2011)
DECLARE @string VARCHAR(1000)
SET @string = 'aaa,bbb,ccc'
DECLARE @tblNumber TABLE
(
ID INT
)
INSERT INTO @tblNumber
SELECT TOP 100 ROW_number() OVER(order by s.object_id)
from sys.objects o,sys.objects s
select SUBSTRING(@string,id,CHARINDEX(',',@string+',',id)-id) from @tblNumber
where ID <len(@string)
AND SUBSTRING(','+@string,id,1)=','
That's the...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2011 at 5:18 am
Eralper (7/22/2011)
What you are asking for is split functionYou can find samples on the web if you search with that term
Here is some
http://www.kodyaz.com/articles/sql-server-string-split-tsql-clr-function-sample.aspx
http://www.kodyaz.com/articles/sql-server-t-sql-split-function.aspx
http://www.kodyaz.com/articles/t-sql-convert-split-delimeted-string-as-rows-using-xml.aspx
Oh... be careful. Splitting using a...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2011 at 5:15 am
I realize this is an old post but I have to ask... why would you feel that returning 110,000 (1% of the 11 million row table) would be a good...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2011 at 5:04 am
I realize that I'm rendering an opinion probably too late, but here we go.
The app has survived the last 4 years with it the way I described. I decided before...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2011 at 5:00 am
Craig Farrell (5/17/2011)
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2011 at 4:43 am
Thanks for posting the feedback for the solution you found.
As a side bar, it's a real shame that you didn't post data using the method that Lutz suggested... it's likely...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2011 at 4:20 am
Just to emphasize...
Generating additional ID's in a column using MAX will frequently lead to duplicated numbers if there's no unique constraint on the column and will lead to frequent rollbacks...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2011 at 4:14 am
yatish.patil (7/20/2011)
Hi ChrisM@Work,Thank you Very much , your solution is working perfectly as it is required for me. Thank you for your help.
Regards,
Yatish
The question now is, if presented with a...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2011 at 3:43 am
julian.fletcher (7/21/2011)
We have an index on the SPID column (of course!) but not a clustered one. I was concerned that this might make the situation worse, given...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2011 at 3:33 am
I don't know if it'll help for sure but I seem to remember an old wive's tale that may help. If you put all of the fixed length columns...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2011 at 9:11 pm
I got real curious and looked it up. Out-of-row pointers are freakin' huge... they're 24 bytes. I'm thinking that's likely the problem.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2011 at 9:00 pm
rathod.balu (7/21/2011)
Could you please elaborate as for whr i am going worng...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2011 at 8:41 pm
Viewing 15 posts - 33,166 through 33,180 (of 59,099 total)