Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: MSSQL Error related to import of accounts

  1. #1
    nvdp2002 is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    134

    Default MSSQL Error related to import of accounts

    Operating system type and version Windows 2003 Server
    Sugar Suite version Open Version 5.0.0b (Build 3150)
    Webserver type and version IIS 6
    PHP version 5.2.5
    MSSQL server version MSSQL 2005 express

    Hi
    Thanks in advance for any and all help.
    I get the following error when i try to import anything. When ever i click on import i get the following error.

    SQL Error : Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier.

  2. #2
    DragonflyMaster is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Rimini, Italy
    Posts
    1,421

    Default Re: MSSQL Error related to import of accounts

    Hi.
    When exactly do you get this error? As soon as you click import? Or in one of the subsequent steps?
    What do you think the cookie monster eats ?

  3. #3
    nvdp2002 is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    134

    Default Re: MSSQL Error related to import of accounts

    Hi

    As soon as i click on import.

    Thanks

  4. #4
    DragonflyMaster is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Rimini, Italy
    Posts
    1,421

    Default Re: MSSQL Error related to import of accounts

    In one of my Sugar instances I am using your same specs:
    Quote Originally Posted by nvdp2002
    Operating system type and version Windows 2003 Server
    Sugar Suite version Open Version 5.0.0b (Build 3150)
    Webserver type and version IIS 6
    PHP version 5.2.5
    MSSQL server version MSSQL 2005 express
    and it works fine.
    I suggest you to take a look at the installation manual (if you haven't done that yet);
    in particular, this SQL Error makes me think you need to read this.
    Let me know if it works.
    What do you think the cookie monster eats ?

  5. #5
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    553

    Default Re: MSSQL Error related to import of accounts

    Hi nvdp2002,

    Quote Originally Posted by nvdp2002
    SQL Error : Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier.
    I had similar problems with collation in MySQL - I don't know MSSQL, but I expect they will be very similar.

    I was trying to import directly from another database, not using Sugar UI import functions. Collation refers to how the sort order is defined for a character set and language including special characters specific to that language. In my case, I had different collation defined for two tables and I was trying to use an SQL query that selected data from one into another in one query and you can't do that if the two tables have different collations.

    This looks a littel different, but it sounds like you are trying to select from a Unicode collated data source directly and the tools don't allow this.

    If you are importing directly from a database table, check the defined collation using describe on the server. You can change the collation on a per table basis or if you're not comfortable mucking around that way, you can import in two steps, exporting the data to an intermediate table or text file, then importing separately.

    Hope that helps.

    Phil

  6. #6
    DragonflyMaster is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Rimini, Italy
    Posts
    1,421

    Default Re: MSSQL Error related to import of accounts

    Quote Originally Posted by datasponge
    If you are importing directly from a database table, check the defined collation using describe on the server. You can change the collation on a per table basis or if you're not comfortable mucking around that way, you can import in two steps, exporting the data to an intermediate table or text file, then importing separately.
    Hi datasponge,
    I don't think nvdp2002's case is about collation, because he gets that SQL error when clicking import button, that means a few steps before selecting a source to import data from.
    What do you think the cookie monster eats ?

  7. #7
    nvdp2002 is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    134

    Default Re: MSSQL Error related to import of accounts

    Hi Thanks for the help.

    Im following the instructions in the link you sent me. Ill let you know what happens soon.

  8. #8
    DragonflyMaster is offline Sugar Community Member
    Join Date
    Dec 2007
    Location
    Rimini, Italy
    Posts
    1,421

    Default Re: MSSQL Error related to import of accounts

    Quote Originally Posted by nvdp2002
    Hi Thanks for the help.

    Im following the instructions in the link you sent me. Ill let you know what happens soon.
    Ok, I'll wait for it
    What do you think the cookie monster eats ?

  9. #9
    nvdp2002 is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    134

    Default Re: MSSQL Error related to import of accounts

    Just a half way update.

    I have sugar installed on my own pc as a test. Just to see what would happen, i commented out extension=php_dblib.dll in php.ini and left extension=php_mssql.dll uncommented and Sugar works fine.

    Then i commented out extension=php_mssql.dll as discribed in the instructions, and then when i go to the index.php page i get the following message.

    Could not connect to server NASSER as nasser

  10. #10
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    553

    Default Re: MSSQL Error related to import of accounts

    Quote Originally Posted by DragonflyMaster
    Hi datasponge,
    I don't think nvdp2002's case is about collation, because he gets that SQL error when clicking import button, that means a few steps before selecting a source to import data from.
    I see what your trying to fix now. That'll teach me to not click on DragonflyMaster's links

    Good luck

    Phil

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Linking Contacts to Accounts During Import
    By andybesy in forum Help
    Replies: 12
    Last Post: 2012-05-21, 12:18 PM
  2. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  3. Duplicate Accounts after Import
    By David May in forum Help
    Replies: 7
    Last Post: 2006-07-26, 07:13 PM
  4. Import a single file into Both Contacts AND Accounts
    By tjadams in forum Feature Requests
    Replies: 0
    Last Post: 2006-05-22, 03:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •