SQL Adapter and Char datatype?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > SQL Adapter and Char datatype?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    SQL Adapter and Char datatype?  
Johanna Rossi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-26-04 10:35 AM

Hi All!

Why can't I use SQL Adapters receive function with SQL datatype Char?
I tried using updategram and Stored Proc but both failed giving an error
message.. something like XML Schema doesn't support data type Char...

I also tried Select clause with convert command like tihis "SELECT
CONVERT(varchar(xx), column) AS ColumnName FROM table for xml auto" in both
the updategram and the stored procedure. Both failed.

So my question is, how to read a table with char datatype information?

Thanks in advance,
Johanna







[ Post a follow-up to this message ]



    Re: SQL Adapter and Char datatype?  
Johanna Rossi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-26-04 02:37 PM

Has this got someting to do with the SQL Server Service Pack level?
The remote server I'm trying to read from succees to insert data with SQL
adapter but fails on read attemps unless the data is not in char format.
I'm talking about BTS2004 native SQL Adapter here..


"Johanna Rossi" <johanna.rossi@kotiportti.fi.invalid> wrote in message
news:enO0Vz2KEHA.3596@tk2msftngp13.phx.gbl...
> Hi All!
>
> Why can't I use SQL Adapters receive function with SQL datatype Char?
> I tried using updategram and Stored Proc but both failed giving an error
> message.. something like XML Schema doesn't support data type Char...
>
> I also tried Select clause with convert command like tihis "SELECT
> CONVERT(varchar(xx), column) AS ColumnName FROM table for xml auto" in
both
> the updategram and the stored procedure. Both failed.
>
> So my question is, how to read a table with char datatype information?
>
> Thanks in advance,
> Johanna
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.668 / Virus Database: 430 - Release Date: 24.4.2004







[ Post a follow-up to this message ]



    Re: SQL Adapter and Char datatype?  
Matt Milner


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-27-04 04:35 AM

just change your schema from char to xs:string.  This should fix it up for
you.  If you want, you can use the restriction feature to limit the size of
the string.

Matt
"Johanna Rossi" <johanna.rossi@kotiportti.fi.invalid> wrote in message
news:eKSUL64KEHA.2236@TK2MSFTNGP09.phx.gbl...
> Has this got someting to do with the SQL Server Service Pack level?
> The remote server I'm trying to read from succees to insert data with SQL
> adapter but fails on read attemps unless the data is not in char format.
> I'm talking about BTS2004 native SQL Adapter here..
>
>
> "Johanna Rossi" <johanna.rossi@kotiportti.fi.invalid> wrote in message
> news:enO0Vz2KEHA.3596@tk2msftngp13.phx.gbl... 
> both 
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.668 / Virus Database: 430 - Release Date: 24.4.2004
>
>







[ Post a follow-up to this message ]



    Re: SQL Adapter and Char datatype?  
Johanna Rossi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-27-04 09:35 AM


Hmm.. I haven't get that far with the adapter wizard. After finishing the
select clause, the last part of the wizard, it fails so the schema get never
created.



"Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message
news:#uGIfWALEHA.1348@TK2MSFTNGP12.phx.gbl...
> just change your schema from char to xs:string.  This should fix it up for
> you.  If you want, you can use the restriction feature to limit the size
of
> the string.
>
> Matt
> "Johanna Rossi" <johanna.rossi@kotiportti.fi.invalid> wrote in message
> news:eKSUL64KEHA.2236@TK2MSFTNGP09.phx.gbl... 
SQL[vbcol=seagreen] 
error[vbcol=seagreen] 
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.668 / Virus Database: 430 - Release Date: 24.4.2004







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:09 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register