473,465 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Row filtering

Hi all,
I am having a dataset which is Reading from the XML file. The Dataset has a
table Users with Scheema (US_ID, US_Name). I am attempting to add new user to
this table. for this I want to fetch the max US_ID , increment by One and add
to table
The code is
maxID = dsUser.Tables(0).Select("US_ID=MAX(US_ID)")
The issue I am facing is that I am not getting proper maxID as US_ID is
interpreted as char while reading.
I also tried using the cast expression but I m getting syntax error.

any suggestion will be highly appreciated...

Cheers,
siaj
Nov 19 '05 #1
7 1360
Have you tried converting it to a number?

Let me explain the difference between casting and converting. Casting is
done when a data type IS the type being cast to. IOW, the data type is
either the target type or it is inherited from the target type. You can cast
a System.Web.UI.Page as a System.Web.UI.Control because it inherits
System.Web.UI.Control. It IS a System.Web.UI.Control.

Converting is done when the type IS NOT the same data type as the target
type. Strings, for example, can not be CAST as integers; they are not in any
sense integers. However, they can, if they are strings of numbers, be
CONVERTED to integers.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"siaj" <si**@discussions.microsoft.com> wrote in message
news:EB**********************************@microsof t.com...
Hi all,
I am having a dataset which is Reading from the XML file. The Dataset has
a
table Users with Scheema (US_ID, US_Name). I am attempting to add new user
to
this table. for this I want to fetch the max US_ID , increment by One and
add
to table
The code is
maxID = dsUser.Tables(0).Select("US_ID=MAX(US_ID)")
The issue I am facing is that I am not getting proper maxID as US_ID is
interpreted as char while reading.
I also tried using the cast expression but I m getting syntax error.

any suggestion will be highly appreciated...

Cheers,
siaj

Nov 19 '05 #2
Thanks for the Reply but casting works in SQL server atleast
for eg :
USE foodMart
GO
SELECT * FROM salary WHERE employee_ID =(SELECT MAX (CAST(employee_ID as
int)) FROM salary)

Although I had tried using convert also but it does not helps ...

Cheers,
siaj

"Kevin Spencer" wrote:
Have you tried converting it to a number?

Let me explain the difference between casting and converting. Casting is
done when a data type IS the type being cast to. IOW, the data type is
either the target type or it is inherited from the target type. You can cast
a System.Web.UI.Page as a System.Web.UI.Control because it inherits
System.Web.UI.Control. It IS a System.Web.UI.Control.

Converting is done when the type IS NOT the same data type as the target
type. Strings, for example, can not be CAST as integers; they are not in any
sense integers. However, they can, if they are strings of numbers, be
CONVERTED to integers.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"siaj" <si**@discussions.microsoft.com> wrote in message
news:EB**********************************@microsof t.com...
Hi all,
I am having a dataset which is Reading from the XML file. The Dataset has
a
table Users with Scheema (US_ID, US_Name). I am attempting to add new user
to
this table. for this I want to fetch the max US_ID , increment by One and
add
to table
The code is
maxID = dsUser.Tables(0).Select("US_ID=MAX(US_ID)")
The issue I am facing is that I am not getting proper maxID as US_ID is
interpreted as char while reading.
I also tried using the cast expression but I m getting syntax error.

any suggestion will be highly appreciated...

Cheers,
siaj


Nov 19 '05 #3
> Thanks for the Reply but casting works in SQL server atleast

Casting works for fishing too, but I wouldn't try to use that sort of
casting in a .Net application.

Just because the same term is used, and even has a -similar- meaning in 2
different software packages doesn't mean that it IS the same. Using CAST in
SQL Server is NOT the same as casting in a .Net app. Apples and oranges are
both fruit, but they sure don't taste the same!

Re-read my explanation of casting and converting in .Net.

I would attempt to help you more, but you've provided no new information.
All you've said is that you "tried" some unknown thing ("Using Convert" -
whatever that means in specific terms), and that, for some reason, "it does
not helps." For example, if you went to an auto parts store, and told them
you needed a carbeurator, which they sold to you, and you went home and
tried to install it, and it didn't work, they would want to know HOW you
tried to install it, and what specifically happened when you did (how did
your car behave?). For example, you might have tried to bolt it to your
steering wheel, for all they know.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"siaj" <si**@discussions.microsoft.com> wrote in message
news:46**********************************@microsof t.com...
Thanks for the Reply but casting works in SQL server atleast
for eg :
USE foodMart
GO
SELECT * FROM salary WHERE employee_ID =(SELECT MAX (CAST(employee_ID as
int)) FROM salary)

Although I had tried using convert also but it does not helps ...

Cheers,
siaj

"Kevin Spencer" wrote:
Have you tried converting it to a number?

Let me explain the difference between casting and converting. Casting is
done when a data type IS the type being cast to. IOW, the data type is
either the target type or it is inherited from the target type. You can
cast
a System.Web.UI.Page as a System.Web.UI.Control because it inherits
System.Web.UI.Control. It IS a System.Web.UI.Control.

Converting is done when the type IS NOT the same data type as the target
type. Strings, for example, can not be CAST as integers; they are not in
any
sense integers. However, they can, if they are strings of numbers, be
CONVERTED to integers.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"siaj" <si**@discussions.microsoft.com> wrote in message
news:EB**********************************@microsof t.com...
> Hi all,
> I am having a dataset which is Reading from the XML file. The Dataset
> has
> a
> table Users with Scheema (US_ID, US_Name). I am attempting to add new
> user
> to
> this table. for this I want to fetch the max US_ID , increment by One
> and
> add
> to table
> The code is
> maxID = dsUser.Tables(0).Select("US_ID=MAX(US_ID)")
> The issue I am facing is that I am not getting proper maxID as US_ID is
> interpreted as char while reading.
> I also tried using the cast expression but I m getting syntax error.
>
> any suggestion will be highly appreciated...
>
> Cheers,
> siaj
>
>


Nov 19 '05 #4
Thanks for ur time and enlightening on fishing and AutoParts ... I was
looking for some enlightening on some .net Issue..
Meanwhile I tried the Rowfiltering as
axIDRow = dsUser.Tables(0).Select("US_ID=(SELECT MAX (CONVERT(int,US_ID))
FROM Users)")

It gives Error
Syntax error: Missing operand after 'MAX' operator.

cheers,
siaj
"Kevin Spencer" wrote:
Thanks for the Reply but casting works in SQL server atleast


Casting works for fishing too, but I wouldn't try to use that sort of
casting in a .Net application.

Just because the same term is used, and even has a -similar- meaning in 2
different software packages doesn't mean that it IS the same. Using CAST in
SQL Server is NOT the same as casting in a .Net app. Apples and oranges are
both fruit, but they sure don't taste the same!

Re-read my explanation of casting and converting in .Net.

I would attempt to help you more, but you've provided no new information.
All you've said is that you "tried" some unknown thing ("Using Convert" -
whatever that means in specific terms), and that, for some reason, "it does
not helps." For example, if you went to an auto parts store, and told them
you needed a carbeurator, which they sold to you, and you went home and
tried to install it, and it didn't work, they would want to know HOW you
tried to install it, and what specifically happened when you did (how did
your car behave?). For example, you might have tried to bolt it to your
steering wheel, for all they know.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"siaj" <si**@discussions.microsoft.com> wrote in message
news:46**********************************@microsof t.com...
Thanks for the Reply but casting works in SQL server atleast
for eg :
USE foodMart
GO
SELECT * FROM salary WHERE employee_ID =(SELECT MAX (CAST(employee_ID as
int)) FROM salary)

Although I had tried using convert also but it does not helps ...

Cheers,
siaj

"Kevin Spencer" wrote:
Have you tried converting it to a number?

Let me explain the difference between casting and converting. Casting is
done when a data type IS the type being cast to. IOW, the data type is
either the target type or it is inherited from the target type. You can
cast
a System.Web.UI.Page as a System.Web.UI.Control because it inherits
System.Web.UI.Control. It IS a System.Web.UI.Control.

Converting is done when the type IS NOT the same data type as the target
type. Strings, for example, can not be CAST as integers; they are not in
any
sense integers. However, they can, if they are strings of numbers, be
CONVERTED to integers.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"siaj" <si**@discussions.microsoft.com> wrote in message
news:EB**********************************@microsof t.com...
> Hi all,
> I am having a dataset which is Reading from the XML file. The Dataset
> has
> a
> table Users with Scheema (US_ID, US_Name). I am attempting to add new
> user
> to
> this table. for this I want to fetch the max US_ID , increment by One
> and
> add
> to table
> The code is
> maxID = dsUser.Tables(0).Select("US_ID=MAX(US_ID)")
> The issue I am facing is that I am not getting proper maxID as US_ID is
> interpreted as char while reading.
> I also tried using the cast expression but I m getting syntax error.
>
> any suggestion will be highly appreciated...
>
> Cheers,
> siaj
>
>


Nov 19 '05 #5
> Thanks for ur time and enlightening on fishing and AutoParts ... I was
looking for some enlightening on some .net Issue..
It's a shame that you thought I was talking about fishing and auto parts. I
was giving you enlightenment on .Net issues by using analogies, but
apparently you missed it.

In fact, you MUST have missed it, because you're still trying to treat .Net
executable code and classes as if they were SQL Server. Although the
Expression used in a DataTable.Select() method is a string, just like SQL,
it is NOT SQL. You just tried to bolt your new carbeurator to the steering
column. You're trying to make apple sauce out of orange juice.

The following reference concerning the Expression property of a DataColumn
is the same rules as the expression you use with the Select() method of a
DataTable (in fact I found it by looking up the Select() method of a
DataTable), so don't go there and assume I am pointing you in the wrong
direction:

http://msdn.microsoft.com/library/de...ssiontopic.asp

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"siaj" <si**@discussions.microsoft.com> wrote in message
news:B0**********************************@microsof t.com... Thanks for ur time and enlightening on fishing and AutoParts ... I was
looking for some enlightening on some .net Issue..
Meanwhile I tried the Rowfiltering as
axIDRow = dsUser.Tables(0).Select("US_ID=(SELECT MAX (CONVERT(int,US_ID))
FROM Users)")

It gives Error
Syntax error: Missing operand after 'MAX' operator.

cheers,
siaj
"Kevin Spencer" wrote:
> Thanks for the Reply but casting works in SQL server atleast


Casting works for fishing too, but I wouldn't try to use that sort of
casting in a .Net application.

Just because the same term is used, and even has a -similar- meaning in 2
different software packages doesn't mean that it IS the same. Using CAST
in
SQL Server is NOT the same as casting in a .Net app. Apples and oranges
are
both fruit, but they sure don't taste the same!

Re-read my explanation of casting and converting in .Net.

I would attempt to help you more, but you've provided no new information.
All you've said is that you "tried" some unknown thing ("Using Convert" -
whatever that means in specific terms), and that, for some reason, "it
does
not helps." For example, if you went to an auto parts store, and told
them
you needed a carbeurator, which they sold to you, and you went home and
tried to install it, and it didn't work, they would want to know HOW you
tried to install it, and what specifically happened when you did (how did
your car behave?). For example, you might have tried to bolt it to your
steering wheel, for all they know.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"siaj" <si**@discussions.microsoft.com> wrote in message
news:46**********************************@microsof t.com...
> Thanks for the Reply but casting works in SQL server atleast
> for eg :
> USE foodMart
> GO
> SELECT * FROM salary WHERE employee_ID =(SELECT MAX (CAST(employee_ID
> as
> int)) FROM salary)
>
> Although I had tried using convert also but it does not helps ...
>
> Cheers,
> siaj
>
> "Kevin Spencer" wrote:
>
>> Have you tried converting it to a number?
>>
>> Let me explain the difference between casting and converting. Casting
>> is
>> done when a data type IS the type being cast to. IOW, the data type is
>> either the target type or it is inherited from the target type. You
>> can
>> cast
>> a System.Web.UI.Page as a System.Web.UI.Control because it inherits
>> System.Web.UI.Control. It IS a System.Web.UI.Control.
>>
>> Converting is done when the type IS NOT the same data type as the
>> target
>> type. Strings, for example, can not be CAST as integers; they are not
>> in
>> any
>> sense integers. However, they can, if they are strings of numbers, be
>> CONVERTED to integers.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> ..Net Developer
>> Neither a follower nor a lender be.
>>
>> "siaj" <si**@discussions.microsoft.com> wrote in message
>> news:EB**********************************@microsof t.com...
>> > Hi all,
>> > I am having a dataset which is Reading from the XML file. The
>> > Dataset
>> > has
>> > a
>> > table Users with Scheema (US_ID, US_Name). I am attempting to add
>> > new
>> > user
>> > to
>> > this table. for this I want to fetch the max US_ID , increment by
>> > One
>> > and
>> > add
>> > to table
>> > The code is
>> > maxID = dsUser.Tables(0).Select("US_ID=MAX(US_ID)")
>> > The issue I am facing is that I am not getting proper maxID as US_ID
>> > is
>> > interpreted as char while reading.
>> > I also tried using the cast expression but I m getting syntax
>> > error.
>> >
>> > any suggestion will be highly appreciated...
>> >
>> > Cheers,
>> > siaj
>> >
>> >
>>
>>
>>


Nov 19 '05 #6
Kevin, I appreciate ur helping attitude and I have gone thru the links u
provided but the analogies and words like "shame" were definately not in
good taste for aspirants of .Net. Phrases like this many times takes out the
essence out of the good solutions.
Usergroups are meant to help and encourage people not bashing and shaming
people....

Thanks for all....
siaj
"Kevin Spencer" wrote:
Thanks for ur time and enlightening on fishing and AutoParts ... I was
looking for some enlightening on some .net Issue..


It's a shame that you thought I was talking about fishing and auto parts. I
was giving you enlightenment on .Net issues by using analogies, but
apparently you missed it.

In fact, you MUST have missed it, because you're still trying to treat .Net
executable code and classes as if they were SQL Server. Although the
Expression used in a DataTable.Select() method is a string, just like SQL,
it is NOT SQL. You just tried to bolt your new carbeurator to the steering
column. You're trying to make apple sauce out of orange juice.

The following reference concerning the Expression property of a DataColumn
is the same rules as the expression you use with the Select() method of a
DataTable (in fact I found it by looking up the Select() method of a
DataTable), so don't go there and assume I am pointing you in the wrong
direction:

http://msdn.microsoft.com/library/de...ssiontopic.asp

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"siaj" <si**@discussions.microsoft.com> wrote in message
news:B0**********************************@microsof t.com...
Thanks for ur time and enlightening on fishing and AutoParts ... I was
looking for some enlightening on some .net Issue..
Meanwhile I tried the Rowfiltering as
axIDRow = dsUser.Tables(0).Select("US_ID=(SELECT MAX (CONVERT(int,US_ID))
FROM Users)")

It gives Error
Syntax error: Missing operand after 'MAX' operator.

cheers,
siaj
"Kevin Spencer" wrote:
> Thanks for the Reply but casting works in SQL server atleast

Casting works for fishing too, but I wouldn't try to use that sort of
casting in a .Net application.

Just because the same term is used, and even has a -similar- meaning in 2
different software packages doesn't mean that it IS the same. Using CAST
in
SQL Server is NOT the same as casting in a .Net app. Apples and oranges
are
both fruit, but they sure don't taste the same!

Re-read my explanation of casting and converting in .Net.

I would attempt to help you more, but you've provided no new information.
All you've said is that you "tried" some unknown thing ("Using Convert" -
whatever that means in specific terms), and that, for some reason, "it
does
not helps." For example, if you went to an auto parts store, and told
them
you needed a carbeurator, which they sold to you, and you went home and
tried to install it, and it didn't work, they would want to know HOW you
tried to install it, and what specifically happened when you did (how did
your car behave?). For example, you might have tried to bolt it to your
steering wheel, for all they know.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"siaj" <si**@discussions.microsoft.com> wrote in message
news:46**********************************@microsof t.com...
> Thanks for the Reply but casting works in SQL server atleast
> for eg :
> USE foodMart
> GO
> SELECT * FROM salary WHERE employee_ID =(SELECT MAX (CAST(employee_ID
> as
> int)) FROM salary)
>
> Although I had tried using convert also but it does not helps ...
>
> Cheers,
> siaj
>
> "Kevin Spencer" wrote:
>
>> Have you tried converting it to a number?
>>
>> Let me explain the difference between casting and converting. Casting
>> is
>> done when a data type IS the type being cast to. IOW, the data type is
>> either the target type or it is inherited from the target type. You
>> can
>> cast
>> a System.Web.UI.Page as a System.Web.UI.Control because it inherits
>> System.Web.UI.Control. It IS a System.Web.UI.Control.
>>
>> Converting is done when the type IS NOT the same data type as the
>> target
>> type. Strings, for example, can not be CAST as integers; they are not
>> in
>> any
>> sense integers. However, they can, if they are strings of numbers, be
>> CONVERTED to integers.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> ..Net Developer
>> Neither a follower nor a lender be.
>>
>> "siaj" <si**@discussions.microsoft.com> wrote in message
>> news:EB**********************************@microsof t.com...
>> > Hi all,
>> > I am having a dataset which is Reading from the XML file. The
>> > Dataset
>> > has
>> > a
>> > table Users with Scheema (US_ID, US_Name). I am attempting to add
>> > new
>> > user
>> > to
>> > this table. for this I want to fetch the max US_ID , increment by
>> > One
>> > and
>> > add
>> > to table
>> > The code is
>> > maxID = dsUser.Tables(0).Select("US_ID=MAX(US_ID)")
>> > The issue I am facing is that I am not getting proper maxID as US_ID
>> > is
>> > interpreted as char while reading.
>> > I also tried using the cast expression but I m getting syntax
>> > error.
>> >
>> > any suggestion will be highly appreciated...
>> >
>> > Cheers,
>> > siaj
>> >
>> >
>>
>>
>>


