Hi, I've been reading all sorts of info on the ntext field. I need
this to store xml documents in sql server via a stored proc.
Because of its size, I apparently can not use SET (as in UPDATE)
therefore I'm trying to do an INSERT of the row with this field (after
deleting the old row).
CREATE PROCEDURE dbo.UpdateXmlWF
(
@varWO varchar(50)
@strWF ntext
@varCust varchar(50)
@varAssy varchar(50)
)
AS
INSERT INTO tblWorkOrders (WorkOrder, Customer, Assy, xmlWF) VALUES
(@varWO, @varCust, @varAssy, @strWF)
I'm using MSDE so I can't tell what's wrong...it just won't save the
proc.
PLEASE HELP!
Thanks, Kathy 2 6027
KathyB (Ka**********@a ttbi.com) writes: Because of its size, I apparently can not use SET (as in UPDATE) therefore I'm trying to do an INSERT of the row with this field (after deleting the old row).
CREATE PROCEDURE dbo.UpdateXmlWF ( @varWO varchar(50) @strWF ntext @varCust varchar(50) @varAssy varchar(50) ) AS
INSERT INTO tblWorkOrders (WorkOrder, Customer, Assy, xmlWF) VALUES (@varWO, @varCust, @varAssy, @strWF)
I'm using MSDE so I can't tell what's wrong...it just won't save the proc.
And the error message is?
--
Erland Sommarskog, SQL Server MVP, so****@algonet. se
Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinf...2000/books.asp
There wasn't an error message SQL just wouldn't let me save the stored
proc.
HOWEVER, even though I'm going to look really stupid, I'm going to now
ADMIT what was wrong!
I forgot to put the commas between the parameter variables...hop e this
help someone else some day.
Kathy
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mark |
last post by:
A beginner in this area, I have been able to read a record from a
MySQL database and populate an HTML form (wow!). Now, my goal is to
allow the user to edit the contents of the form and then update the
record in MySQL.
The problem is, as soon as the "Update" button (type="submit") is
pressed, all of the data disappear from the form. How...
|
by: NewDBGirl |
last post by:
I have a multiple-page form for entering info about a project with several
sub-forms for sub-projects, notes and tasks. The form and one of the
sub-forms each have a combo box to select a record to display, as well as
a "last date/time updated" type of field that populates AfterUpdate.
What can I do to fix the "Update or CancelUpdate...
|
by: RC |
last post by:
In my Access 2002 form, I have a combo box and on the AfterUpdate
event I use
DoCmd.RunSQL ("UPDATE ....
to update records in a table. When it starts to run I get a message
"You are about to update 3 row(s)."
Is there a way to prevent the message from popping up?
|
by: Shawn |
last post by:
Hi.
I have a stored procedure in my Sybase 11.9, but I get an error when I try
to update a row. This happends when I have more than 126 chars in one of my
parameters. The parameter is declared varchar(254) and so is the field that
I'm trying to update.
This is the error I'm getting:
WARNING - Fatal
Error 4020 occurred at Feb 4 2005...
|
by: Mark Harrison |
last post by:
So I have some data that I want to put into a table. If the
row already exists (as defined by the primary key), I would
like to update the row. Otherwise, I would like to insert
the row.
I've been doing something like
delete from foo where name = 'xx';
insert into foo values('xx',1,2,...);
| |
by: ComputerGuyCJ |
last post by:
I have an application that I've used click-once deployment to publish out to
a shared network path. From there I installed the app on a few client
machines, including my own. Since then I published a few updates that were
recognized by the app, and the users installed them, so everyone's on the
most current version. A couple of glitches are...
|
by: Robert Martin |
last post by:
I'm new to Access and VBA. (I've been working with Pick/Universe forever.)
I'm about going nuts trying to figure out something that should be (and most
likely is) very simple.
I have a form that reads and writes data from/to a table (call it
mainTable). It also reads data from a 2nd table (call it secondTable). What
I can't figure out how...
|
by: Widge |
last post by:
I can't believe it but I don't have a clue how to update a table using VBA!
What I'm trying to do is:
1) Do a search on the last 3 periods turnover for one client in particular and check to see if they are all over 60k
2) Go to a table which states rebate rates for each client and change that one clients rate based on whether they are over...
|
by: justice750 |
last post by:
Hi All,
I am using a FormView control. The allows me to update records in the database. However, when a database field is null I can not update the field on the form. It works fine when the field is not a null value. I am not using any code behind (C#) to bind the data or manipulate the data.
I have read that when there is a null value in...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |