Click here to Skip to main content
15,895,283 members
Home / Discussions / Database
   

Database

 
QuestionHow to Display Photo in sharepoint ? Pin
gangigangi11-Jun-04 18:18
gangigangi11-Jun-04 18:18 
GeneralSQL Help/Sample Pin
karitoppinen11-Jun-04 10:00
karitoppinen11-Jun-04 10:00 
GeneralRe: SQL Help/Sample Pin
-Dr_X-14-Jun-04 19:39
-Dr_X-14-Jun-04 19:39 
GeneralRe: SQL Help/Sample Pin
karitoppinen15-Jun-04 6:00
karitoppinen15-Jun-04 6:00 
Generalkeyboard shortcuts for sql database managment tool Pin
amitmerla11-Jun-04 9:59
amitmerla11-Jun-04 9:59 
GeneralRe: keyboard shortcuts for sql database managment tool Pin
Thea Burger13-Jun-04 8:41
Thea Burger13-Jun-04 8:41 
GeneralOutput Parameters - Help! Pin
mikasa11-Jun-04 9:16
mikasa11-Jun-04 9:16 
GeneralStored Procedures in C# Pin
dtbiju10-Jun-04 19:25
dtbiju10-Jun-04 19:25 
I am using SQL 2K and C#. I want to keep all the database manipulation code at the db itself and so i decided to use Stored Procedures. Now when i tried to use Stored Procs with parameters, i find that i have to supply the datatype as well as the data length when i create the Parameter.
***************************************
SqlParameter parm = new SqlParameter();
parm.ParameterName = "@employeeName";
parm.DbType = DbType.Varchar;
parm.Size = 50;
parm.Direction = ParameterDirection.Input;
cmd.Parameters.Add(parm);
**************************************
Doesn't this DEFEAT the whole purpose(keeping the code independent from database) of using stored procedures This means if i change the size of a parameter in the database, i have to modify my c# code and recompile. Am i missing something or is this the only way to do it?

GeneralRe: Stored Procedures in C# Pin
Michael Potter11-Jun-04 4:31
Michael Potter11-Jun-04 4:31 
GeneralRe: Stored Procedures in C# Pin
VenkatFor.NET11-Jun-04 8:37
VenkatFor.NET11-Jun-04 8:37 
GeneralRe: Stored Procedures in C# Pin
mikasa11-Jun-04 9:13
mikasa11-Jun-04 9:13 
GeneralRe: Stored Procedures in C# Pin
Steven Campbell11-Jun-04 18:36
Steven Campbell11-Jun-04 18:36 
GeneralRe: Stored Procedures in C# Pin
Arjan Einbu15-Jun-04 2:00
Arjan Einbu15-Jun-04 2:00 
GeneralMFC/DAO temporary table Pin
IQ010-Jun-04 10:59
IQ010-Jun-04 10:59 
GeneralPlease i'm stuck with this !!! Pin
IQ012-Jun-04 9:00
IQ012-Jun-04 9:00 
GeneralDatabase Load COmmand Pin
asv10-Jun-04 8:33
asv10-Jun-04 8:33 
GeneralRe: Database Load COmmand Pin
Chris Meech10-Jun-04 9:07
Chris Meech10-Jun-04 9:07 
GeneralRe: Database Load COmmand Pin
Anonymous11-Jun-04 9:51
Anonymous11-Jun-04 9:51 
GeneralDefault name Pin
Small Rat10-Jun-04 7:33
Small Rat10-Jun-04 7:33 
GeneralTransferring data from dbaseIII+ to SQLSvr2000/Access Pin
sanjaysagrawal10-Jun-04 1:51
sanjaysagrawal10-Jun-04 1:51 
GeneralRecord No. Pin
Tuwing.Sabado9-Jun-04 20:56
Tuwing.Sabado9-Jun-04 20:56 
GeneralRe: Record No. Pin
Hesham Amin9-Jun-04 21:30
Hesham Amin9-Jun-04 21:30 
Generalupdate sql server table with dataset from excel Pin
Anonymous9-Jun-04 4:00
Anonymous9-Jun-04 4:00 
Generaldelete/modify stored procedure Pin
sharonz9-Jun-04 2:44
sharonz9-Jun-04 2:44 
GeneralRe: delete/modify stored procedure Pin
Michael Potter9-Jun-04 6:13
Michael Potter9-Jun-04 6:13 

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.