Viewing 10 posts - 76 through 85 (of 85 total)
Nice query. Certainly the best approach for the mentioned scenario. Removing the Split function and any hidden R-BAR associated with it. Thanks for posting.
August 13, 2013 at 5:10 am
b.value column is coming from the string split function .
select t.*,p.bld_document
into #k
from
(
select a.*, Convert(int,b.value) [DocID] from #t a
cross apply
(select Value from dbo.split_delimited_string(a.blp_documentattach,',')) b
) t
join #m p
on t.docID = p.bld_documentid
replace '*'...
August 13, 2013 at 4:42 am
Here is the solution for your problem:
You can use any csv splitter function available and replace the one I have used in the code.
create table #t
(
blp_proposalno bigint,
blp_documentattach varchar(max),
blp_fund int,
blp_branch varchar(5)
)
create...
August 13, 2013 at 3:40 am
dbajunior (8/8/2013)
It will also allow you to find the...
August 8, 2013 at 9:46 am
Rossana A. Hnatyshyn (8/8/2013)
Very useful.Can you make it where you can search accross databases in current connection?
Thanks!
Didn't actually get your question, could you please elaborate?
Usually what I do is create...
August 8, 2013 at 9:42 am
Even the article focuses discussion around ORDER BY clause. I am not saying that if I have never encountered any issues with it then it is perfect. I want to...
July 25, 2013 at 2:21 am
The discussion is going pretty well and the different approaches mentioned are good. One thing I would like to point out here that all the solutions revolve around the same...
July 25, 2013 at 2:09 am
Easiest way
DECLARE @listStr VARCHAR(MAX)
SELECT @listStr = COALESCE(@listStr+',' ,'') + Name
FROM Production.Product
GROUP BY Name
SELECT @listStr
🙂
July 24, 2013 at 7:41 am
Thanks for the reply....
I am using the search mechanism only, I have a large number of db objects with dynamic sql queries so you can understand how...
June 19, 2013 at 12:50 am
Thanks for such a quick reply. I have already tried this method. It is effective when I have to go through small pool of db objects with dynamic queries.
In my...
June 17, 2013 at 7:44 am
Viewing 10 posts - 76 through 85 (of 85 total)