Viewing 15 posts - 10,291 through 10,305 (of 13,874 total)
venkatareddy.mora (12/20/2012)
I have a flatfile which contains 100 diff locations, i want split the data based on the name of city
Ex:-
cid,cname,loc
1,aa,us
2,bb,uk
3,cc,russaia
........ upto 100
so want split the data based...
December 20, 2012 at 4:01 am
In relation to the convert, it actually did work. I thought this would work as my perception of running a linked server to MySQL still means I am making the...
December 19, 2012 at 2:28 pm
10e5x (12/19/2012)
I heed ur advice and did a debug. It was strange it doesnt return me any data. Hence i read through my script and realize it may...
December 19, 2012 at 11:59 am
Brad Marsh (12/18/2012)
Duplicate column names are not allowed in result sets obtained through OPENQUERY and OPENROWSET. The column name "name" is a duplicate.
Owh the joys of...
December 19, 2012 at 1:14 am
Steve Jones - SSC Editor (12/18/2012)
I don't like the idea of them after BEGIN-like statements. I'd see...
December 18, 2012 at 11:51 am
I saw an example only today of over-zealous use of the semi-colon terminator, with something like this:
Begin try;
--do stuff
End try
Begin Catch
--error handling stuff here
End Catch;
This does not generate an error...
December 18, 2012 at 10:54 am
..which you will quickly diagnose when running in debug. Sounds like the datareader may not be getting populated at all.
December 18, 2012 at 10:44 am
Single quotes within single quotes may be causing issues. Try this instead:
select *
from openquery([connection], '
-- Forum Messages by User
use databasebname;
select u.name, convert_tz(from_unixtime(m.modificationDate/1000),''+00:00'',''-08:00'') as TimePST, m.subject, m.body, m.messageID, f.forumID, f.name
from jiveMessage...
December 18, 2012 at 10:42 am
Have you tried setting a breakpoint and debugging line by line? It might illuminate the problem.
December 18, 2012 at 6:08 am
david.ostrander (12/14/2012)
Oh I understand the message. Its my eyes that are not seeing where the issue is.
Try running the queries one at a time and counting the columns ...
December 14, 2012 at 1:07 pm
Lisa Liel (12/14/2012)
Also... doing the subqueries with "With X as"...
December 14, 2012 at 12:54 pm
Someone had a lot of fun writing that query.
I believe that error means that there are unequal numbers of columns in the different SELECTs - so things just don't match...
December 14, 2012 at 10:54 am
Something like this (untested) should get you started.
with invs
as (
select CustKey
,sum(balance) invbalance
from tarInvoice
group by CustKey
)
,payments
as (
select CustKey
,Sum(UnappliedAmt) UnappliedAmt
from tarCustPmt
group by CustKey
)
select c.CustKey
,c.CustId
,etc etc
,IsNull(invs.invbalance, 0)
,isNull(payments.UnappliedAmt)
from tarCustomer c
left join invs on c.CustKey...
December 14, 2012 at 10:45 am
Eugene Elutin (12/11/2012)
Here I will play J.CELKO: ......
Steady on, don't overdo it :hehe:
December 11, 2012 at 10:34 am
mikes84 (12/11/2012)
I have a FULL OUTER JOIN with an OR condition that's running very slowly. The reason is because I'm trying to join a users table (id, username1, username2) where...
December 11, 2012 at 9:10 am
Viewing 15 posts - 10,291 through 10,305 (of 13,874 total)