Gets a string describing the SQL environment.
char*
ade_sqlgetenvstring(
char* linktemplate);
Returns a string describing the SQL environment or NULL.
linktemplate | Link template. |
For more information about link templates using SQL, see the AutoCAD online documentation.
The following sample gets the SQL environment string using ade_sqlgetenvstring() and displays that information based on the returned value.
char* pszLinkTemplateName = "BlockGroup"; char* pszSQLEnvironmentString = ade_sqlgetenvstring(pszLinkTemplateName); if (NULL == pszSQLEnvironmentString || _tcscmp(pszSQLEnvironmentString, "") == 0) { acutPrintf( "\nNo environment string was obtained."); } else { acutPrintf( "\nThe current environment string is: \"%s\"." , pszSQLEnvironmentString); }