Register / Login
Win a copy of
Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA)
this week in the
Java in General
Error while calling sqlcmd (sql server 2008 R2) from Java 7
posted 3 years ago
I am facing some error wile executing sqlcmd form
. take a look...
Process process = Runtime.getRuntime().exec("sqlcmd -m-1 -S localhost,1433 -d my_server -U sa -P abc -Q \"select * from Assests where AssetID
'G123204E4-1234-4A31-B37B-0092D68DA429'\" -k2 -W -h-1 -s\",\" -o \"D://Assests.csv\"");
while running sqlcmd from sqlclient its working fine but form java it giving expression error
4145, Level 15, State 1, Server SANDIPB-PC, Line 1
An expression of non-boolean type specified in a context where a condition is expected, near 'AssetID'.
and when I change ">" to "=" its working fine.
can any one know why this is happening. Please let me know
Webspere 345 exam questions
Where to find ans for mock test by Valentinn Cretazz
J2EE Recommended Reading
Passed 700,701 and 340 last Thursday
Calling command prompt from java