Trying to serialize C# object and store as XML Datatype in Sql Server 2005

using
if (Obj != null)
               MemoryStream stream = new MemoryStream();
               StreamWriter writer = new StreamWriter(stream);
               XmlSerializer x = new XmlSerializer(Obj.GetType());
               x.Serialize(writer, Obj);
               writer.Close();
               byte[] arr = stream.GetBuffer();
               return Encoding.UTF8.GetString(arr).Trim();
The object looks like
    public class CorporateBondSec : BaseSecurity
        public double coupon; // CPN
        public string couponType; // CPN_TYPE
        public int couponFreq; // CPN_FREQ
        public string floater; // FLOATER
        public int resetFreq; //REFIX_FREQ
        public DateTime resetDate; //NXT_REFIX_DT              
        public DateTime firstCpnDate; //FIRST_CPN_DT
XML looks like
'<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<CorporateBondSec xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n  <coupon>8</coupon>\r\n  <couponType>FIXED</couponType>\r\n  <couponFreq>2</couponFreq>\r\n  <floater>N</floater>\r\n  <resetFreq>0</resetFreq>\r\n  <resetDate>0001-01-01T00:00:00</resetDate>\r\n  <firstCpnDate>0001-01-01T00:00:00</firstCpnDate>\r\n</CorporateBondSec>'
Error from SQL
Msg 9413, Level 16, State 1, Procedure procSecuritiesInsert, Line 0
XML parsing: line 1, character 15, A string literal was expected
I have also tried
XmlSerializer x = new XmlSerializer(Obj.GetType());
System.Text.StringBuilder builder = new System.Text.StringBuilder();
x.Serialize(XmlWriter.Create(builder), Obj);
return builder.ToString();
That gives me an XML
'<?xml version=\"1.0\" encoding=\"utf-16\"?>
<CorporateBondSec xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">
<coupon>8</coupon>
<couponType>FIXED</couponType>
<couponFreq>2</couponFreq>
<floater>N</floater>
<resetFreq>0</resetFreq>
<resetDate>0001-01-01T00:00:00</resetDate>
<firstCpnDate>0001-01-01T00:00:00</firstCpnDate>
</CorporateBondSec>'
Error
Msg 9413, Level 16, State 1, Procedure procSecuritiesInsert, Line 0
XML parsing: line 1, character 15, A string literal was expected

Tony,
this is how your XML should look like.
Code Snippet
'<?xml version="1.0" encoding="utf-16"?>
<CorporateBondSec xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<coupon>8</coupon>
<couponType>FIXED</couponType>
<couponFreq>2</couponFreq>
<floater>N</floater>
<resetFreq>0</resetFreq>
<resetDate>0001-01-01T00:00:00</resetDate>
<firstCpnDate>0001-01-01T00:00:00</firstCpnDate>
</CorporateBondSec>'
I see you have a few extra '\' characters before double quotes. you need to remove them.

