Viewing 15 posts - 61 through 75 (of 444 total)
Luis Cazares (11/26/2015)
Be aware that the example doesn't represent a recursive query. That's just a query using union all
Yes, exactly. If OP needs more levels we need more info what...
November 26, 2015 at 11:48 pm
eut.kop (11/26/2015)
horror
| titolo 1
| titolo 2
fantascienza
...
November 26, 2015 at 5:53 am
itortu (11/25/2015)
November 25, 2015 at 9:48 am
Both output_desired.txt and current_output.txt show 16 rows and have the same projection on (RelationshipTypeName, RelationshipSubTypeName ). What's wrong?
November 25, 2015 at 2:48 am
And, depending on requirements if you need contacts with no relevant addresses too, change CROSS APPLY to OUTER APPLY.
November 24, 2015 at 6:19 am
Ok, you need to decide, which of possible relevant Addresses is first
SELECT C.ContactID, C.PostalName, Addresses.AddressID, Addresses.CompanyName
FROM Contacts C
CROSS APPLY(
SELECT TOP(1) *
FROM Addresses A
WHERE C.ContactID=A.ContactID AND A.CompanyName IS...
November 24, 2015 at 6:17 am
jon.clay 91459 (11/24/2015)
Thanks for your continued help (I know that it's probably like pulling teeth!).
Attached are two text files showing the relevant table scripts as requested (I'm unable to...
November 24, 2015 at 5:54 am
Fill() method returns number of rows successfully added to or refreshed. So if you need to know exactly the number of rows fetch by Fill() (no matter if dt has...
November 24, 2015 at 4:35 am
OK try this. We just need remember leaf's parent, start generating results at the leaf level contrary to level+1 in previous script and adjust final product assignment.
CREATE TABLE...
November 24, 2015 at 2:23 am
Then original
SELECT 'BS004','Packaged RTD Coffee','BC03',6
will contradict the query result
BS004 BS004d01 Packaged RTD Coffee6
Is it...
November 24, 2015 at 1:37 am
UNION ALL should perfom better
...
select *
from t2
union all
select t1.*
from t1
join t2 on t1.updatedate > '2015-07-30' and t2.rn=t1.rn+1;
November 24, 2015 at 1:18 am
misstryguy (11/23/2015)
I am ordering by updatedate desc and then I am applying the filter.
If i've got right
create table #test (id integer
,start datetime
,enddate datetime
,p1 integer
,p2 varchar(20)
,updatedate datetime)
insert into #test
values (3144187, '2015-07-01...
November 24, 2015 at 1:07 am
Using SQL generate a rowset containing all needed bcp commands and save it to a file.
Create vbscript kind of https://gallery.technet.microsoft.com/scriptcenter/32e0146a-83fc-4ee1-af7b-52a57d57466c to run commands from file in parallel using WScript.Shell's...
November 23, 2015 at 5:56 am
You have alredy used one of DVM above.
Conserning possible disk problems see scripts in http://www.databasejournal.com/features/mssql/finding-the-source-of-your-sql-server-io.html
November 23, 2015 at 4:50 am
Jack Corbett (11/18/2015)[hr
Putting the criteria in addition to the JOIN criteria in the WHERE clause in an OUTER JOIN vs in the ON clause results in a different...
November 23, 2015 at 3:18 am
Viewing 15 posts - 61 through 75 (of 444 total)