|
-
May 23rd, 2006, 11:12 AM
#1
Thread Starter
Fanatic Member
checking duplicate
hi,
i m developing a mobile application for pda.. with sqlserverce.
i want to check duplicate thru
mydataadapter.hasrows
it's give error that this is not suported with it
how can i check duplicate
-
May 24th, 2006, 01:04 AM
#2
Thread Starter
Fanatic Member
Re: checking duplicate
hello...........
no one knows about it?
-
May 24th, 2006, 03:52 AM
#3
Fanatic Member
Re: checking duplicate
why are you using .HasRows() to check for a duplicate?
why not use and executeScalar statement, or catch the duplicate key exception when you try and insert
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
-
May 24th, 2006, 08:18 PM
#4
Re: checking duplicate
I agree with Strider. Perhaps you could post a bit more code around this. Using a data adapter (which I gather from your variable name) would be slow, if possible.
My usual boring signature: Nothing
 
-
May 25th, 2006, 03:11 AM
#5
Thread Starter
Fanatic Member
Re: checking duplicate
i got a solution...i m using
if dataadapter.read() then
''have some rows
else
''now rows..
end if
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|