Click here to Skip to main content
15,914,111 members
Home / Discussions / Database
   

Database

 
GeneralRe: data integrity using triggers check date Pin
drequinox21-Nov-06 11:11
drequinox21-Nov-06 11:11 
QuestionRe: data integrity using triggers check date Pin
drequinox21-Nov-06 11:12
drequinox21-Nov-06 11:12 
GeneralRe: data integrity using triggers check date Pin
Pete O'Hanlon21-Nov-06 22:57
mvePete O'Hanlon21-Nov-06 22:57 
QuestionHelp with SQL query!!! Pin
bazpaul21-Nov-06 4:51
bazpaul21-Nov-06 4:51 
AnswerRe: Help with SQL query!!! Pin
Farhan Noor Qureshi21-Nov-06 4:58
Farhan Noor Qureshi21-Nov-06 4:58 
GeneralRe: Help with SQL query!!! Pin
bazpaul21-Nov-06 5:00
bazpaul21-Nov-06 5:00 
AnswerRe: Help with SQL query!!! Pin
Eric Dahlvang21-Nov-06 9:53
Eric Dahlvang21-Nov-06 9:53 
QuestionStore Proc Problem Pin
tthellebuyck21-Nov-06 4:49
tthellebuyck21-Nov-06 4:49 
I want to use a Gridview for a standard CRUD app.
So far I have my delete event wired up but I have a problem with my stored proc. I receive this error everytime i run my debugger and click the delete event. I have a catch event to catch this error.

The SqlParameterCollection only accepts non-null SqlParameter type objects, not Parameter objects.

Here is the code for my deleterow event. Any help is appreciated.

protected void DeleteRow(object sender, GridViewDeleteEventArgs e)
{
try
{
SqlConnection connection = new SqlConnection();
connection.ConnectionString = ConfigurationManager.ConnectionStrings["PokerTraxConnectionString"].ToString();
connection.Open();
SqlCommand delCommand = new SqlCommand();
delCommand.Connection = connection;
delCommand.CommandText = "usp_Delete_Loan";
delCommand.CommandType = CommandType.StoredProcedure;
delCommand.Parameters.Add(new Parameter("LoanId"));
delCommand.ExecuteNonQuery();
SqlDataAdapter adapter = new SqlDataAdapter(delCommand);
DataSet ds = new DataSet();
GridView1.DataSource = ds;
adapter.Fill(ds);
Cache["Loan"] = ds;
BindPlayerNames();
connection.Close();
connection.Dispose();
delCommand.Dispose();

}
catch (Exception ex)
{

errorMessage.Text = ex.Message;
}
}
AnswerRe: Store Proc Problem Pin
Leah_Garrett21-Nov-06 17:51
Leah_Garrett21-Nov-06 17:51 
GeneralRe: Store Proc Problem Pin
tthellebuyck22-Nov-06 3:15
tthellebuyck22-Nov-06 3:15 
QuestionUnable to update the record. Pin
Arun Hegde21-Nov-06 3:58
Arun Hegde21-Nov-06 3:58 
AnswerRe: Unable to update the record. Pin
Colin Angus Mackay21-Nov-06 4:27
Colin Angus Mackay21-Nov-06 4:27 
QuestionHow to creat the registration form for Acces Pin
lopa1221-Nov-06 3:32
lopa1221-Nov-06 3:32 
AnswerRe: How to creat the registration form for Acces Pin
Paul Conrad21-Nov-06 19:39
professionalPaul Conrad21-Nov-06 19:39 
QuestionCreating a database Pin
Christer Claesson21-Nov-06 1:17
Christer Claesson21-Nov-06 1:17 
AnswerRe: Creating a database Pin
ChandraRam21-Nov-06 1:48
ChandraRam21-Nov-06 1:48 
AnswerRe: Can't connect to Mysql "godaddy" Pin
Paul Conrad21-Nov-06 19:41
professionalPaul Conrad21-Nov-06 19:41 
GeneralRe: Can't connect to Mysql "godaddy" [modified] Pin
Samuel G21-Nov-06 20:14
Samuel G21-Nov-06 20:14 
GeneralRe: Can't connect to Mysql "godaddy" Pin
Paul Conrad21-Nov-06 20:57
professionalPaul Conrad21-Nov-06 20:57 
GeneralRe: Can't connect to Mysql "godaddy" Pin
Samuel G21-Nov-06 21:29
Samuel G21-Nov-06 21:29 
QuestionError While importing Excel file in to Sql server 2005. Pin
srinivasintouch20-Nov-06 23:03
srinivasintouch20-Nov-06 23:03 
AnswerRe: Error While importing Excel file in to Sql server 2005. Pin
Paul Conrad25-Dec-06 18:19
professionalPaul Conrad25-Dec-06 18:19 
QuestionFinding a date between two dates.. [really urgent] Pin
kkadir20-Nov-06 22:15
kkadir20-Nov-06 22:15 
AnswerRe: Finding a date between two dates.. [really urgent] Pin
Colin Angus Mackay20-Nov-06 23:19
Colin Angus Mackay20-Nov-06 23:19 
GeneralRe: Finding a date between two dates.. [really urgent] Pin
kkadir20-Nov-06 23:36
kkadir20-Nov-06 23:36 

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.