Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS SQL Server


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Clipping Data Inserted Into NText Field


I'm having a major problem. I'm executing an sql statement to insert data into an nText field. It's clipping the text though. I haven't seen any patterns yet. Example "Welcome to the show.", it would save "Welcome to t". And it's not all the time. Please Help.

Thanks for your time,
Randy




View Complete Forum Thread with Replies

Related Forum Messages:
Using Inserted / Deleted Tables With Text / NText / Image Data Type
Hi folks,

Table:

a int,
b int,
c int,
d text

I need to change my AFTER - Trigger from this (example!):

select * into #ins from inserted

to something like

select *(without Text / nText / image -columns) into #ins from inserted.

So I tried to build a string like this: (using INFORMATIONSCHEMES)

select @sql = 'select a,b,c into #ins from inserted'
exec(@sql)

a,b,c are not of Text, nText or Image datatype.

After executing the trigger, I get an error, that inserted is unknown.

Does anyone know how to solve this ?

Thx.

View Replies !
Problem Importing Data From An Access Memo Field Into A SQL Server Ntext Field.
I'm using DTS to import data from an Access memo field into a SQL Server ntext field.  DTS is only importing the first 255 characters of the memo field and truncating the rest.I'd appreciate any insights into what may be causing this problem, and what I can do about it.Thanks in advance for any help!

View Replies !
How To Append Data To Ntext Field?
Hi,
Can anybody tell me how to append data to ntext field?
Joydeep

View Replies !
How Do I Parse Data Stored In Ntext Field
I have a third party application with a ntext field that I need to parse the data out of.  The data looks like this:
<xmlF><FNumber type="int">2421</FNumber><AttachmentPath type="string" /><RequesterId type="int">232</RequesterId><Requester type="string">John Smith</Requester><RequestDate type="DateTime">3/24/2008 11:23:27 AM</RequestDate</xmlF>
The fieldname is Data and the tablename is ProcessData
Again, this looks like xml, but the field type is ntext.  I would like to create a view displaying the parsed data in fields.  How would I go about parsing the data?
Thanks.
 

View Replies !
Index In Calculated Field From A Ntext Field
For some reasons I have to use a ntext field for both small strings like "10" and large binalry files.

I need to sort the field to some extend to present the small strings on a sorted nice way - answers to " What country are you from" etc.

To trick the sorting I use a calculated field:

ORDER BY RSort - where Rsort is:

convert(varchar(4), RD.response) as RSort

It works but put a high load on the SQL server when the number of responses increases.

I though of making a non clustered index based on the calculated field, but is not sure that it will work as intended.

What do I do. The last thing would be to change the ntext to vchar(3800) or something like that. :confused:

View Replies !
NText Field In SQL??
Hello All,

Maybe a stupid question but I'm new to the db admin work so please bear with me.

I've imported an Access db into SQL, in the Access db the field type was 'memo' to accomodate the large amount of text (on avg ruffly 4100 chars. with spaces). Now in SQL the field in the table I have set up as an ntext field, which I understood to be equivalent to a memo field in Access.

My problem is when saving data to the field the first time it saves all the data correctly with the exception of the field in question. The data in the field is '<LongText>', now when I try to update the data in the table I get a 'Data Truncated' error message and no update takes place throughout the table.

After testing this and trying different things, I've found that if I shorten this one field and try to save to the db I still get the 'Data Truncated' error message. If I shorten the data in the field AND delete the record from the SQL table then it will save just fine from there on out (which won't work for the reports).

I'm not sure what I'm missing here to get this to work the way it did in Access.

View Replies !
Ntext Field From Profiler
I am trying to view all the ntext from a profiler trace. The data istruncated at 256 and I am not sure why... The max length is 1820 viathis command:select max(datalength(textdata)) from "monitor forms usage"where textdata like '%gforms%' .I then issueset textsize 8000select (textdata) from "monitor forms usage" where textdata like'%gforms%' and datalength(textdata) >1800and still only 256 is returned. this is true even if I redirect theoutput to a file.Any ideas on how a humble man like me can see all of the data.Mike--Posted via http://dbforums.com

View Replies !
NText Update Field
Hi All,

I will be doing stress test for my app.

Loading thousands of records to the DB through bulk insert.
There's one field NText which I have left NULL because it will be hard to gen dummy flat file to it.

I have another table which has the Ntext Value which i will want to copy and duplicate to the other table.

what is the way to do it?

simply said i want to update a record with NULL value from one table with NText field with the value from another table..

View Replies !
Reading Ntext Field
Hi there,

I am facing one problem.

I have ntext type field in my databse. The data stored in it is very large I don't know how big is text inside it, I am unable to read it.

I tried in the following ways

1) select statement which displayed only some content ie. only part of the text


2)
DECLARE @ptrval varbinary(16)

SELECT @ptrval = TEXTPTR(data)

FROM TABLE1

READTEXT TABLE1.data @ptrval 0 500

this also gives only part of the text and not complete text.

3) I even tried looking at data from Enterprise manager it displays
<Long Text>

I also tried changing text size by "set testsize 60000" so that I can see the text.

Actually the text in isnerted by asp file and it is seen on the browser but I want to read it in sql server.

Please help as soon as possible

regards,
zak

View Replies !
Parsing An Ntext Field
 

