Click here to Skip to main content
16,008,954 members
Home / Discussions / Database
   

Database

 
QuestionAlternative to a lookup table Pin
yetanotherchris14-Sep-06 22:42
yetanotherchris14-Sep-06 22:42 
AnswerRe: Alternative to a lookup table Pin
i.j.russell14-Sep-06 23:21
i.j.russell14-Sep-06 23:21 
GeneralRe: Alternative to a lookup table Pin
yetanotherchris14-Sep-06 23:27
yetanotherchris14-Sep-06 23:27 
GeneralRe: Alternative to a lookup table Pin
i.j.russell15-Sep-06 5:35
i.j.russell15-Sep-06 5:35 
QuestionNew to SQL, trying to retrieve data with VB.NET Pin
Wazr809814-Sep-06 18:41
Wazr809814-Sep-06 18:41 
AnswerRe: New to SQL, trying to retrieve data with VB.NET Pin
srushti0814-Sep-06 21:00
srushti0814-Sep-06 21:00 
AnswerRe: New to SQL, trying to retrieve data with VB.NET Pin
Michael P Butler15-Sep-06 21:05
Michael P Butler15-Sep-06 21:05 
QuestionLet a paramter calculate it's own size Pin
monrobot1314-Sep-06 16:43
monrobot1314-Sep-06 16:43 
I'm doing a program to try to learn some ADO.NET programming and I'm running into the following problem:
One of the fields in my database is a VarBinary(MAX) that I want to store and image in.

I created my own SqlDataAdapter to talk to the DataSet and such, now on the SqlDataAdapter for the InsertCommand and UpdateCommand I have the following parameter to correspond to the image field in the database:
param_arr2[7] = new SqlParameter ("@jacket", SqlDbType.Image, 15000, "jacket");
the problem is that I don't know how big the image is going to be so I don't want to have to specify the size in the parameter, and if I change the parameter to
param_arr2[7] = new SqlParameter ("@jacket", SqlDbType.Image);
when I try to update the data I get and exception with the message "Parameterized Query ... expects parameter @jacket, which was not supplied." Any help on this problem would be most appreciated.

Thanks!


- Aaron

AnswerRe: Let a paramter calculate it's own size Pin
Michael Potter15-Sep-06 4:46
Michael Potter15-Sep-06 4:46 
GeneralRe: Let a paramter calculate it's own size Pin
monrobot1315-Sep-06 11:07
monrobot1315-Sep-06 11:07 
GeneralRe: Let a paramter calculate it's own size Pin
Rob Graham17-Sep-06 5:41
Rob Graham17-Sep-06 5:41 
Questionjoins Pin
srushti0814-Sep-06 8:56
srushti0814-Sep-06 8:56 
AnswerRe: joins Pin
Chris Meech14-Sep-06 9:26
Chris Meech14-Sep-06 9:26 
QuestionWhen you delete a table,its strututral definition,data,indexes,views,constraints are permanently deleted from a database? Pin
srushti0814-Sep-06 8:52
srushti0814-Sep-06 8:52 
AnswerRe: When you delete a table,its strututral definition,data,indexes,views,constraints are permanently deleted from a database? Pin
Stephen McGuire14-Sep-06 9:11
Stephen McGuire14-Sep-06 9:11 
AnswerRe: When you delete a table,its strututral definition,data,indexes,views,constraints are permanently deleted from a database? Pin
Rob Graham14-Sep-06 10:55
Rob Graham14-Sep-06 10:55 
AnswerRe: When you delete a table,its strututral definition,data,indexes,views,constraints are permanently deleted from a database? Pin
yetanotherchris15-Sep-06 4:20
yetanotherchris15-Sep-06 4:20 
QuestionConvert Access VBA module to SQL udf Pin
Guytz14-Sep-06 3:38
Guytz14-Sep-06 3:38 
QuestionHow can I insert byte array variable in sql server ? Pin
Orchid8513-Sep-06 23:20
Orchid8513-Sep-06 23:20 
AnswerRe: How can I insert byte array variable in sql server ? Pin
Colin Angus Mackay14-Sep-06 5:27
Colin Angus Mackay14-Sep-06 5:27 
Questionuser vs login in sql server 2000 Pin
yazan_zahi13-Sep-06 22:13
yazan_zahi13-Sep-06 22:13 
AnswerRe: user vs login in sql server 2000 Pin
Colin Angus Mackay13-Sep-06 23:18
Colin Angus Mackay13-Sep-06 23:18 
QuestionSearching through multiple fields Pin
monrobot1313-Sep-06 17:47
monrobot1313-Sep-06 17:47 
AnswerRe: Searching through multiple fields Pin
Dinuj Nath13-Sep-06 18:23
Dinuj Nath13-Sep-06 18:23 
GeneralRe: Searching through multiple fields Pin
monrobot1314-Sep-06 16:22
monrobot1314-Sep-06 16:22 

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.