3 #include <samchon/library/TSQLi.hpp> 4 #include <samchon/library/SQLStatement.hpp> 6 #include <samchon/library/XML.hpp> 13 # pragma comment(lib, "x64/Debug/SamchonFramework.lib") 15 # pragma comment(lib, "x64/Release/SamchonFramework.lib") 19 # pragma comment(lib, "Debug/SamchonFramework.lib") 21 # pragma comment(lib, "Release/SamchonFramework.lib") 27 shared_ptr<SQLi> sqli(
new TSQLi());
31 sqli->connect(
"127.0.0.1",
"BOMTV",
"sa",
"1231");
33 auto stmt = sqli->createStatement();
34 stmt->executeDirectly(
"EXEC getOrderArray");
36 cout << stmt->toXML()->toString() << endl;
40 cout << e.what() << endl;
A SQL interface for T-SQL.