Nov 19 '05 #7
I wasn't bashing you, but since you come from a different country you may
have thought I was. "I'ts a shame" is an English expression of "it's too
bad".

Here's an idea. Why don't you get the Max by looping through the DataTable?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"siaj" <si**@discussions.microsoft.com> wrote in message
news:F7**********************************@microsof t.com...
Kevin, I appreciate ur helping attitude and I have gone thru the links u
provided but the analogies and words like "shame" were definately not
in
good taste for aspirants of .Net. Phrases like this many times takes out
the
essence out of the good solutions.
Usergroups are meant to help and encourage people not bashing and shaming
people....

Thanks for all....
siaj
"Kevin Spencer" wrote:
> Thanks for ur time and enlightening on fishing and AutoParts ... I was
> looking for some enlightening on some .net Issue..


It's a shame that you thought I was talking about fishing and auto parts.
I
was giving you enlightenment on .Net issues by using analogies, but
apparently you missed it.

In fact, you MUST have missed it, because you're still trying to treat
.Net
executable code and classes as if they were SQL Server. Although the
Expression used in a DataTable.Select() method is a string, just like
SQL,
it is NOT SQL. You just tried to bolt your new carbeurator to the
steering
column. You're trying to make apple sauce out of orange juice.

The following reference concerning the Expression property of a
DataColumn
is the same rules as the expression you use with the Select() method of a
DataTable (in fact I found it by looking up the Select() method of a
DataTable), so don't go there and assume I am pointing you in the wrong
direction:

