|
sql
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Question to linked server, wrong resultSQL> select distinct anv_uppg, profilkod from ekop2.bav001 where anv_uppg like 'san%' ; ANV_UPPG PRO --------------- --- sanderss SAN --------------------------------------------------- Linked server question from query analyzer SELECT distinct ANV_UPPG, REG_NAMN FROM HACTAR..EKOP2.BAV001 where anv_uppg like 'san%' ---------------------------------- sanderss GNO sanderss SAN ------------------------------------------------------------------ I have never seen this before and it usually works fine. Any idea what's wrong?? Are you sure you don't want
SELECT distinct ANV_UPPG, REG_NAMN FROM HACTAR..EKOP2.BAV001 where pro like 'san%' becuase the query you showed return 2 records and that is correct for the field anv_uppg (sanderss) http://sqlservercode.blogspot.com/ Problem solved: no longer an issue
Show quoteHide quote :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: "ln54" wrote: > First the question and correct result in Oracle > SQL> select distinct anv_uppg, profilkod from ekop2.bav001 > where anv_uppg like 'san%' ; > > ANV_UPPG PRO > --------------- --- > sanderss SAN > > > --------------------------------------------------- > Linked server question from query analyzer > > SELECT distinct ANV_UPPG, REG_NAMN > FROM HACTAR..EKOP2.BAV001 > where anv_uppg like 'san%' > > ---------------------------------- > sanderss GNO > sanderss SAN > ------------------------------------------------------------------ > > I have never seen this before and it usually works fine. > > Any idea what's wrong?? > > > > > >
Other interesting topics
problem with xp_smtp_sendmail
AWE and set working set size Attaching SQL Server 2000 database on SQL Serve 2005 How can I get the message return? Difference between 2000 and 2005. Maybe a bug? sql2k log backup user accounts after restore in SQL 2000 Collation Conflicts SQL 2005 Can't connect from ASP.Net 2.0 to SQL2000 after installing SQL2005 SQL Server Agent Jobs that are running |
|||||||||||||||||||||||