Viewing 15 posts - 1,231 through 1,245 (of 1,825 total)
See this link for Catch-All queries
http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
November 17, 2009 at 1:47 am
Here's an interesting ,well thought out question.
November 17, 2009 at 1:44 am
Then its subtly different
Declare @Test xml
Select @Test ='<Elem><Child>One</Child><Child>Two</Child><Child>Three</Child></Elem>'
select t.col.value ('.', 'varchar(50)') as Child
from @Test.nodes ('Elem/Child') AS t(col)
November 16, 2009 at 2:31 am
Its essentially the offset of the element required
Declare @test-2 xml
Select @test-2 ='<Elem><Child>One</Child><Child>Two</Child><Child>Three</Child></Elem>'
select t.col.value ('Child[1]', 'varchar(50)')as Child1,
t.col.value ('Child[2]','varchar(50)') as Child2,
...
November 16, 2009 at 2:11 am
Know of anything existing that might also perform these tasks?
That'll be XML Processing
Declare @test-2 xml
Select @test-2 = '<Candidate><FullName>Neil Vicente</FullName><Email>email1@email.com</Email><Random1>jXzcfm^[[X</Random1><Random2>BGCYNxusZj</Random2><Random3>VHjMjnGZCi</Random3></Candidate>'
select t.col.value ('FullName[1]', 'varchar(50)')as FullName,
t.col.value ('Email[1]','varchar(255)')...
November 16, 2009 at 1:37 am
I think that you will run into a myriad of performance issues further down the line
But something like , ive broken it down to show the working but you should...
November 15, 2009 at 2:20 pm
You seem to of answered your own question, charindex would suit your needs.
This link describes the uses of both Charindex and patindex
BUT if you have XML why are you...
November 15, 2009 at 1:50 pm
Migrate from what or to what ?
Either way, i very much doubt it.
November 15, 2009 at 2:53 am
November 15, 2009 at 2:51 am
Hi ,
you havent really give us much to go on.
All you have said is that you call a SP and it performs poorly.
No matter how 'simple' it is there is...
November 15, 2009 at 2:41 am
As eddy has suggested above, have you tried using full text searching ?
November 14, 2009 at 2:00 am
Thats a habit im trying to pick up , but obviously failing 🙂
November 11, 2009 at 3:41 am
Ummm, you have given no details so this is a complete guess
Create procedure DeleteProc
as
Delete top 10000
from <yourtable>
go
And create a job to execute it in sqlagent
November 11, 2009 at 3:28 am
This is exactly why transactions are needed.
Google is your friend (1st result from "VB.NET sqlserver transaction")
http://articles.techrepublic.com.com/5100-10878_11-5766653.html
November 11, 2009 at 1:41 am
Viewing 15 posts - 1,231 through 1,245 (of 1,825 total)