I'm trying to parse an ntext field that in my SQL View contains an invoice comment in order to be able to group on parts of the comment. I have two problems--one, the syntax to do this, and two, the best way to deal with the parts that I want.
 
The comment is like: "standard text ABCDE : $99.99" but can have multiple "ABCDE"s, e.g. "standard text ABCDE FGH IJKL $999.99" and I found some that had duplicates like "standard text standard text...".
I want to be able to report in SSRS 2005 by grouping the "ABCDE", "FGH", "IJKL" items.
 
Any ideas? Please be specific as I'm still learning.

View Replies !
How To Get The Primary Key From The Field Of The Row I've Just Inserted
I need to insert a row of data and return the value of the primary key id of the row.
I thought that something like this would work


int Key = (int)command.ExecuteScalar();


where command is SqlCommand object.

It doesn't work, maybe I've misunderstood the usage of ExecuteScalar.

View Replies !
Get The Last Inserted Uniqueidentifier Field
As you know we can get the last identity by using these functions:@@IDENTITY, IDENT_CURRENT( '[Table_Name]' )  And More.But if I set my primary key datatype to uniqueidentifier, I Can't get the last GUID inserted by SQL.Anyone have any idea?Reach me at my blog: http://ramezanpour.spaces.live.com

View Replies !
How To Replace Char In Ntext Field
I need help on replace char in ntext data type

Here is the example data
<qMultipleChoice><qText>The%20AE%20understands%20what%20conditions%20the%2 0Account%20Manager%20is%20allowed%20to%20sign-off
20on.</qText><qChoice>Strongly20Disagree</qChoice><qChoice>Disagree
</qChoice><qChoice>Agree</qChoice><qChoice>Strongly%20Agree</qCh

I want result look like this
First Column:The AE Understands what conditions the Account Manager is allowed to sign-off.
Second Column: Strongly Disagree Disagree Agree Strongly Agree

This is what i had so far
Select (SUBSTRING(QuestionText, (PATINDEX(N'%<qText>%', QuestionText) + 7),(PATINDEX(N'%</qText>%', QuestionText) - (PATINDEX(N'%<qText>%', QuestionText) + 7)))) From tblQuestion

my result:
The%20AE%20understands%20what%20conditions%20the%2 0Account%20Manager%20is%20allowed%20to%20sign-off%20on.

I have problem with replace '%20' and how to make the second column.
Any Help?
Thanks
Shan

View Replies !
Field Too Small; Cannot Use Text Or NText; Ugh, Little Help.
My Stored Proc runs through a loop and concats the contents of each field into one big nvarchar. Procedure works fine on a smaller scale but now it is being implemented on a very large table and the results of the sequel overflow the nvarchar limits. I looked into using text and ntext but both cannot be declared locally. Does anyone know how I can work aroudn this limitation?

Summary:The problem is that the temporary variable I am using (nvarchar) is too small to contain the robust size that the SQL is concating into it. The final field it winds up in is a text field and will be able to handle the amount of data, its just getting the data there is the issue..... Your thoughts please....

View Replies !
How 2 Change Collation On Ntext Field
The title says it all. I've used ALTER DATABASE, and ALTER TABLE...ALTER COLUMN to change all my character fields from 'Compatibility_42_409_30003' to the default I want ('Latin1_General_CI_AI') on databases converted from SQL7. Now I just have these ntext fields to change...

Al

View Replies !
SQL Ntext Field To Access As Hyperlink????
 How do I show a SQL text field from a SQL table linked into an Access database and use that field as a Hyperlink.....any code or on-click event I can use in a form??? anyone????? PLEASE?????

View Replies !
Problem In Displaying NTEXT Field From Database?
Hello,
 I have around 7 ntext fields in my data base table and I am getting data from the data base table through executing stored procedure, But when I am displaying data using record set, few of the ntext fields in recored set are empty .Iam sure that these are having data in table.
 I am not sure why recordset is lossing that ntext field data?Because of this I am unable to display that data in web form.
any ideas really appriciated.
 Thanks
Ram

View Replies !
Replace A String In An NTEXT Field In Sql Server
I found it rather hard to replace a string in an NTEXT field in sql server 2000. Would it be easier in SSIS 2005? Please advise. Thanks.

View Replies !
Ntext Field Limiting Input To 64,999 Characters
I am having an interesting error. I have a bunch of data that I am updating to a field in my sql server 7.0 database. It updates the data, however only puts the first 64,999 characters into the field. The datatype is ntext. From what I understand, ntext datatype can hold much more than 65,000 characters. Am I right in this? The data I'm putting into the field is html tags/text. I've tried several different data sets. I'm updating the data using Coldfusion/SQL commands.

Here is my SQL syntax:

UPDATE htmltest
SET html_offline = '#form.html#'
WHERE htmlid = #form.htmlid#

View Replies !
Copy Ntext Field In Stored Procedure
Hello everybody,

i have a problem with copying (read it from one row and set it to another) a ntext field in a stored procedure. I know how
to get a pointer to the data and how to read from it.

But i want to copy the whole data.

Does anybody know how to do that?

Thanks in advance

A.Gempp


-------------------------------
I'm using SQL Server 2000

