Click here to Skip to main content
16,005,826 members
Home / Discussions / Database
   

Database

 
QuestionSecure on Lan?? Pin
Member 196994117-May-05 2:21
Member 196994117-May-05 2:21 
AnswerRe: Secure on Lan?? Pin
Colin Angus Mackay17-May-05 3:38
Colin Angus Mackay17-May-05 3:38 
GeneralYukon Vs 2000 Pin
Ashok_S17-May-05 2:16
Ashok_S17-May-05 2:16 
GeneralRe: Yukon Vs 2000 Pin
Christian Graus17-May-05 13:46
protectorChristian Graus17-May-05 13:46 
GeneralRe: Yukon Vs 2000 Pin
17-May-05 21:17
suss17-May-05 21:17 
GeneralRe: Yukon Vs 2000 Pin
Christian Graus18-May-05 12:35
protectorChristian Graus18-May-05 12:35 
GeneralMEMO Pin
Dead Ghost16-May-05 14:21
Dead Ghost16-May-05 14:21 
GeneralMySQL problem with varchar primary key Pin
razialx16-May-05 9:39
razialx16-May-05 9:39 
Hello,

I am currently porting software for my University from MSSql to MySql. I am having some problems and would really appreciate any help you could give.

I am unable to change the core design of the database tables because another student is working on software to process the resulting data, and he is hard coding everything. I have expressed how this is a bad design idea, but to no avail. So I am stuck with the current design.

In this design, the tables use a varchar(8000) as a primary key for relating the tables. This is automagically cast into a TEXT field by MySql, and it of course throws the error that a TEXT field as a primary key must have an index. I went ahead and gave indexes to all those text fields and everything on that part works great.

However, later in the database creation there are some constraint commands put on these tables that use those TEXT fields as the foreign key, and when it sees that this foreign key is a TEXT field it throws an error that a lenght must be specified.

I have no idea (after reading the manual again) how to specify a length in the constraint command. If you know how please let me know, I can post the code if that would help.

Thanks
Tim Reynolds
GeneralRe: MySQL problem with varchar primary key Pin
Christian Graus16-May-05 14:51
protectorChristian Graus16-May-05 14:51 
GeneralRe: MySQL problem with varchar primary key Pin
Colin Angus Mackay16-May-05 20:26
Colin Angus Mackay16-May-05 20:26 
GeneralRe: MySQL problem with varchar primary key Pin
niansah16-May-05 21:04
niansah16-May-05 21:04 
GeneralRe: MySQL problem with varchar primary key Pin
razialx20-May-05 10:44
razialx20-May-05 10:44 
Generaltransaction, asp.net and access db Pin
fuel2run16-May-05 3:55
fuel2run16-May-05 3:55 
GeneralListBox event in a DataGrid's Header Pin
Nizar Abdeljaoued16-May-05 1:15
Nizar Abdeljaoued16-May-05 1:15 
GeneralRe: TextBox event in a DataGrid's Header Pin
Colin Angus Mackay16-May-05 1:36
Colin Angus Mackay16-May-05 1:36 
GeneralRe: ListBox event in a DataGrid's Header Pin
Nizar Abdeljaoued16-May-05 1:58
Nizar Abdeljaoued16-May-05 1:58 
GeneralQuestion concerning Sorting DataGrids Pin
nad226315-May-05 5:06
nad226315-May-05 5:06 
GeneralRe: Question concerning Sorting DataGrids Pin
Dominic Farr28-Jun-05 20:03
Dominic Farr28-Jun-05 20:03 
GeneralRe: Question concerning Sorting DataGrids Pin
Dominic Farr30-Jun-05 6:51
Dominic Farr30-Jun-05 6:51 
Questionupdateable query? Pin
Jerry Hammond15-May-05 4:56
Jerry Hammond15-May-05 4:56 
AnswerRe: updateable query? Pin
anj198315-May-05 5:20
anj198315-May-05 5:20 
GeneralTimeSpan instead of DateTime in a DataSet populated from a SQL Anywhere DB Pin
JasonJB14-May-05 4:38
JasonJB14-May-05 4:38 
GeneralGenerate Auto Number in SQL server 2000 Pin
imshally8114-May-05 0:42
imshally8114-May-05 0:42 
GeneralRe: Generate Auto Number in SQL server 2000 Pin
Colin Angus Mackay14-May-05 3:55
Colin Angus Mackay14-May-05 3:55 
GeneralLogin page Pin
Desi Bravo13-May-05 12:38
Desi Bravo13-May-05 12:38 

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.