sqldata/sqldatacmd.cpp
// Output how to use the tool if /? or incorrect parameters are specified
Output how to use the tool if /. or incorrect parameters are specified
Output how to use the tool if / . or incorrect parameters are specified
void SqlDataCmd::PrintHowToUse()
{
	printf("\n\nHow to use:");
	printf("\n\n    sqldata -option=value [...n]");
	printf("\n\nOptions:\n");
	printf("\n   -sd       - Source database connection string");
	printf("\n   -td       - Target database connection string");
	printf("\n   -t        - List of objects (wildcards *.* are allowed)");
	printf("\n   -tf       - File with a list of objects");
	printf("\n   -texcl    - Objects to exclude (wildcards *.* are allowed)");
	printf("\n   -qf       - Query file");
	printf("\n   -out      - Output directory (the current directory by default)");
	printf("\n   -log      - Log file (sqldata.log by default)");
	printf("\n   -?        - Print how to use");
	printf("\n\nExample:");
	printf("\n\nTransfer table cities from Oracle to SQL Server");
#if defined(WIN32) || defined(_WIN64)
	printf("\n\n   sqldata.exe -sd=oracle,scott/tiger@orcl -td=sql,trusted@srv1,hr -t=cities");
	printf("\n");
	printf("\nRun sqldata_w.exe to launch a GUI version of SQLData.\n");
	printf("\nPress any key to continue...\n");
	_getch();
#else
	printf("\n\n   ./sqldata -sd=oracle,scott/tiger@orcl -td=sql,trusted@srv1,hr -t=cities");
	printf("\n\n");
#endif
}
void SqlDataCmd :: PrintHowToUse ( ) { printf ( " \n \n " ) ; printf ( " \n \n " ) ; printf ( " \n \n \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n \n " ) ; printf ( " \n \n " ) ; #if defined ( WIN32 ) || defined ( _WIN64 ) printf ( " \n \n " ) ; printf ( " \n " ) ; printf ( " \n \n " ) ; printf ( " \n \n " ) ; _getch ( ) ; #else printf ( " \n \n " ) ; printf ( " \n \n " ) ; #endif }
Output how to use the tool if /?
Output how to use the tool if / ?