View Replies !
DEFINITIVE ANSWER PLEASE -- Can You UPDATE Ntext Datatype Field???
Hi, I've read conflicting articles on updating an ntext field in acolumn.My ntext field will exceed 8,000 characters (typically twice that size-- but just a text string).One article (I think from MicroSoft) said you could NOT use ntext inan UPDATE statement, but I've seen examples from other people usingit...but don't know if it's related to the size/characters issue.Is this true or not?Thanks very much...Kathy

View Replies !
Inserting Values Into SQL CE 3.5 Ntext Field Is Changing All Rows...
 

Has anyone seen this issue before?  We are running a SQL CE 3.5 database on a windows desktop.  A couple of our tables have ntext fields.  When we do an insert the statement updates the value for all rows, not just the one that was added.  I can easily repro this with some of the online samples too.  Try the following:
 

SqlCeConnection conn = new SqlCeConnection(_sConn);

conn.Open();

SqlCeCommand cmd = conn.CreateCommand();

cmd.CommandText = "CREATE TABLE BlobTable(name nvarchar(128), blob ntext);";

cmd.ExecuteNonQuery();

cmd.CommandText = "INSERT INTO BlobTable(name, blob) VALUES (@name, @blob);";

SqlCeParameter paramName = cmd.Parameters.Add("name", SqlDbType.NVarChar, 128);

SqlCeParameter paramBlob = cmd.Parameters.Add("blob", SqlDbType.NText);

paramName.Value = "Name1";

paramBlob.Value = "Name1 Memo";

cmd.ExecuteNonQuery();
 

cmd.CommandText = "INSERT INTO BlobTable(name, blob) VALUES (@name, @blob);";

SqlCeParameter paramName = cmd.Parameters.Add("name", SqlDbType.NVarChar, 128);

SqlCeParameter paramBlob = cmd.Parameters.Add("blob", SqlDbType.NText);

paramName.Value = "Name2";

paramBlob.Value = "Name2 Memo";

cmd.ExecuteNonQuery();

 
 
After the second execution the blob column in both rows will have the value 'Name2 Memo'.
 
This is obviously a huge problem for us and would appreciate it if someone can explain what is happening.  Seems like a bug but would like to be certain before I go the support route.
 
 
 

View Replies !
Trigger Problem With &#34;inserted&#34; And &#34;deleted&#34; On Text Field
I use SQL Server 6.5
I have create a trigger on UPDATE for history.
This history send the old value and the new value in a table to follow all the modifications. Those values are "text datatype".
When I execute the trigger (When I make a modification in the table), the two values are the same (the new value).
If somone have a idea ...

CREATE TABLE dbo.HELPDB (
ALMID int NOT NULL ,
MEMO text NULL ,
FIRSTAID text NULL
)
GO

CREATE TRIGGER trg_UpdateHelpDB ON dbo.HELPDB
FOR UPDATE
AS
DECLARE @Id integer
DECLARE @alm integer
DECLARE @user varchar(20)
DECLARE @almname varchar(24)
DECLARE @usergroupproprid integer
DECLARE @usergroupproprname varchar(30)
DECLARE @oldFirstAid varchar(255)
DECLARE @newFirstAid varchar(255)

if(UPDATE(FIRSTAID))
begin
select @alm = ALMID, @oldFirstAid = CONVERT(varchar(255), FIRSTAID) from deleted
select @newFirstAid = CONVERT(varchar(255), FIRSTAID) from inserted
Exec AMX.dbo.SpGetNewId 'HISTALM', @Id OUTPUT
select @user = "testuser"
select @almname = "testalmname"
select @usergroupproprname = "testusergroupproprname"
INSERT HISTALM (ID, ALMID, DATETIME, USERLOG, STATUS, ALMNAME, USERGRPPROPR,USERGRPOWNER, EVENTTYPE, OLDVALUE, NEWVALUE)
VALUES(@Id, @alm, getdate(), @user, "First Aid", @almname, @usergroupproprname, "/", 0, @oldFirstAid, @newFirstAid)
END
GO

CREATE TABLE dbo.HISTALM (
ID int NOT NULL ,
ALMID int NOT NULL ,
DATETIME datetime NOT NULL ,
USERLOG varchar (30) NOT NULL ,
STATUS varchar (25) NOT NULL ,
ALMNAME varchar (24) NOT NULL ,
USERGRPPROPR varchar (30) NOT NULL ,
USERGRPOWNER varchar (30) NOT NULL ,
EVENTTYPE int NOT NULL ,
OLDVALUE varchar (255) NULL ,
NEWVALUE varchar (255) NULL
)
GO

View Replies !
In A Real Pinch With FreeTextBox / Paste From Word / Ntext Field In SQL2k!
I am in a real squeeze here.  I am working on my first ASP.NET project here and I am having some big problems with a content management aspect of this so far.  I have a freetextbox control that my users want to be able to paste out of Word and save the content to a MSSQL Database.  Well this was working great until I found out that I have a 4000 character limitation, and most of the pasted data is well over 14000 characters at least.
I've been working on these for about two weeks and just have come to a dead end.  Here's what I had before:  Form with Freetextbox that saved the information in the form to a database by calling a function in a class.vb file, the class file then called a stored procedure using parameters.  Similiarly the display page loaded with a record id, and fired off a function stored in a class file, using stored procedures and using output parameters to I could assign the returned values to label fields etc.  This has completely gone down the toilet since i had to change to text field to accomodate the larger text sizes.  I have found some resources about chunking out to the file system, but I really don't want to do that, I just want it to display the information out on a web page, and I have been scouring google for weeks!  Can someone tell me if this the wrong approach?  How do I go about storing / retrieving HTML in an ntext database field just like these forums?  I am completely stumped!

