CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2003
    Location
    Turku/Finland
    Posts
    77

    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

  2. #2
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    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
  •  





Click Here to Expand Forum to Full Width

Featured