I have an application that has been using a right outer join that worked as I
expected until I added merge replication. On the replicated database the
result is the same as an inner join. I could be doing something odd but it's
a pretty plain use and it still works on instances of the database without
replication. I thought I'd first ask if this is a known issue before creating
small standalone files for posting.
Thanks
Kohn,
I see no reason how this could possibly be an issue. Please can you post up
your files and I'll try to repro.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
Showing posts with label adding. Show all posts
Showing posts with label adding. Show all posts
Wednesday, March 28, 2012
Outer joins fail since adding replication
Labels:
adding,
application,
database,
fail,
iexpected,
joins,
merge,
microsoft,
mysql,
oracle,
replicated,
replication,
server,
sql
Wednesday, March 7, 2012
oSql is adding line-breaks when "-output" or ">" is used to save output to a file.
-- No line-wrapping here:
PRINT '123456789 123456789 123456789 123456789 123456789 123456789 123456789
123456789'
PRINT '123456789 123456789 123456789 123456789 123456789 123456789 123456789
123456789'
PRINT '123456789 123456789 123456789 123456789 123456789 123456789 123456789
123456789'
I save the above 3 lines to a text-file called: oSqlTest.sql
When I execute it... "A" works fine... but "B" and "C" all have unneeded
linefeeds appearing
in the output file. How do I get rid of them?
A> oSql -n -i oSqlTest.sql
B> oSql -n -i oSqlTest.sql -o 1.txt
C> oSql -n -i oSqlTest.sql >2.txt
"A_Michigan_User" (Michigan_RE_M0VE@.ameritech.net) writes:
> I save the above 3 lines to a text-file called: oSqlTest.sql
> When I execute it... "A" works fine... but "B" and "C" all have unneeded
> linefeeds appearing
> in the output file. How do I get rid of them?
> A> oSql -n -i oSqlTest.sql
> B> oSql -n -i oSqlTest.sql -o 1.txt
> C> oSql -n -i oSqlTest.sql >2.txt
Try the -w option.
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
PRINT '123456789 123456789 123456789 123456789 123456789 123456789 123456789
123456789'
PRINT '123456789 123456789 123456789 123456789 123456789 123456789 123456789
123456789'
PRINT '123456789 123456789 123456789 123456789 123456789 123456789 123456789
123456789'
I save the above 3 lines to a text-file called: oSqlTest.sql
When I execute it... "A" works fine... but "B" and "C" all have unneeded
linefeeds appearing
in the output file. How do I get rid of them?
A> oSql -n -i oSqlTest.sql
B> oSql -n -i oSqlTest.sql -o 1.txt
C> oSql -n -i oSqlTest.sql >2.txt
"A_Michigan_User" (Michigan_RE_M0VE@.ameritech.net) writes:
> I save the above 3 lines to a text-file called: oSqlTest.sql
> When I execute it... "A" works fine... but "B" and "C" all have unneeded
> linefeeds appearing
> in the output file. How do I get rid of them?
> A> oSql -n -i oSqlTest.sql
> B> oSql -n -i oSqlTest.sql -o 1.txt
> C> oSql -n -i oSqlTest.sql >2.txt
Try the -w option.
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
Labels:
123456789123456789print,
adding,
database,
file,
hereprint,
line-breaks,
line-wrapping,
microsoft,
mysql,
oracle,
osql,
output,
save,
server,
sql
Subscribe to:
Posts (Atom)