View Replies !
A Relational Technique To Strip The HTML Tags Out Of A Ntext Datatype Field
I had a problem with the ntext datatype. I need to strip the HTML tags out of a ntext datatype column. I have sample query for that, which works fine for STRING, as stuff is the string function, what to do for ntext field.
 
=======The Process follows like this =========
 
--**************************************
--    
-- Name: A relational technique to strip
--      the HTML tags out of a string
-- Description:A relational technique to
--      strip the HTML tags out of a string. Th
--     is solution demonstrates how to use simp
--     le tables & search functions effectively
--      in SQL Server to solve procedural / ite
--     rative problems.
 
 
-- This table contains the tags to be re
--     placed. The % in <head%>
-- will take care of any extra informati
--     on in the tag that you needn't worry
-- about as a whole. In any case, this t
--     able contains all the tags that needs
-- to be search & replaced.
CREATE TABLE #html ( tag varchar(30) )
INSERT #html VALUES ( '<html>' )
INSERT #html VALUES ( '<head%>' )
INSERT #html VALUES ( '<title%>' )
INSERT #html VALUES ( '<link%>' )
INSERT #html VALUES ( '</title>' )
INSERT #html VALUES ( '</head>' )
INSERT #html VALUES ( '<body%>' )
INSERT #html VALUES ( '</html>' )
go
-- A simple table with the HTML strings
CREATE TABLE #t ( id tinyint IDENTITY , string varchar(255) )
INSERT #t VALUES (
'<HTML><HEAD><TITLE>Some Name</TITLE>
<LINK REL="stylesheet" HREF="/style.css" TYPE="text/css" ></HEAD>
<BODY BGCOLOR="FFFFFF" VLINK="#444444">
SOME HTML text after the body</HTML>'
)
INSERT #t VALUES (
'<HTML><HEAD><TITLE>Another Name</TITLE>
<LINK REL="stylesheet" HREF="/style.css"></HEAD>
<BODY BGCOLOR="FFFFFF" VLINK="#444444">Another HTML text after the body</HTML>'
)
go
-- This is the code to strip the tags out.
-- It finds the starting location of eac
--     h tag in the HTML string ,
-- finds the length of the tag with the
--     extra properties if any. This is
-- done by locating the end of the tag n
--     amely '>'. The same is done
-- in a loop till all tags are replaced.
 
    BEGIN TRAN
    WHILE exists(select * FROM #t JOIN #html on patindex('%' + tag + '%' , string ) > 0 )
            UPDATE #t
            SET string = stuff( string , patindex('%' + tag + '%' , string ) ,
                                                charindex( '>' , string , patindex('%' + tag + '%' , string ) )
                                                - patindex('%' + tag + '%' , string ) + 1 , '' )
            FROM #t JOIN #html
            ON patindex('%' + tag + '%' , string ) > 0
    SELECT * FROM #t
    rollback

View Replies !
Inserted Records Missing In Sql Table Yet Tables' Primary Key Field Has Been Incremented.
I have a sql sever 2005 express table with an automatically incremented primary key field. I use a Detailsview to insert new records and on the Detailsview itemInserted event, i send out automated notification emails.
I then received two automated emails(indicating two records have been inserted) but looking at the database, the records are not there. Whats confusing me is that even the tables primary key field had been incremented by two, an indication that indeed the two records should actually be in table.  Recovering these records is not abig deal because i can re-enter them but iam wondering what the possible cause is. How come the id field was even incremented and the records are not there yet iam 100% sure no one deleted them. Its only me who can delete a record.
And then how come i insert new records now and they are all there in the database but now with two id numbers for those missing records skipped. Its not crucial data but for my learning, i feel i deserve understanding why it happened because next time, it might be costly.

View Replies !
Ntext Over 4000 Chars Causes 'Data In Row (n) Was Not Update... String Or Binary Data Would Be Truncated...'
When I enter over 4000 chars in any ntext field in my SQL Server 2005 database (directly in the database and through the application) I get an error saying that the data could not be updated because string or binary data would be truncated.Has anyone ever seen this? I cannot figure out what is causing it, ntext should be able to hold a lot more data that this...

View Replies !
Report Builder - Read Data From SQL Server With Ntext Data Type
Hi all,
 
I have a column in SQL server which is of type ntext. Selecting the specific column to view it in report builder, an error message appears with the following description:
 
- Cannot run this report. The grouping expression 'nameofcolumn' returns the datatype binary. The Grouping Expression cannot return binary data.
 
Report Builder recognises this as if it was an image...
 
Thanks in advance!

View Replies !
Function That Replaces Ntext And Compares Ntext With Nvarchar
I am running this query to an sql server 2000 database from my aspcode:"select * from MyTable whereMySqlServerRemoveStressFunction(MyNtextColumn) = '" &MyAdoRemoveStressFunction(MyString) & "'"The problem is that the replace function doesn't work with the ntextdatatype (so as to replace the stresses with an empty string). I hadto implement the MySqlServerRemoveStressFunction, i.e. a function thattakes a column name as a parameter and returns the text contained inthis column having replaced some letters of the text (the letters withstress). Unfortunately, I could not do that because user-definedfunctions cannot return a value of ntext.So I have the following idea:"select * from MyTable whereCheckIfTheyAreEqualIngoringTheStesses(MyNtextColum n, '" & MyString &"')"How can I implement the CheckIfTheyAreEqualIngoringTheStessesfunction? (I don't know how to combine these functions to do what Iwant: TEXTPTR, UPDATETEXT, WRITETEXT, READTEXT)

