Click here to Skip to main content
16,013,082 members
Home / Discussions / Database
   

Database

 
GeneralRe: How to insert ' into database? Pin
Sudee6-Sep-04 22:09
Sudee6-Sep-04 22:09 
GeneralRe: How to insert ' into database? Pin
ting6686-Sep-04 22:48
ting6686-Sep-04 22:48 
GeneralRe: How to insert ' into database? Pin
Colin Angus Mackay6-Sep-04 23:01
Colin Angus Mackay6-Sep-04 23:01 
GeneralRe: How to insert ' into database? Pin
iamalik7-Sep-04 7:53
professionaliamalik7-Sep-04 7:53 
GeneralRe: How to insert ' into database? Pin
EdbertP8-Sep-04 21:19
EdbertP8-Sep-04 21:19 
GeneralRe: How to insert ' into database? Pin
ting6688-Sep-04 22:07
ting6688-Sep-04 22:07 
AnswerRe: How to insert ' into database? Pin
Salil Khedkar13-Sep-04 2:00
Salil Khedkar13-Sep-04 2:00 
Generalunhandled exception Pin
Sudee5-Sep-04 23:07
Sudee5-Sep-04 23:07 
hi all,

I am getting following error..

An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll. There is no problem with my store procedure as I checked from Query Analyzer.

public static void EditTreatInstrument(int Id,string Name,string BarCode,string PDACode,DateTime ExpireTime,
int Method )
{
SqlCommand cmd = WesServer.GetSqlCommand.Get( Conn , CommandType.StoredProcedure ,
"pr_EditTreatInstrument" );

cmd.Parameters.Add( GetSqlParameter.Get( "@intId", SqlDbType.Int, Id ) );
cmd.Parameters.Add( GetSqlParameter.Get( "@nvchrName", SqlDbType.NVarChar, Name ) );
cmd.Parameters.Add( GetSqlParameter.Get( "@vchrBarCode", SqlDbType.VarChar, BarCode ) );
cmd.Parameters.Add( GetSqlParameter.Get( "@vchrPDACode", SqlDbType.VarChar, PDACode ) );
cmd.Parameters.Add( GetSqlParameter.Get(" @dtExpireDate", SqlDbType.DateTime, ExpireTime ));
cmd.Parameters.Add( GetSqlParameter.Get( "@intMethod", SqlDbType.Int, Method ) );
cmd.ExecuteNonQuery();
}


What are the condition when such error can occer ???

Thanks, Sudeep

======
You need a head to program. Cool, fast and sharp.
GeneralRe: unhandled exception Pin
Colin Angus Mackay6-Sep-04 3:47
Colin Angus Mackay6-Sep-04 3:47 
GeneralRe: unhandled exception Pin
Sudee6-Sep-04 16:38
Sudee6-Sep-04 16:38 
GeneralConverting SQL's date format Pin
totig5-Sep-04 20:26
totig5-Sep-04 20:26 
GeneralRe: Converting SQL's date format Pin
Anonymous6-Sep-04 3:42
Anonymous6-Sep-04 3:42 
GeneralRe: Converting SQL's date format Pin
Jon Hulatt6-Sep-04 10:39
Jon Hulatt6-Sep-04 10:39 
GeneralRe: Converting SQL's date format Pin
Grimolfr7-Sep-04 10:28
Grimolfr7-Sep-04 10:28 
GeneralPlugin Algo for Analysis Service Pin
devvvy5-Sep-04 5:21
devvvy5-Sep-04 5:21 
GeneralRe: Plugin Algo for Analysis Service Pin
Mekong River5-Sep-04 7:34
Mekong River5-Sep-04 7:34 
GeneralRe: Plugin Algo for Analysis Service Pin
devvvy5-Sep-04 7:50
devvvy5-Sep-04 7:50 
GeneralSQL server does not exists or access denied Pin
savagerx3-Sep-04 5:11
savagerx3-Sep-04 5:11 
GeneralRe: SQL server does not exists or access denied Pin
Michael P Butler3-Sep-04 21:57
Michael P Butler3-Sep-04 21:57 
GeneralDatabinding Help Pin
Mega13-Sep-04 1:57
Mega13-Sep-04 1:57 
GeneralRe: Databinding Help Pin
Mega13-Sep-04 17:50
Mega13-Sep-04 17:50 
QuestionBest practise for deploying SQL Server Database? Pin
mav.northwind3-Sep-04 1:30
mav.northwind3-Sep-04 1:30 
AnswerRe: Best practise for deploying SQL Server Database? Pin
Michael P Butler3-Sep-04 21:52
Michael P Butler3-Sep-04 21:52 
GeneralRe: Best practise for deploying SQL Server Database? Pin
mav.northwind3-Sep-04 22:10
mav.northwind3-Sep-04 22:10 
GeneralRe: Best practise for deploying SQL Server Database? Pin
Michael P Butler4-Sep-04 1:04
Michael P Butler4-Sep-04 1:04 

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.