-
August 8th, 2008, 10:39 AM
#1
ODBC Create customname table to excel
I want make custom name to excel sheet because i want change this runtime
Code:
CString MyString = L"CustomSheetname";
sSql = "CREATE TABLE MyString (CODE TEXT,......
This doesn't work
How ?
Thanx
-
August 8th, 2008, 11:03 AM
#2
Re: ODBC Create customname table to excel
1. What doesn't work?
2. Why do you mix Unicode and ANSI strings?
3. The correct way to write this SQL query would be:
Code:
CString MyString = _T("CustomSheetname");
CString sSql = _T("CREATE TABLE ") + MyString ;
sSQL += _T(" (CODE TEXT,......");
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|