View Replies !
Monitoring Inserted Data And Comparing Against Selected Data
I made ahuge load script in SQL Server 2000 as i load data from manytables(select some of each one collumns) into one single table and iwant to test the loaded data against the selected data to make surethat the loaded data is the same the selected datais there a code or tool to make this test or monitoring ?? pleaseurgent ....

View Replies !
Converting Text Data To Ntext Data
Hi,

We are adapting our application to use unicode. However, one of our ptoblems is to ocnvert existing data from text to ntext. I couldn't find anything that document this. What is the preferred way to do this? I would like to be able to migrate the data from an existing text column to another ntext column in the table.

If I can't do that, what are the options? Preferrably, I would like to be able to do this in sql script.

Thanks.

Maggie :)

View Replies !
Converting Text Data To Ntext Data
Hi all,

My organization have a web-based application and needs it to support multilingual so we will be adapting our app to use unicode. However, one of our problems is to convert existing data from text to ntext. I couldn't find anything that document this. What is the best way to do that? I would like to be able to migrate the data from an existing text column to another ntext column in the table.


I brief you about my system, I used List manager system to store the messages and distribute to all members. Right now,by design the Lyris system keep the message in the text field which mean it 's not support multilanguage directly because of unicode field. We needs to create new Db which has the data structure as same as Lyris but just one difference is keep the message in unicode format (ntext) which we need the sql script to automatically update the new record get from Lyris to new DB.


If I can't do that, what are the options? If it's possible, I would like to be able to do this in sql script.


Thanks a mil, in advance.

Eddie

View Replies !
STORED PROC To &"UPDATE&" Ntext Field -- PLEASE!
Hi, I've been reading all sorts of info on the ntext field. I needthis 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 (afterdeleting the old row).CREATE PROCEDURE dbo.UpdateXmlWF(@varWO varchar(50)@strWF ntext@varCust varchar(50)@varAssy varchar(50))ASINSERT 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 theproc.PLEASE HELP!Thanks, Kathy

View Replies !
How WCF Can Get New Inserted SQL Data ?
dear all,

I have a WCF service which is host in a console application for the time beeing.
This service provide methods for retriving history data when request.
So far so good.
 
My WCF service need also to know when a particular table (ALARMS tabel ) gets updated with DELETE, INSERT, OR UPDATE. This because my client application (WinForm) need to refresh a datagrid binding to that ALARMS table.
 
In other words my WCF servcie would send a callback event to my client when it as been notice for a change..
 
But my problem is how my WCF service can be notify from an update in my SQL table ?
I have tried SQLDependency class, but I give up was not working properly...and hard to know the xact context you are runing on.
Was thinking also of having a timer whcih pool every 1s by calling my tabel store procedure and verifiy is somerow ha changed....
 
What to do, how to do, what is the best way and thred safe method
 
Thnaks for help and advise
 
regards
serge

View Replies !
NText Data Type
I need to store a large amount of text in my database. I thought I was supposed to use the nText data type for storing a large amount of text. For some reason all my text always gets truncated after 256 characters.
How come you can only store 256 characters in an nText? What field should I use to store large amounts of text?
Thanks.

View Replies !
Sql Ntext Data Truncates In Asp
The sql database has an ntext (16) field which contains "information" and is used as a free form turnover log. When I bring this data into an ASP page the "information" gets truncated.

I have tried getchunk, however all formatting on the field is lost.
I have tried putting the field at the end of my query - no change.
I have tried querying the data as a separate sqlrs connection - no change.
I have tried using substring to break it down, the first substring works, however I get errors on the second (Expression result length exceeds the maximum. 8000 max, 12000 found).

I also tried to use substring in sql query anaylzer - and only get the first ~4180 characters.

Is there a way to split this field into multiple nvarchar fields in my temporary table in sql and then concatenate back together in asp report???

View Replies !
Getting Identity Of Inserted Record Using Inserted Event????
is there any way of getting the identity without using the "@@idemtity" in sql??? I'm trying to use the inserted event of ObjectDataSource, with Outputparameters, can anybody help me???

View Replies !
Getting Inserted Data In Trigger
I am using SQL Server 2000.I want to create an after insert trigger on one of my tables, but I have forgotten how I reference the inserted data to do some business logic on it. Can someone please help. Thanks Jag 