http://msdn.microsoft.com/library/de...ssiontopic.asp

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"siaj" <si**@discussions.microsoft.com> wrote in message
news:B0**********************************@microsof t.com...
> Thanks for ur time and enlightening on fishing and AutoParts ... I was
> looking for some enlightening on some .net Issue..
> Meanwhile I tried the Rowfiltering as
> axIDRow = dsUser.Tables(0).Select("US_ID=(SELECT MAX
> (CONVERT(int,US_ID))
> FROM Users)")
>
> It gives Error
> Syntax error: Missing operand after 'MAX' operator.
>
> cheers,
> siaj
>
>
> "Kevin Spencer" wrote:
>
>> > Thanks for the Reply but casting works in SQL server atleast
>>
>> Casting works for fishing too, but I wouldn't try to use that sort of
>> casting in a .Net application.
>>
>> Just because the same term is used, and even has a -similar- meaning
>> in 2
>> different software packages doesn't mean that it IS the same. Using
>> CAST
>> in
>> SQL Server is NOT the same as casting in a .Net app. Apples and
>> oranges
>> are
>> both fruit, but they sure don't taste the same!
>>
>> Re-read my explanation of casting and converting in .Net.
>>
>> I would attempt to help you more, but you've provided no new
>> information.
>> All you've said is that you "tried" some unknown thing ("Using
>> Convert" -
>> whatever that means in specific terms), and that, for some reason, "it
>> does
>> not helps." For example, if you went to an auto parts store, and told
>> them
>> you needed a carbeurator, which they sold to you, and you went home
>> and
>> tried to install it, and it didn't work, they would want to know HOW
>> you
>> tried to install it, and what specifically happened when you did (how
>> did
>> your car behave?). For example, you might have tried to bolt it to
>> your
>> steering wheel, for all they know.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> ..Net Developer
>> Neither a follower nor a lender be.
>>
>> "siaj" <si**@discussions.microsoft.com> wrote in message
>> news:46**********************************@microsof t.com...
>> > Thanks for the Reply but casting works in SQL server atleast
>> > for eg :
>> > USE foodMart
>> > GO
>> > SELECT * FROM salary WHERE employee_ID =(SELECT MAX
>> > (CAST(employee_ID
>> > as
>> > int)) FROM salary)
>> >
>> > Although I had tried using convert also but it does not helps ...
>> >
>> > Cheers,
>> > siaj
>> >
>> > "Kevin Spencer" wrote:
>> >
>> >> Have you tried converting it to a number?
>> >>
>> >> Let me explain the difference between casting and converting.
>> >> Casting
>> >> is
>> >> done when a data type IS the type being cast to. IOW, the data type
>> >> is
>> >> either the target type or it is inherited from the target type. You
>> >> can
>> >> cast
>> >> a System.Web.UI.Page as a System.Web.UI.Control because it inherits
>> >> System.Web.UI.Control. It IS a System.Web.UI.Control.
>> >>
>> >> Converting is done when the type IS NOT the same data type as the
>> >> target
>> >> type. Strings, for example, can not be CAST as integers; they are
>> >> not
>> >> in
>> >> any
>> >> sense integers. However, they can, if they are strings of numbers,
>> >> be
>> >> CONVERTED to integers.
>> >>
>> >> --
>> >> HTH,
>> >>
>> >> Kevin Spencer
>> >> Microsoft MVP
>> >> ..Net Developer
>> >> Neither a follower nor a lender be.
>> >>
>> >> "siaj" <si**@discussions.microsoft.com> wrote in message
>> >> news:EB**********************************@microsof t.com...
>> >> > Hi all,
>> >> > I am having a dataset which is Reading from the XML file. The
>> >> > Dataset
>> >> > has
>> >> > a
>> >> > table Users with Scheema (US_ID, US_Name). I am attempting to add
>> >> > new
>> >> > user
>> >> > to
>> >> > this table. for this I want to fetch the max US_ID , increment by
>> >> > One
>> >> > and
>> >> > add
>> >> > to table
>> >> > The code is
>> >> > maxID = dsUser.Tables(0).Select("US_ID=MAX(US_ID)")
>> >> > The issue I am facing is that I am not getting proper maxID as
>> >> > US_ID
>> >> > is
>> >> > interpreted as char while reading.
>> >> > I also tried using the cast expression but I m getting syntax
>> >> > error.
>> >> >
>> >> > any suggestion will be highly appreciated...
>> >> >
>> >> > Cheers,
>> >> > siaj
>> >> >
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>


Nov 19 '05 #8

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

Similar topics

1
by: N.K. | last post by:
Hello, I'm trying to find a way to flexibly filter a column in a row of data read from a file. I will have data type of that column, the operation to be performed on it (like >, <, <= etc.) and the...
3
by: Alex Ayzin | last post by:
Hi, I have a problem that might be easy to solve(possibly, I've just overlooked an easy solution). Here we go: I have a dataset with 2 datatables in it. Now, I need to do the following: if...
3
by: Jason | last post by:
I am trying to filter records in a primary form based on records in related tables. The data in the related tables is being displayed in the primary form through subforms. To be more specific, I...
5
by: Richard | last post by:
Hi, I have a form that take some time to load due to many comboboxes and at least 8 subforms. When I filter or sort the main form I get an error message and then Access shuts down. They ask if...
10
by: milk-jam | last post by:
I'm trying to set my datagridview so that the first row will be left blank and to use it as a filtering filed for the datagridview. Until now I was using 2 datagridview the upper one with a header...
2
by: Konrad | last post by:
Hi Can you point examples in .NET of filtering (avoiding) displaying web pages with unwanted content on machine with ie? Thanks Konrad
7
by: | last post by:
Hello, Does anyone have an idea on how I can filter the data in the gridview control that was returned by an sql query? I have a gridview that works fine when I populate it with data. Now I...
2
by: JUAN ERNESTO FLORES BELTRAN | last post by:
Hi you all, I am developping a python application which connects to a database (postresql) and displays the query results on a treeview. In adittion to displaying the info i do need to implement...
3
by: Shawn Ramirez | last post by:
As with most web applications speed is a huge deal to me in my applications. My customers don't really care if my app is a true 3 tier application or not, they just want it to be faster then it was...
3
by: Harry Haller | last post by:
Hello, I want to implement a generic list which will be used to display 7 columns in a GridView. One should be able to sort, filter and page each of the 7 columns. Ideally the filter should be...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.