Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 9th, 2004, 06:16 AM
Authorized User
 
Join Date: Sep 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default error in data entry

when i enter a new record into the database then an error has come
"[microsoft][ODBD SQL server driver][SQL server]SQL web assistent:
web task not found.varify the name of the task for possible error"

I'm wroking in vb6.so what is the problem and solution.

vicky
__________________
vicky
 
Old September 10th, 2004, 01:19 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

Have you check all the field mentioned in the INSERT command and the respective values are given.

Any p.key/ref. field value is not validated/set properly.

can u post the part of your code to be helpful to check for the Driver info...


 
Old September 10th, 2004, 05:33 AM
Authorized User
 
Join Date: Sep 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried it at my level best,but i can't find the error.so I'm posting u my code.
rs1!ent_date = Textentdate.Text & ""
                rs1!sno = val(Textsno.Text) & ""
                rs1!batch = val(Combobatch.Text) & ""
                rs1!semi = UCase(Combosemi.Text) & ""
                rs1!name = UCase(textname.Text) & ""
                rs1!disci = UCase(Combodisci.Text) & ""
                rs1!inst_code = comboinstcode.Text & ""
                rs1!add_inst1 = UCase(Comboinstname.Text) & ""
                rs1!sd = Textsd.Text & ""
                rs1!dura = val(Textdura.Text) & ""
                rs1!ed = Texted.Text & ""
                rs1!sem_1 = val(no(0).Text) & ""
                rs1!sem_2 = val(no(1).Text) & ""
                rs1!sem_3 = val(no(2).Text) & ""
                rs1!sem_4 = val(no(3).Text) & ""
                rs1!sem_5 = val(no(4).Text) & ""
                rs1!sem_6 = val(no(5).Text) & ""
                rs1!sem_7 = val(no(6).Text) & ""
                rs1!sem_8 = val(no(7).Text) & ""
                rs1!pers = val(Textpers.Text) & ""
                rs1!selected = UCase(Comboselected.Text) & ""
                rs1!joined = UCase(Combojoined.Text) & ""
                rs1!recomm = UCase(Textrecomm.Text) & ""
                rs1!stipend = UCase(Combostipend.Text) & ""
                rs1!sti = val(Textamount.Text) & ""
                rs1!os1 = UCase(Comboos1.Text) & ""
                rs1!os2 = UCase(Comboos2.Text) & ""
                rs1!os3 = UCase(Comboos3.Text) & ""
                rs1!db1 = UCase(Combodb1.Text) & ""
                rs1!db2 = UCase(Combodb2.Text) & ""
                rs1!db3 = UCase(Combodb3.Text) & ""
                rs1!lang1 = UCase(Combolg1.Text) & ""
                rs1!lang2 = UCase(Combolg2.Text) & ""
                rs1!lang3 = UCase(Combolg3.Text) & ""
                rs1!course_cat = UCase(Combostatus.Text) & ""
                rs1!category = UCase(Combocategory.Text) & ""
                rs1!nic = UCase(Combonic.Text) & ""
                rs1!per_add1 = UCase(Textadd1.Text) & ""
                rs1!per_add2 = UCase(Textadd2.Text) & ""
                rs1.Update
                rs1.Requery

it is the code for save the updation .SNO is primary key.

vicky
 
Old September 10th, 2004, 05:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

I think you are missing the single quotes around the values for columns that are of char/varchar/text/datetime types. I dont understand why you got to use & "" at the end of every line there. Can you explain on that?

_________________________
- Vijay G
Strive for Perfection
 
Old September 10th, 2004, 10:53 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Do you have any web tasks running? like sp_makewebtask? maybe on of the stored procedures created by this sp_ is missing.



Sal
 
Old September 13th, 2004, 01:33 AM
Authorized User
 
Join Date: Sep 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

perhapes it is the problem of sQL server,coz when i tried to edit
the any record from Query Analyzer,then the server returns the same error as
"Server: Msg 16882, Level 11, State 1, Line 2013478264
SQL Web Assistant: Web task not found. Verify the name of the task for possible errors."
so what is the problem,i'm also run it on others systems.


vicky
 
Old September 13th, 2004, 10:02 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you have a task set-up with teh SP_makewebtask and you are making it fire when a record changes, this will be implemented with a triggeer. If the stored procedure to run the web task has been deleted, the trigger will fail and it may rollback your transaction. This will happen regardless of what you use to try to change the data.

Thence the question, Do you have any web tasks running on the SQL Server? Does anyone else?



Sal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help required for data entry format Creatoronline SQL Server 2000 1 May 27th, 2008 01:58 PM
Data Entry in an Unbound DataGridView Raby Visual Basic 2005 Basics 0 September 2nd, 2006 10:34 AM
Formatting Data Entry in forms aRtware Access 5 May 12th, 2006 09:16 AM
Data Entry from Repeater m_t_clayton ASP.NET 2.0 Professional 0 March 20th, 2006 06:13 PM
Data entry from email SiliconFuRy PHP Databases 4 December 17th, 2004 09:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.