View Replies !
INSERT INTO - Data Is Not Inserted
hi thereCreated sproc - it stops dead in the first lineWhy ????Thanks in advanceCREATE PROCEDURE [dbo].[test] ASinsert into timesheet.dbo.table1 (RE_Code, PR_Code, AC_Code, WE_Date,SAT, SUN, MON, TUE, WED, THU, FRI, NOTES, GENERAL, PO_Number,WWL_Number, CN_Number)SELECT RE_Code, PR_Code, AC_Code, WE_Date, SAT, SUN, MON, TUE,WED, THU, FRI, NOTES, GENERAL, PO_Number, WWL_Number, CN_NumberFROM dbo.WWL_TimeSheetsWHERE (RE_Code = 'akram.i') AND (WE_Date = CONVERT(DATETIME,'1999-12-03 00:00:00', 102))GO

View Replies !
Access Inserted Data
i have a oledb destination in my data flow pointing to table ABC and an
error output if the insert failed..follow the error output, i have a
lookup on table ABC which doesn't seem to work..is it possible to
access new data in table ABC follow the error output?



thanks

View Replies !
Prevent Data Being Inserted Twice
I have a table with 3 columns: ID, Status, DateTime.

I created a stored procedure to insert a staus value for each ID. This will run every hour. The DateTime stores the time, date when the Status was inserted.

If the procedure was to be run a second time in hour window I do not want any Status to be inserted.

Note: that I cannot rely on the procedure being run at exactly the right time - if it was scheduled to run on the hour (i.e at 1:00, 2:00, 3 :00 etc) but didn't run until 1:20 it sould still be able to run at 2:00.

Does anyone know if there is anyway I can gaurd against this?

 

View Replies !
Ntext Data Type In SQL Server
Hi! ALL
I 'm writing an ASP.NET Application(1.1) , but i 've problem. I used ntext data type to store my data as follows
"Ä?ể sá»­ dụng các dịch vụ cá»§a VUNGOIMORA.COM bạn phải Ä‘á»?c kỹ các thông tin quy định và phải tuân thá»§ các Ä‘iá»?u quy định sau:

V� thông tin đăng ký thành viên:

Ä?ể có thể đăng ký làm thành viên cá»§a Vungoimora.com, bạn phải trên 18 tuổi và có đủ năng lá»±c để chịu má»?i trách nhiệm đối vá»›i má»?i hành vi cá»§a mình.
Bạn phải cung cấp đầy đủ, đúng và trung thá»±c các thông tin yêu cầu trong phần đăng ký thành viên(Há»? tên, Ä?ịa chỉ, Ä?iện thoại, Email….)
Mỗi tài khoản chỉ được đăng ký một lần và được kiểm tra sự chính xác qua cơ chế chứng thực bằng cách chúng tôi sẽ gửi mail chứng thực tới địa chỉ Email mà bạn đã đăng ký
Sẽ có 3 dạng thành viên trên VUNGOIMORA.COM: thành viên bình thư�ng(miễn phí), thành viên VIP(thành viên đóng phí), thành viên là chủ sở hữu eStore.
V� Tin đăng của bạn:

Các tin đăng(mua, bán, cho thuê, cần thuê, giới thiệu) phải đúng danh mục như thế ngư�i khác sẽ dễ dàng tìm thấy tin đăng của bạn hơn.
Các tin đăng phải trung thực chính xác, không viết toàn chữ HOA, không mang tính chất phá hoại làm ảnh hưởng tới ngư�i khác hoặc doanh nghiệp khác.
Nội dung thông tin không được mang tính chính trị, không mang tính tôn giáo, không được trái với phong tục tập quán của Việt Nam, không được dùng l�i lẽ thô tục, thông tin không được mang tính đe d�a, hay khiêu khích.
Không được đăng tin liên quan đến các thiết bị vũ khí, khiêu dâm, tin tặc...không được đăng tin quảng cáo hay rao bán những hàng hóa mà Nhà Nước Việt Nam cấm.
Những thông tin được đưa trên Vungoimora.com chỉ để giúp các bên mua - bán liên lạc với nhau, Vungoimora.com không can thiệp vào việc chuyển nhượng giữa các bên và không chịu trách nhiệm nếu xảy ra các vấn đ� pháp lý giữa các bên (VD: lừa đảo, cướp, trấn lột...). Vungoimora.com không có trách nhiệm bảo đảm tính chính xác, chất lượng, danh mục, tính thích hợp, hay tiêu chuẩn của hàng hoá. Bạn sử dụng dịch vụ Vungoimora.com miễn phí là đang tự nguyện chấp nhận rủi ro nếu có, chúng tôi không chịu bất cứ trách nhiệm nào v� việc các bên lợi dụng dịch vụ trên Vungoimora.com để tiến hành các hành vi xấu. Tuy nhiên, chúng tôi cố gắng hết sức để đảm bảo tính trung thực của các thông tin đưa lên Vungoimora.com để giảm thiểu rủi ro cho ngư�i dùng dịch vụ. Chúng tôi dành quy�n khước từ hay chấm dứt những dịch vụ cung cấp vào bất cứ lúc nào cho ngư�i dùng nào đó mà không cần báo trước.
Tin rao của bạn có thể bị xóa mà không cần thông báo.
Tin đăng trên Vungoimora.com là miá»…n phí, trong trưá»?ng hợp bạn muốn tin đăng cá»§a bạn xuất hiện tại các vị trí đặc biệt cá»§a website Vungoimora.com hay có thêm má»™t số chức năng đặc biệt, chúng tôi sẽ thu má»™t khoản phí, bạn  có thể xem thông tin chi tiết tại đây.
Các đi�u cần lưu ý khác:

Vungoimora.com không chịu trách nhiệm đối với m�i nội dung và thông tin mà các thành viên đăng trên web site, cũng như những liên kết từ vungoimora.com ra bên ngoài
Vungoimora.com có thể sẽ gửi email đến cho bạn theo một chu kỳ nhất định. Những email này không thể xem là spam.
Vungoimora.com không chịu bất cứ trách nhiệm nào trong trưá»?ng hợp máy chá»§ web bị hư, bị tấn công hoặc phá hoại  hoặc do bất cứ lý do nào làm tin đăng hay account cá»§a bạn bị mất nhưng Chúng tôi sẽ cố gắng khắc phục vá»›i khả năng tốt nhất cá»§a mình.
Không được cố ý thâm nhập tài kh�an hày sử dụng tài khoản của ngư�i khác khi chưa có sự đồng ý của h�.
Vungoimora.com có toàn quy�n thay đổi nội dung quy định này vào bất lúc nào mà không cần phải thông báo , cũng như không cần phải giải thích lý do thay đổi.
Chúng tôi cũng có quy�n thay đổi nội dung web site Vungoimora.com bất kỳ lúc nào mà không cần báo trước. Chúng tôi dành quy�n thay đổi hay cập nhật những đi�u khoản có trong bản thoả thuận sử dụng dịch vụ này. Các bạn có trách nhiệm phải thư�ng xuyên xem xét và cập nhật những thay đổi này.
Bạn có trách nhiệm bảo vệ tài kh�an của bạn trên Vungoimora.com, thư�ng xuyên thay đổi mật khẩu và chịu trách nhiệm v� các h�at động của tài kh�an do mình sở hữu.
Nếu thành viên nào đó vi phạm 1 hay nhi�u quy định ở trên thì tài khoản của thành viên đó sẽ bị xoá mà không cần báo.
Nếu bạn Ä‘ang đồng ý tất cả các Ä‘á»?u khoản trên,  hãy chá»?n "Tôi Ä?ồng ý" để tiến hành đăng ký thành viên.
Xin cảm ơn!"
 
but when display data, it displays as follows
 
" �? s? d?ng các d?ch v? c?a VUNGOIMORA.COM b?n ph?i d?c k? các thông tin quy d?nh và ph?i tuân th? các di?u quy d?nh sau:

V? thông tin dang ký thành viên :

�? có th? dang ký làm thành viên c?a Vungoimora.com, b?n ph?i trên 18 tu?i và có d? nang l?c d? ch?u m?i trách nhi?m d?i v?i m?i hành vi c?a mình.
B?n ph?i cung c?p d?y d?, dúng và trung th?c các thông tin yêu c?u trong ph?n dang ký thành viên(H? tên, �?a ch?, �i?n tho?i, Email….)
M?i tài kho?n ch? du?c dang ký m?t l?n và du?c ki?m tra s? chính xác qua co ch? ch?ng th?c b?ng cách chúng tôi s? g?i mail ch?ng th?c t?i d?a ch? Email mà b?n dã dang ký
S? có 3 d?ng thành viên trên VUNGOIMORA.COM: thành viên bình thu?ng(mi?n phí), thành viên VIP(thành viên dóng phí), thành viên là ch? s? h?u eStore.
V? Tin dang c?a b?n :

Các tin dang(mua, bán, cho thuê, c?n thuê, gi?i thi?u) ph?i dúng danh m?c nhu th? ngu?i khác s? d? dàng tìm th?y tin dang c?a b?n hon.
Các tin dang ph?i trung th?c chính xác, không vi?t toàn ch? HOA, không mang tính ch?t phá ho?i làm ?nh hu?ng t?i ngu?i khác ho?c doanh nghi?p khác.
N?i dung thông tin không du?c mang tính chính tr?, không mang tính tôn giáo, không du?c trái v?i phong t?c t?p quán c?a Vi?t Nam, không du?c dùng l?i l? thô t?c, thông tin không du?c mang tính de d?a, hay khiêu khích.
Không du?c dang tin liên quan d?n các thi?t b? vu khí, khiêu dâm, tin t?c...không du?c dang tin qu?ng cáo hay rao bán nh?ng hàng hóa mà Nhà Nu?c Vi?t Nam c?m.
Nh?ng thông tin du?c dua trên Vungoimora.com ch? d? giúp các bên mua - bán liên l?c v?i nhau, Vungoimora.com không can thi?p vào vi?c chuy?n nhu?ng gi?a các bên và không ch?u trách nhi?m n?u x?y ra các v?n d? pháp lý gi?a các bên (VD: l?a d?o, cu?p, tr?n l?t...). Vungoimora.com không có trách nhi?m b?o d?m tính chính xác, ch?t lu?ng, danh m?c, tính thích h?p, hay tiêu chu?n c?a hàng hoá. B?n s? d?ng d?ch v? Vungoimora.com mi?n phí là dang t? nguy?n ch?p nh?n r?i ro n?u có, chúng tôi không ch?u b?t c? trách nhi?m nào v? vi?c các bên l?i d?ng d?ch v? trên Vungoimora.com d? ti?n hành các hành vi x?u. Tuy nhiên, chúng tôi c? g?ng h?t s?c d? d?m b?o tính trung th?c c?a các thông tin dua lên Vungoimora.com d? gi?m thi?u r?i ro cho ngu?i dùng d?ch v?. Chúng tôi dành quy?n khu?c t? hay ch?m d?t nh?ng d?ch v? cung c?p vào b?t c? lúc nào cho ngu?i dùng nào dó mà không c?n báo tru?c.
Tin rao c?a b?n có th? b? xóa mà không c?n thông báo.
Tin dang trên Vungoimora.com là mi?n phí, trong tru?ng h?p b?n mu?n tin dang c?a b?n xu?t hi?n t?i các v? trí d?c bi?t c?a website Vungoimora.com hay có thêm m?t s? ch?c nang d?c bi?t, chúng tôi s? thu m?t kho?n phí, b?n  có th? xem thông tin chi ti?t t?i dây.
Các di?u c?n luu ý khác :

