Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / May 2006

Tip: Looking for answers? Try searching our database.

LOCKS on database-Table with ODBC and Sybase 9.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Stojkovic - 18 May 2006 12:57 GMT
VS 2003
DOT.NET Framework 1.1
Database: Sybase Adaptive AnyWhere 9.02
Using ODBC as database-interface

Sometimes I get LOCKS on a table, after I have made only a select on the
table.
100 times the code is working properly, but than it happens.
DIRECT behind the SELECT , the table has a SHARED-LOCK [S].
There is only this user to work with the Table.

Is this a known problem in VS.2003 ??

Thanks For any hint.
Peter Stojkovic

CODE:
f_check_for_locks()
li_count = 0
ls_sql1 = " SELECT count(*) FROM DBA.die_remarks WHERE rms_press =  123"
l_reader = f_ExecuteSQLSelect(ls_sql1, SQLCA_server_front)
Do While l_reader.Read()
   li_count = l_reader.GetInt32(0)
Loop
l_reader.Close()
f_check_for_locks()
dbahooker@hotmail.com - 18 May 2006 18:07 GMT
a) dont use Sybase
b) don't use ODBC
c) don't use 1.1; it's not as powerful as vb6 or 2.0

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.