473,385 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Search Problem

I using the follow query to search data in SQL SERVER EXPRESS
"SELECT Style_id as STYLE_ID, Style_id +' ' +Style_no as STYLEDIS FROM
STYLE for xml auto"

It will return the result in XML format.
when the number of return result larger than 750, the XML will some problem,
like lose the space:
example:
CORRECT: <STYLE STYLE_ID="749" NAME"XXXX"/>
FAIL: <STYLESTYLE_ID="749" NAME"XXXX"/>

How can tell me why this happen and how to solve it
Jul 24 '06 #1
2 1027
Hi,

I suggest you to post this concern in a SQL NG, you could get a better
explanation there.
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Jaye" <Ja**@discussions.microsoft.comwrote in message
news:BA**********************************@microsof t.com...
>I using the follow query to search data in SQL SERVER EXPRESS
"SELECT Style_id as STYLE_ID, Style_id +' ' +Style_no as STYLEDIS FROM
STYLE for xml auto"

It will return the result in XML format.
when the number of return result larger than 750, the XML will some
problem,
like lose the space:
example:
CORRECT: <STYLE STYLE_ID="749" NAME"XXXX"/>
FAIL: <STYLESTYLE_ID="749" NAME"XXXX"/>

How can tell me why this happen and how to solve it


Jul 24 '06 #2
Hi Jaye,

I believe this might be due to the way the sql client handles XML data when it's not consumed by an XmlReader. After a certain
number of characters the remainder gets cut off but I'm not sure if it will cause a single space to be lost in the middle of XML
output.

Try using an XmlReader, obtained from the SqlCommand.ExecuteXmlReader method, to solve your problem.

--
Dave Sexton

"Jaye" <Ja**@discussions.microsoft.comwrote in message news:BA**********************************@microsof t.com...
>I using the follow query to search data in SQL SERVER EXPRESS
"SELECT Style_id as STYLE_ID, Style_id +' ' +Style_no as STYLEDIS FROM
STYLE for xml auto"

It will return the result in XML format.
when the number of return result larger than 750, the XML will some problem,
like lose the space:
example:
CORRECT: <STYLE STYLE_ID="749" NAME"XXXX"/>
FAIL: <STYLESTYLE_ID="749" NAME"XXXX"/>

How can tell me why this happen and how to solve it


Jul 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Andy Jacobs | last post by:
Hi all I have a search function on a site of mine. At the moment, the content is delivered using this: <?php echo $row_Recordset1; ?> The search function goes through the table and...
4
by: Ken Fine | last post by:
I'm looking to find or create an ASP script that will take a string, examine it for a search term, and if it finds the search term in the string, return the highlighted search term along with the...
14
by: vic | last post by:
My manager wants me to develop a search program, that would work like they have it at edorado.com. She made up her requirements after having compared how search works at different websites, like...
2
by: Zambo via SQLMonster.com | last post by:
Hi! We have Sql Server 2000 in our server (NT 4). Our database have now about +350.000 rows with information of images. Table have lot of columns including information about image name, keywords,...
19
by: RAJASEKHAR KONDABALA | last post by:
Hi, Does anybody know what the fastest way is to "search for a value in a singly-linked list from its tail" as oposed to its head? I am talking about a non-circular singly-linked list, i.e.,...
32
by: tshad | last post by:
Can you do a search for more that one string in another string? Something like: someString.IndexOf("something1","something2","something3",0) or would you have to do something like: if...
1
by: jrs_14618 | last post by:
Hello All, This post is essentially a reply a previous post/thread here on this mailing.database.myodbc group titled: MySQL 4.0, FULL-TEXT Indexing and Search Arabic Data, Unicode I was...
3
by: Harry Haller | last post by:
What is the fastest way to search a client-side database? I have about 60-65 kb of data downloaded to the client which is present in 3 dynamically created list boxes. The boxes are filled from 3...
3
by: Richard S | last post by:
CODE: ASP.NET with C# DATABASE: ACCES alright, im having a problem, probably a small thing, but i cant figure out, nor find it in any other post, or on the internet realy (probably cuz i wouldnt...
4
by: MrWelfare | last post by:
Hi Everyone, I'm currently trying to follow an example I found in a book a while ago to try to create a spotlight (mac-like) search that filters results as one types. The script that I have works...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.