Similar Messages

  • Can you store an Image in MS SQL Server 2005

    Hello,
    How possible is it to store customer uploaded images to MS SQL Server 2005.
    Any examples and is there a down turn to retrieving the data from the DB?

    How possible is it to store customer uploaded images to MS
    SQL Server 2005.
    Yes, you can store binary data in a BLOB (varbinary) column. Google turns up tons of hits on "storing images in sql server 2005". For example
    http://www.databasejournal.com/features/mssql/article.php/3719221/Storing-Images-and-BLOB- files-in-SQL-Server.htm
    Any examples
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Images_05.html
    is there a down turn to retrieving the data from the DB?
    It requires more database storage. So it can bloat your database. Plus there is the resources involved in retrieving the images from the database. Usually, it is better to just store the file path and save the actual image files on the file system.

  • Issue : Types don't match between the anchor and the recursive part in column Sql server 2005

    My table structure as follow
    ID JID EntryDate RefundDate Comments Refund ActionBy
    3 41986 2013-12-17 12/24/2013 Cancel 0 Matt
    4 41986 2013-12-17 12/25/2013 done 1 Kelly
    5 41986 2013-12-17 12/24/2013 no 0 Smith
    i want this type of output after issuing sql
    JID EntryDate RefundDate Comments Refund ActionBy
    41986
    2013-12-17 12/24/2013 Cancel 0 Matt
    2013-12-17 12/25/2013 done 1 Kelly
    2013-12-17 12/24/2013 no 0 Smith
    just to get the above output i issued this sql as follows
    ;WITH Hierarchy AS
    -- Anchor
    SELECT TOP 1 JID
    ,NULL EntryDate
    ,NULL RefundDate
    ,NULL Comments
    ,NULL Refund
    ,NULL ActionBy
    ,nLevel = 1
    FROM refundrequested
    UNION ALL
    -- Recursive query
    SELECT E.JID
    ,E.EntryDate
    ,E.RefundDate
    ,E.Comments
    ,E.Refund
    ,E.ActionBy
    ,H.nLevel+1
    FROM refundrequested E
    JOIN Hierarchy H ON E.JID = H.JID
    SELECT *
    FROM Hierarchy
    ORDER BY JID, nLevel

    i did this way and the error vanished
    ;WITH Hierarchy AS
    SELECT TOP 1 JID
    ,CAST(NULL AS DATETIME) EntryDate
    ,CAST(NULL AS DATETIME) RefundDate
    ,CAST(NULL AS VARCHAR(MAX)) Comments
    ,CAST(NULL AS BIT) Refund
    ,CAST(NULL AS VARCHAR(30)) ActionBy
    ,nLevel = 1
    FROM refundrequested
    UNION ALL
    SELECT E.JID
    ,E.EntryDate
    ,E.RefundDate
    ,E.Comments
    ,E.Refund
    ,E.ActionBy
    ,H.nLevel+1
    FROM refundrequested E
    JOIN Hierarchy H ON E.JID = H.JID
    SELECT *
    FROM Hierarchy
    ORDER BY JID, nLevel
    but a new error is showing and that is The statement terminated. The maximum recursion 100 has been exhausted before statement completion. how to fix this problem? please guide me. thanks

  • Freetds and sql server 2005

    Hi guys
    I'm trying to create dblink from 10.2.0.4 database to sql server 2005 using freeTDS. Oracle database is on OEL5, ODBC is installed on another OEL5 machine with database gateway installed and listener started.
    So far everything woks fine. However it seems that something is wrong with character set conversion. I'm getting twice as much characters (character followed by a box character). I'm guessing this is 2 byte character set that has not been converted to 1 byte. Oracle DB has nls_characterset set to 'EE8ISO8859P2'.
    What setting should be set in init<>.ora for the DG4ODBC and freetds.conf?
    I also tried trial easysoft odbc driver and it works fine with these parameters in odbc.ini:
    # Convert UCS-2 encoded Unicode data to UTF-8
    ConvToUtf = Yes
    # Also do this conversion for data passed to Unicode ODBC function (SQLxxxW) calls
    ConvWToUtf = Yes

    I saw a similar behaviour using an Oracle unicode database. In this case try a unicode compliant tool like SQL Developer, connect to the Oracle db with the db link and select from the linked table.
    What is the source column data type and did you specify HS_LANGUAGE in the hsodbc init file?
    Edited by: kgronau on Nov 27, 2009 11:45 AM

  • I'm trying to hi-light objects and text in a pdf converted from a cadd drawing but can't do either?

    I'm trying to hi-light objects and text in a pdf converted from a cadd drawing but can't do either?

    Hi blueteam,
    Please check :http://www.wikihow.com/Highlight-Text-in-a-PDF-Document
    Regards,
    Rave

  • How to read the data from Excel file and Store in XML file using java

    Hi All,
    I got a problem with Excel file.
    My problem is how to read the data from Excel file and Store in XML file using java excel api.
    For getting the data from Excel file what are all the steps i need to follow to get the correct result.
    Any body can send me the code (with java code ,Excel sheet) to this mail id : [email protected]
    Thanks & Regards,
    Sreenu,
    [email protected],
    india,

    If you want someone to do your work, please have the courtesy to provide payment.
    http://www.rentacoder.com

  • How to use ADO(Microsoft ActiveX Data Objective 2.8 Library) to execute the store procedure of database in SQL server

    how to use ADO(Microsoft ActiveX Data Objective 2.8 Library) to execute the store procedure of database in SQL server?
    Does any body can tell me about this?
    thanks
    [email protected]

    Hi 
    Did you succeed to execute the procedure?
    How ?
    Thanks
    Shimon Zerbib

  • Creating and Using View Objects on JDev 10g against SQL Server 2005

    I'm currently working on this project on Jdeveloper against a SQL Server 2005 DB (I couldn't talk this people to migrate to Oracle... :-( ), and it's the first time I work with JDev against a database other than 10g.
    I had no problem making the connection, and I can see the DB in Conections->Databases, but when I create an app. module, and create entities and views and add them to the app. module to access them through the Data Controls, these don't work. I can see the view on the Data Controls, and when I drag them to my jspx page it shows the menu that let's me choose whether I want to create a table, or a selection, or a tree, but once I choose one, it does nothing.
    I've search all over the internet and haven't found a solution, so I come to this forum desperate for help, seriously.
    Please get in touch; if anyone knows another solution that doesn't involve not using JDev or SQL Server 2005, please let me know, because I basically need to have a few selectonechoice showing some data from a few tables.
    Thanks for reading this post, and hope to get help.
    Carlos.

    Hi,
    can you run the model in the ADF BC tester ? If this is possible the SQL Server doesn't seem to be the problem. Are you on JDeveloper 10.1.3.3? If not, just get this latest build
    Frank

  • OraOledb for 64-bit, Linked Servers and SQL Server 2005 issues

    Our environment is : SQL Server 2005, Windows Server 2003, 64-bit and 32-bit operating systems.
    Problem on 64-bit operating system box: (32-bit works fine).
    I am trying to access Oracle 10g database using linked server from our SQL Server 2005. In case of number fileds i got the following error:
    Invalid data for type "numeric".
    After going through one of the posting in this forumn i was able to resolve the problem by converting those column values to char while querying and then converting them back to numeric type on SQL server side.
    But today i ran into another problem. There is a VARCHAR2 column. I was able to retrieve the data yesterday for that column but today i am getting a blank recordset. If i exclude the colum from the query then i am getting all the rows.
    I am querying against a view and it has got a number of columns whose data type is VARCHAR2.
    Again the problem is on 64-bit operating system only. We have a 32-bit operating system on which i am able to retrieve the data including this column. I looked at the data and everything looks OK. No funny characters etc.
    I tried workarounds like using cast, to_char, checking for nulls etc., Nothing works.
    Any help is greately appreciated. Thanks.

    Did you find a resolution for this? We have similar problem. Set up a linked server in SQL 2006 to Oracle (running on Windows 64-bit) Linked server works and views I had set up were working but they added some new data in the Oracle test database I am using and now I get errors on one of the views.
    Error I am getting on the view is "Cannot initialize the data source object of OLE DB Provider "OraOLDEDB.ORacle" for the linked server"
    If I fine tune my queries to find the specific table or view that is at issue, then I get the error "inconsistent metadata for a column"

  • SQL Server 2005 replaced with SQL Server 2014 trying to connect front end Access as guest (read only ODBC)

    We have replaced a SQL Server 2005 with a SQL Server 2014 (new physical server.)  Have the new server set up to use SQL Server login OR Windows user login. Had old server connecting (for a particular DB) to front end Access (2010 or 2013) as guest for
    anyone logged into the Windows NT Network with a read only ODBC connection. Have the DB in the new server set to include guest as db_datareader (with only SELECT permission for the securables of each table and view being linked) but when any Windows user not
    specifically listed as a SQL DB user tries to use the front end they get an error of:
    Microsoft SQL Server Login
    Connection failed:
    SQL State: '28000'
    SQL Server Error: 18456
    [Microsoft][OCBC SQL Server Driver][SQL Server] Login failed for user {domain\user}.
    After closing that pop-up window a server login window appears. Of course, since the guest user is not specifically listed as a user in the DB that fails also. It seems like there should be a very simple solution to this, but I can't seem to find it. I want
    to allow anyone logged in on the Windows system (locally) to be able to open the MS Access file (on their work station machine) and run their own (read only; select) queries on the SQL Server database. Any suggestions?
    Thanks a billion in advance ----

    Thanks for the response Olaf. I have now spent weeks researching this. I realize that using the guest account in most situations is not advised. As mentioned, I have restricted the guest account to allow the db_datareader role only, and have explicitly denied
    all other roles, as well as allowing select only, and still have no access for the guest account.
    The suggested fix in the second link you provided, of using Windows groups is not plausible for my situation either. We are a scientific field research institution, with a few long term users and lots of users that may have Windows accounts for a few months,
    and then they are gone. It would be a nightmare for the network tech to try to keep a group account up to date, and we need to give access (read only, of course) to anyone logged into the system. Realize that the ONLY access of any kind to this database is
    thru MS Access ACCDB, using a (by default) read only OCDB connection.
    This type of access is used particularly because researchers need to be able to set up their own queries, and the MS Access query interface is particularly convenient for people who are not themselves SQL experts, yet are trying to get some very advanced
    levels of output. Putting the database online is not practical because then we are back to the need for a comprehensive query interface, and just picking up general subsets of the data online (from a basic web page search feature) would be out of the question,
    since the result set would involve hundreds of thousands if not millions of records.
    So - that said - what exactly would you suggest, assuming we don't have the funds to buy a whole new system, and have spent plenty of money with Microsoft's Enterprise level MS Office so that all work stations have MS Access, and Microsoft's SQL Server,
    as well as running our network on Microsoft's network software.

  • Try to do my first XML Schema in SQL Server 2012 Mangement Studio(SSMS2012)-How to execute the xsd and xml files in SSMS2012?

    Hi all,
    I learmed the basic stuff of XML, DTD, DOM, etc. long time ago. Now, I came back to resume my XML journey and try to learn the XML Schemas, XPath and XQuery. I have Microsoft SQL Server 2012 Management Studio (SSMS2012) in our computer network. From
    Page 221 of the old Book "Beginning XML 2nd Edition" written by David Hunter, et.al., (published by Wrox), I copied the name5.xsd and name5.xml :
    <?xml version="1.0"?>
    <schema xmlns=http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.wrox.com/name" xmlns:target="http://www.wrox.com/name"
    elementFormDefault="qualified">
    <element name="name">
    <complexType>
    <sequence>
    <element name="first" type="string"/>
    <element name="middle" type="string"/>
    <element name="last" type="string"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    <?xml version="1.0"?>
    <name
    xmlns=http://www.wrox.com/name"
    xmlns:xsi="http://www.wrox.org/2001XMLSchema-instance"
    xsi:schemaLocation="http://www.wrox.com/name name5.xsd"
    title="Mr.">
    <first>John</first>
    <middle>Frizgerald</middle>
    <last>Doe</last>
    </name>
    How can I execute these two files in my SSMS2012 for doing my first XML Schema trial?
    Please kindly help, advise and respond.
    Thanks in advance,
    Scott Chang

    Hi Eric Zhang, Thanks for your nice response.
    1) I saw the CREATE XML SCHEMA COLLECTION (Transact-SQL) and tried  its first example "Create XML schema collection in the database" in my SQL Server 2012 Management Studio (SSMS2012):
    -- Create a sample database in which to load the XML schema collection.
    -- Copied this set of code stsments from Microsoft Library (ms176009)
    -- ColesMS12_20a.sql (saved in C:/Documents/SQL Server Management Studio)
    -- 19 March 2015 1145 AM
    CREATE DATABASE SampleDB
    GO
    USE SampleDB
    GO
    CREATE XML SCHEMA COLLECTION ManuInstructionsSchemaCollection AS
    N'<?xml version="1.0" encoding="UTF-16"?>
    <xsd:schema targetNamespace="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ProductModelManuInstructions"
    xmlns ="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ProductModelManuInstructions"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
    <xsd:complexType name="StepType" mixed="true" >
    <xsd:choice minOccurs="0" maxOccurs="unbounded" >
    <xsd:element name="tool" type="xsd:string" />
    <xsd:element name="material" type="xsd:string" />
    <xsd:element name="blueprint" type="xsd:string" />
    <xsd:element name="specs" type="xsd:string" />
    <xsd:element name="diag" type="xsd:string" />
    </xsd:choice>
    </xsd:complexType>
    <xsd:element name="root">
    <xsd:complexType mixed="true">
    <xsd:sequence>
    <xsd:element name="Location" minOccurs="1" maxOccurs="unbounded">
    <xsd:complexType mixed="true">
    <xsd:sequence>
    <xsd:element name="step" type="StepType" minOccurs="1" maxOccurs="unbounded" />
    </xsd:sequence>
    <xsd:attribute name="LocationID" type="xsd:integer" use="required"/>
    <xsd:attribute name="SetupHours" type="xsd:decimal" use="optional"/>
    <xsd:attribute name="MachineHours" type="xsd:decimal" use="optional"/>
    <xsd:attribute name="LaborHours" type="xsd:decimal" use="optional"/>
    <xsd:attribute name="LotSize" type="xsd:decimal" use="optional"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>' ;
    GO
    -- Verify - list of collections in the database.
    select *
    from sys.xml_schema_collections
    -- Verify - list of namespaces in the database.
    select name
    from sys.xml_schema_namespaces
    -- Use it. Create a typed xml variable. Note collection name specified.
    DECLARE @x xml (ManuInstructionsSchemaCollection)
    GO
    --Or create a typed xml column.
    CREATE TABLE T (
    i int primary key,
    x xml (ManuInstructionsSchemaCollection))
    GO
    -- ////The following code statements are not used in order to create SampleDB
    -- Clean up
    ---DROP TABLE T
    ---GO
    ---DROP XML SCHEMA COLLECTION ManuInstructionsSchemaCollection
    ---Go
    ---USE Master
    ---GO
    ---DROP DATABASE SampleDB
    It worked and I got the following results:
    1 4 NULL sys 2009-04-13 12:59:13.390 2012-02-10 20:16:02.097
    65536 1 NULL ManuInstructionsSchemaCollection 2015-03-19 11:47:17.660 2015-03-19 11:47:17.660
    http://www.w3.org/2001/XMLSchema
    http://schemas.microsoft.com/sqlserver/2004/sqltypes
    http://www.w3.org/XML/1998/namespace
    http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ProductModelManuInstructions
    But, I don't undertand (i) what SCHEMA COECTION is, (ii) what <xsd:schema targetNamespace=.....</xsd:complexType> are, (iii) How I can specify my "project specific" schema in the Microsoft SCHEMA COLLECTION to check my xml file.
    2) I dived in the XQuery programmimng in SSMS2012 in the last few weeks. I used the examles of Ad-Hoc XML File Query by Seth Delconte (in
    httpS://www.simple-talk.com/content/print.aspx?article=1756) in my SSMS2012. They worked. But I don't understand the (i) Importing XML data using a function, (ii) Using the XQuery contans()
    function to find substrings, (iii)Efficiency comparisons in the article.
    Please kindly help me in enlightening me to resolve the difficulties listed in 1) and 2).
    Thanks,
    Scott Chang

  • How to integrate from MS SQL SERVER 2005 and Flatfile to Oracle 10g.

    Hi
    I am new to ODI. I am trying to load sample data from MS SQL Server 2005 and Flatfile to Oracle 10g.
    1. I have created three models.
    1-1. SQL2005 (SRC_CUSTOMER table)
    1-2. Flatfile (SRC_AGE_GROUP.txt & SRC_SALES_PERSON.txt)
    1-3. Oracle 10g (TRG_CUSTOMER table)
    You may know I got those environments from the ODI DEMO environment.
    2. I could able to reverse the tables also.
    3. I have created an interface which contains source table (from MSSQL 2005), Flatfile and target table from ORACLE model.
    4. I have imported the knowledge modules. But I am confusing in selecting the knowledge modules to source and target tables.
    I've selected LKM File to SQL for flatfile model.
    I've also selected LKM SQL to SQL for MSSQL 2005 model and IKM Oracle Incremental Update for the target table (ORACLE).
    I've also implemented the interface that I created. It worked without errors. But there is no data in target table which is TRG_CUSTOMER.
    I really would like to know what happened and what the problems are.
    You can email me [email protected]
    Thanks in advance
    Jason Lee

    what did give for SRC_AGE_GROUP SRC_CUSTOMER join condition
    if it is
    (SRC_CUSTOMER.AGE=SRC_AGE_GROUP.AGE_MIN) AND SRC_CUSTOMER.AGE=SRC_AGE_GROUP.AGE_MAX
    give it as
    (SRC_CUSTOMER.AGE>SRC_AGE_GROUP.AGE_MIN) AND SRC_CUSTOMER.AGE<SRC_AGE_GROUP.AGE_MAX

  • Migration from of database and app from SQL server 2005 to Oracle 10g

    Hello Every body,
    Lately, I have been requested to migrate one inhouse developed hub application from SQL server 2005 to Oracle 10g. The objective is to move application and also the database to Oracel 10g.
    Here is the current platform:
    OS Win 2008 64 bit
    JDK 1.4.2
    JBoss 3.2.5
    EJB 2.1
    My question is what kind of issues you guys see in above upgrade. As far I know, Schema and Database migration can be done by Oracle workbench. Oracle 10g supports JDK 1.4. Oracle 10g also supports EJB 2.1.
    Anything, I need to take into consideration or any risks or problems. I would like to list down all the risks, and accordingly, I am thinking of start the upgrade.
    Thanks in advance.
    Regards,
    Zeeshan Qureshi

    In general the Java/J2EE application needs work in the following categories:
    1. Connection Settings: Use Oracle JDBC drivers, create new data sources, connection pools and what not. Disable AUTOCOMMIT for Oracle JDBC Connections.
    2. For EJBs, you should regenerate the entity beans because some object names/column names might have changed in oracle.
    3. Any custom SQL that is in use in the EJBs will have to be ported to Oracle just as you would do in stored procedures and other applications.
    4. For Java front-ends, if you are using callouts to stored procedures and expecting result sets then they will require some changes. You need to modify the stored procedure call signature to include the REF CURSOR variables and process them.
    5. Changes to any SQL Server specific database functions manipulating character/date data will be required.
    6. CLOB/BLOB/XML apis are different across databases so if you are using those then focus on them as well.
    7. Retreiving Auto/generated keys from database also may need changes from what I have seen.
    Hope this helps..
    Regards
    Prakash
    NOTE: Not sure why but my posts from yesterday are not visible today. Even worse is that I can see them in one browser (FireFox) but not in Internet explorer. Crazy browser day I am having.

  • Sql server 2005, R/3 4.6c and compability mode

    Hi
    I doing upgrade from 4.6c --> ECC 6.0 on sql server 2005. And i get followin error
    SCRIPT MSSINCHK
    =================
    Msg 468, Level 16, State 9, Server MEDIASP10, Line 55
    Cannot resolve the collation conflict between "SQL_Latin1_General_CP850_BIN" and
    "SQL_Latin1_General_CP850_BIN2" in the equal to operation.
    Msg 468, Level 16, State 9, Server MEDIASP10, Line 66
    Cannot resolve the collation conflict between "SQL_Latin1_General_CP850_BIN" and
    "SQL_Latin1_General_CP850_BIN2" in the equal to operation.
    Execution completed successfully
    I have checked that collation order is correct.
    I think that problem that somehow sql server's compability mode is recognized wrong (sql server 2000 insted sql server 2005).
    Any colution on this ?
    Br, Juha Niemi

    Hi there,
    I'm running into this same issue when trying to run PREPARE for the 4.6c to ERP/ECC 6.0 upgrade in phase INITPUT_PRE.  I ran several of the queries mentioned in this thread and discovered that the database and instance are both BIN2, and 116230 columns are BIN2, but another 319398 columns are still BIN.  Without reverting the database (eek, somehow) back to MSSQL2000 and rerunning instcoll.exe (again, I already did once) or building an alter table query for each one that is out of spec (which according to MSDN won't work on certain cols anyway), how can this be resolved?
    for my SID database I have the following column types in count:
    SQL_Latin1_General_CP850_BIN2     116230
    Latin1_General_BIN     29
    NULL     58467
    Latin1_General_CI_AS_KS_WS     11
    SQL_Latin1_General_CP850_BIN     319398
    But the databases are all running BIN2 as such:
    Server     SQL_Latin1_General_CP850_BIN2
    Master     SQL_Latin1_General_CP850_BIN2
    Model     SQL_Latin1_General_CP850_BIN2
    TempDB     SQL_Latin1_General_CP850_BIN2
    SID     SQL_Latin1_General_CP850_BIN2
    The checkdb procedure came back with no errors:
    CHECKDB found 0 allocation errors and 0 consistency errors in database 'PD1'.
    DBCC execution completed. If DBCC printed error messages, contact your system administrator.
    And the system appears to be functioning correctly, except that the Upgrade Assistant won't let me continue with the mismatched column collation types.
    Suggestions?  I noticed there was never a resolution posted.
    Thanks,
    --ben

  • SQL Server 2005 and ColdFusion 7

    Hi all,
    I am using SQL Server 2005 and ColdFusion 7 (standalone) on
    XP 64 Bit. I was using the exact setup a couple of weeks ago, but
    had to reinstall my O/S due to hardware problems so am back to the
    beginning. I remember having a nightmare setting datasources up in
    the past, but did manage to find a solution.
    I have tried the following:
    SQL has TCP/IP Enabled
    SQL is set to Mixed Authentication
    SQL has a login set to the same as my Windows Username and
    password
    My database has a user (dbo) by the same name as the login
    set in SQL
    When I add a datasource in the administrator I enter the
    windows username and password (I have tried without either as
    well), the server name as localhost and the port as the default
    1433.
    I always get the following error:
    Connection verification failed for data source: DATABASENAME
    java.sql.SQLException: [Macromedia][SQLServer JDBC
    Driver]Error establishing socket. Connection refused: connect
    The root cause was that: java.sql.SQLException:
    [Macromedia][SQLServer JDBC Driver]Error establishing socket.
    Connection refused: connect
    Can someone offer any advice? This is driving me proper nuts.
    TIA,
    Paul

    when i did it, i had to update my jdbc driver
    http://msdn.microsoft.com/data/ref/jdbc/

Maybe you are looking for

  • Reg: Object class stored in CDHDR , CDPOS tables

    Hi Guys, we have released blocked Invoice document using transaction MRBR, it is released. we have developed manually zprogram all the invoices which are released manually. but when execute we were unable to get details manually released documents. H

  • 'You are not connected to the internet'...oh yes I am

    I am running a late 2007 iMac with 10.5.1. Things had all been going very smoothly but a while ago (not sure how long...maybe a month?) when using Safari and I try to access a site I get the message that I am not connected to the internet. There does

  • Use of Access database

    Hi, I want to write a application that uses an Access Database. Actually I want to write data to and read data from a Database with Labview. Does anyone knows a library to control a Access Database. Or any other solutions. Davy

  • How do i fix the "web form must capture customer name and email address" error?

    Hi all, I have a webform that is submitting securely to the bc servers. I get the response: {"SystemMessage": { "success": False, "message": "ERROR: An error occurred. Your web form must capture customer name and email address. Please fix this issue

  • How do I use snapshot tool on Surface 2 (RT)

    I have begun to use my Surface 2 (RT) to put together my powerpoint presentations for work.  I am constantly using PDF files and using adobe snapshot tool to cut and paste pictures and charts from the PDF files.  On the surface, the only adobe versio