Click here to Skip to main content
15,911,142 members
Home / Discussions / Database
   

Database

 
Questionnvarchar(max)(To Be Or Not To Be) Pin
moein.serpico11-Aug-10 4:39
moein.serpico11-Aug-10 4:39 
AnswerRe: nvarchar(max)(To Be Or Not To Be) Pin
Chris Meech11-Aug-10 6:25
Chris Meech11-Aug-10 6:25 
AnswerRe: nvarchar(max)(To Be Or Not To Be) Pin
Jörgen Andersson11-Aug-10 9:23
professionalJörgen Andersson11-Aug-10 9:23 
AnswerRe: nvarchar(max)(To Be Or Not To Be) Pin
PIEBALDconsult11-Aug-10 16:06
mvePIEBALDconsult11-Aug-10 16:06 
AnswerRe: nvarchar(max)(To Be Or Not To Be) Pin
David Skelly12-Aug-10 2:21
David Skelly12-Aug-10 2:21 
QuestionTrouble with SQL Server Records Updation Pin
swornavidhya_m11-Aug-10 3:54
swornavidhya_m11-Aug-10 3:54 
AnswerRe: Trouble with SQL Server Records Updation Pin
Eddy Vluggen11-Aug-10 6:22
professionalEddy Vluggen11-Aug-10 6:22 
GeneralRe: Trouble with SQL Server Records Updation Pin
swornavidhya_m11-Aug-10 18:45
swornavidhya_m11-Aug-10 18:45 
Eddy Vluggen wrote:
There's already a record in the "text_data" table that holds the same value in the "Text_Id" field as the one that you're trying to insert. That fails, since a primary key needs to be unique; you can't add two records in the table with the same key.




Actually, the datas stored in notepad or excel. Then those stored values are copied to "updateprice.mdb". The values from "updateprice.mdb" are transferred to the "text_data" table in server with the method called for updating the values to the server. In this method only i'm facing the problem.

The "Text_Id" field is the unique one and won't have any duplicates in any case. Also, the data team members who are in-charge for inserting datas to server, said that the server updation by inserting is done properly when the record count<=3. If the recordcount exceeds 3, then the error is showing as:

Error Showing as
****************
1 record(s) converted
File Name:DTRinggit081110Ringgit Extends Downtrend Against Greenback 
Microsoft OLE DB Provider for ODBC Drivers error '80004005' 

[Microsoft][ODBC SQL Server Driver][SQL Server]Violation of PRIMARY KEY constraint 'PK_text_data'. Cannot insert duplicate key in object 'text_data'. 

/data_maintain/News.asp, line 86 


I'm blinking and stuck with datas getting updated to the server. Kindly help me.
M.Sworna Vidhya

GeneralRe: Trouble with SQL Server Records Updation Pin
Eddy Vluggen11-Aug-10 20:42
professionalEddy Vluggen11-Aug-10 20:42 
GeneralRe: Trouble with SQL Server Records Updation Pin
swornavidhya_m11-Aug-10 21:19
swornavidhya_m11-Aug-10 21:19 
GeneralRe: Trouble with SQL Server Records Updation Pin
Eddy Vluggen11-Aug-10 21:39
professionalEddy Vluggen11-Aug-10 21:39 
QuestionQuery performance Pin
SatyaKeerthi159-Aug-10 23:09
SatyaKeerthi159-Aug-10 23:09 
AnswerRe: Query performance Pin
Eddy Vluggen9-Aug-10 23:23
professionalEddy Vluggen9-Aug-10 23:23 
AnswerRe: Query performance Pin
dan!sh 10-Aug-10 5:15
professional dan!sh 10-Aug-10 5:15 
AnswerRe: Query performance PinPopular
scottgp10-Aug-10 6:55
professionalscottgp10-Aug-10 6:55 
GeneralRe: Query performance Pin
Jörgen Andersson10-Aug-10 8:07
professionalJörgen Andersson10-Aug-10 8:07 
GeneralRe: Query performance Pin
Mycroft Holmes10-Aug-10 14:48
professionalMycroft Holmes10-Aug-10 14:48 
GeneralRe: Query performance Pin
PIEBALDconsult10-Aug-10 17:59
mvePIEBALDconsult10-Aug-10 17:59 
AnswerRe: Query performance Pin
Bernhard Hiller10-Aug-10 20:17
Bernhard Hiller10-Aug-10 20:17 
Questionhow to write a query change the datatype for primary key coulm in atable using sqlserver 2008. Pin
Ch.Gayatri Subudhi9-Aug-10 19:42
Ch.Gayatri Subudhi9-Aug-10 19:42 
AnswerRe: how to write a query change the datatype for primary key coulm in atable using sqlserver 2008. Pin
Mycroft Holmes9-Aug-10 21:13
professionalMycroft Holmes9-Aug-10 21:13 
GeneralRe: how to write a query change the datatype for primary key coulm in atable using sqlserver 2008. Pin
Ch.Gayatri Subudhi9-Aug-10 21:19
Ch.Gayatri Subudhi9-Aug-10 21:19 
GeneralRe: how to write a query change the datatype for primary key coulm in atable using sqlserver 2008. Pin
Mycroft Holmes9-Aug-10 21:26
professionalMycroft Holmes9-Aug-10 21:26 
GeneralRe: how to write a query change the datatype for primary key coulm in atable using sqlserver 2008. Pin
5fingers10-Aug-10 22:29
5fingers10-Aug-10 22:29 
QuestionSQL Server Indexing Errors with message that should not apply Pin
JHizzle9-Aug-10 2:41
JHizzle9-Aug-10 2:41 

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.