Vungoimora.com không ch?u trách nhi?m d?i v?i m?i n?i dung và thông tin mà các thành viên dang trên web site, cung nhu nh?ng liên k?t t? vungoimora.com ra bên ngoài
Vungoimora.com có th? s? g?i email d?n cho b?n theo m?t chu k? nh?t d?nh. Nh?ng email này không th? xem là spam.
Vungoimora.com không ch?u b?t c? trách nhi?m nào trong tru?ng h?p máy ch? web b? hu, b? t?n công ho?c phá ho?i  ho?c do b?t c? lý do nào làm tin dang hay account c?a b?n b? m?t nhung Chúng tôi s? c? g?ng kh?c ph?c v?i kh? nang t?t nh?t c?a mình.
Không du?c c? ý thâm nh?p tài kh?an hày s? d?ng tài kho?n c?a ngu?i khác khi chua có s? d?ng ý c?a h?.
Vungoimora.com có toàn quy?n thay d?i n?i dung quy d?nh này vào b?t lúc nào mà không c?n ph?i thông báo , cung nhu không c?n ph?i gi?i thích lý do thay d?i.
Chúng tôi cung có quy?n thay d?i n?i dung web site Vungoimora.com b?t k? lúc nào mà không c?n báo tru?c. Chúng tôi dành quy?n thay d?i hay c?p nh?t nh?ng di?u kho?n có trong b?n tho? thu?n s? d?ng d?ch v? này. Các b?n có trách nhi?m ph?i thu?ng xuyên xem xét và c?p nh?t nh?ng thay d?i này.
B?n có trách nhi?m b?o v? tài kh?an c?a b?n trên Vungoimora.com, thu?ng xuyên thay d?i m?t kh?u và ch?u trách nhi?m v? các h?at d?ng c?a tài kh?an do mình s? h?u.
N?u thành viên nào dó vi ph?m 1 hay nhi?u quy d?nh ? trên thì tài kho?n c?a thành viên dó s? b? xoá mà không c?n báo.
N?u b?n dang d?ng ý t?t c? các d?u kho?n trên,  hãy ch?n "Tôi Ã??ng ý" d? ti?n hành dang ký thành viên.
Xin c?m on! "
 
please, let me know the solution for this problem. Thanks,

View Replies !
Get Length Of Data In An NText Column
I have some text in an NText column that could be quite long.

for the web page that displays it, i want to show the first 200 characters and then have a "more..." link to bring up the full text.

i'd like to create a stored procedure that takes the left 200 characters and copies them to a ShortText column (NVarChar) for initial display and then id like to set a bit column to indicate if the length of the NText column is greater than 200.

Len and Left cant be used against NText so how can i work with the NText data ??

View Replies !
NText Data Type Issue
Have a table storing nText data tied into a Cold Fusion front end. The Cold Fusion returns the values fine, but when querying in Query analyzer the messages are being truncated. In Enterprize Manager I get a <Long Text> message.

I ran OBJECTPROPERTY and found that TableTextInRowLimit was set to 0, but even after i set it to 1 on our test system with a value of 2000, it still truncated.

Also, the field is set to ntext with a length of 16. I havent worked much with nText, anyone with advise would be much appricated.

Late
Matt

View Replies !
Converting Text Dat To Ntext Data
Hi all,

My organization have a web-based application and needs it to support multilingual so we will be adapting our app to use unicode. However, one of our problems is to convert existing data from text to ntext. I couldn't find anything that document this. What is the best way to do that? I would like to be able to migrate the data from an existing text column to another ntext column in the table.

If I can't do that, what are the options? If it's possible, I would like to be able to do this in sql script.


Thanks a mil, in advance.

Eddie

View Replies !
Truncated Ntext Data Through IDC And ODBC
I only receive the first 39 characters of a ntext field When it's displayed on the web using IDC and ODBC. All of the data appears correctly when the View is looked on the SQL7 SP2 box.

View Replies !
Replace() On Data Type Ntext - How To?
Hello guys,

I would like to execute a t-sql query and replace a string by another in all records.

I did this :

UPDATE myTable
SET myColumn = replace(myColumn,'old string','new string')

The error I get is :
Argument data type ntext is invalid for argument 1 of replace function.

Thank you very much for any help!

Regards,
Fabian

my favorit hoster is ASPnix : www.aspnix.com !

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved