SunQuest
           DB2 Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDB2 Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 5th, 2007, 04:36 AM
SantoshS SantoshS is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 SantoshS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 50 sec
Reputation Power: 0
Rowlock in insert for DB2 Version8

Hello all,

I am new to DB2,
Currently i am using DB2 version 8.02 personal edition on Windows XP
Professional.

And Facing problem with rowlock in insert query.

I have created a sample database as

CREATE TABLE SCEMANAME.LOG (
Sequence DECIMAL(9 ,0) NOT NULL ,
SubSequence DECIMAL(9 ,0) NOT NULL ,
RecordType DECIMAL(9 ,0) ,
LogDate TIMESTAMP ,
Name char (30) ,
Action char (80) ,
usertype DECIMAL(1) ,
sourceapp DECIMAL(1)
)

And now trying to fire queries on DB2
INSERT INTO SCEMANAME.LOG WITH (ROWLOCK)
(SEQUENCE,SUBSEQUENCE,RECORDTYPE,LOGDATE, NAME,ACTION,USERTYPE,SOURCEAPP)
VALUES(1,12,123,'2007-04-03 15:51:47.333','SANS','test',0,0);

but the query results in an error as ,
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0104N An unexpected token "WITH" was found following "','SANS','test',0,
0)". Expected tokens may include: ",". SQLSTATE=42601

SQL0104N An unexpected token "WITH" was found following "','SANS','test',0,0)". Expected tokens may include: ", ".

Thanks
Santosh

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDB2 Development > Rowlock in insert for DB2 Version8


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway