Click here to Skip to main content
15,919,028 members
Home / Discussions / Database
   

Database

 
QuestionLocking a table in sqlserver 2000 Pin
Uma Kameswari26-Dec-06 21:35
Uma Kameswari26-Dec-06 21:35 
AnswerRe: Locking a table in sqlserver 2000 Pin
Colin Angus Mackay27-Dec-06 0:20
Colin Angus Mackay27-Dec-06 0:20 
Questiontext color of a field Pin
248912826-Dec-06 20:13
248912826-Dec-06 20:13 
AnswerRe: text color of a field Pin
Paul Conrad27-Dec-06 18:26
professionalPaul Conrad27-Dec-06 18:26 
Questionupdate data from datagrid using ado in vb.net Pin
bhaskar varma26-Dec-06 19:45
bhaskar varma26-Dec-06 19:45 
AnswerRe: update data from datagrid using ado in vb.net Pin
Walter_H8-Jan-07 2:41
Walter_H8-Jan-07 2:41 
QuestionCopying text field Pin
Imtiaz Murtaza25-Dec-06 23:35
Imtiaz Murtaza25-Dec-06 23:35 
AnswerRe: Copying text field Pin
Mairaaj Khan27-Dec-06 1:02
professionalMairaaj Khan27-Dec-06 1:02 
Imtiaz Murtaza wrote:
I want to insert a new row in my table which is supposed to be the ditto copy of one of the previous rows. Now the problem is that there is one field in my table having datatype text. This column value is not getting copied from source to destination and i get error from SQL server that it is not allowed to copy text, nvarchar and binary types.


With SQL Server 2000:-
Insert Into t4 (f1,f2) Select f1, f2 From t4 Where f1=2

Here f2 field is of type text in t4 table. This query is successfully executing. I guess you are using functions with text type field, which may be a reason for the error.

Imtiaz Murtaza wrote:
Now if i convert the column value to varchar then it gets coppied. But i dont want to convert it to varchar because varchar has a limit of 8K characters, and my text column may contains more than 8K characters; and they get truncated while converting to varchar.

Please tell me how to copy the text datatype value from one row to the other.


Try to follow this technique:
Insert Into t4 (f1, f2) Select f1, Substring(f2,1,8000) + Substring(f2,8001,8000) from t4 where f1=3

Hope this may help.


________________________________
Success is not something to wait for, its something to work for.

QuestionExport and import commands using C# Pin
KishoreT25-Dec-06 21:16
KishoreT25-Dec-06 21:16 
QuestionMerging of two datasets Pin
KishoreT25-Dec-06 21:15
KishoreT25-Dec-06 21:15 
Questionmdb file in vs2005 support UTF8 Pin
hamidaman25-Dec-06 11:41
hamidaman25-Dec-06 11:41 
QuestionAssiging a Dataset to GridView Pin
rahul_spi25-Dec-06 8:18
rahul_spi25-Dec-06 8:18 
AnswerRe: Assiging a Dataset to GridView Pin
PavanPareta25-Dec-06 17:22
PavanPareta25-Dec-06 17:22 
QuestionHow to connect the POstgreSQL 8.1.4 with Borland Developer Studio 2006 (Delphi.NET) Pin
Dotnetfish25-Dec-06 5:29
Dotnetfish25-Dec-06 5:29 
AnswerRe: How to connect the POstgreSQL 8.1.4 with Borland Developer Studio 2006 (Delphi.NET) Pin
Keith Malwitz25-Dec-06 17:40
Keith Malwitz25-Dec-06 17:40 
Questionhow to select multiple data from a single DataSet. Pin
PavanPareta25-Dec-06 1:34
PavanPareta25-Dec-06 1:34 
QuestionNOT NULL + DefaultValue column in DataGridView Pin
El'Cachubrey24-Dec-06 23:37
El'Cachubrey24-Dec-06 23:37 
AnswerRe: NOT NULL + DefaultValue column in DataGridView Pin
Uri Lavi26-Dec-06 8:48
Uri Lavi26-Dec-06 8:48 
GeneralRe: NOT NULL + DefaultValue column in DataGridView Pin
El'Cachubrey26-Dec-06 21:19
El'Cachubrey26-Dec-06 21:19 
GeneralRe: NOT NULL + DefaultValue column in DataGridView Pin
Uri Lavi27-Dec-06 0:59
Uri Lavi27-Dec-06 0:59 
GeneralRe: NOT NULL + DefaultValue column in DataGridView Pin
El'Cachubrey27-Dec-06 4:08
El'Cachubrey27-Dec-06 4:08 
QuestionSelect satatment Pin
wmostafaw23-Dec-06 21:31
wmostafaw23-Dec-06 21:31 
AnswerRe: Select satatment Pin
rp_suman23-Dec-06 22:53
rp_suman23-Dec-06 22:53 
AnswerRe: Select satatment Pin
Cristian Amarie25-Dec-06 22:42
Cristian Amarie25-Dec-06 22:42 
AnswerRe: Select satatment Pin
albCode26-Dec-06 1:32
albCode26-Dec-06 1:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.