sql - DBNETLIB errors -
what should very straight forward query giving me trouble.
first, here's code:
`select accthist.acct, accthist.cpnyid, accthist.fiscyr, accthist.ledgerid, accthist.ptdbal04 curr_month, sum(accthist.ptdbal00+accthist.ptdbal01+accthist.ptdbal02+accthist.ptdbal03+accthist.ptdbal04) ytd_bal ffneapp.dbo.accthist accthist (accthist.acct>='4000000' , accthist.ledgerid in ('actual','stat','budget','budstat') , accthist.fiscyr in ('2014','2015') , accthist.cpnyid not in ('999')) group accthist.acct, accthist.cpnyid, accthist.fiscyr, accthist.ledgerid, accthist.ptdbal04`
when refresh query via connection in ms excel, 3 errors.
first [microsoft][odbc sql server driver][dbnetlib]connectionwite (send()).
next [microsoft][odbc sql server driver][dbnetlib]general network error. check network documentation.
last problems obtaining data.
oddly, when remove 'budget' clause, works. cause query fail? particular record ledgerid of budget cause hang up? if so, what's best way figure out record?
Comments
Post a Comment