Click here to Skip to main content
15,913,055 members
Home / Discussions / Database
   

Database

 
AnswerRe: sql count Pin
Mycroft Holmes23-Aug-08 23:05
professionalMycroft Holmes23-Aug-08 23:05 
GeneralRe: sql count Pin
bapu288923-Aug-08 23:24
bapu288923-Aug-08 23:24 
GeneralRe: sql count Pin
Blue_Boy24-Aug-08 10:10
Blue_Boy24-Aug-08 10:10 
AnswerRe: sql count Pin
NeverHeardOfMe24-Aug-08 11:42
NeverHeardOfMe24-Aug-08 11:42 
AnswerRe: sql count Pin
bapu288924-Aug-08 21:57
bapu288924-Aug-08 21:57 
Questionneed help with SQL Pin
Sujay chakraborty22-Aug-08 21:46
Sujay chakraborty22-Aug-08 21:46 
AnswerRe: need help with SQL Pin
www.Developerof.NET22-Aug-08 22:17
www.Developerof.NET22-Aug-08 22:17 
QuestionRe: need help with SQL Pin
Sujay chakraborty23-Aug-08 21:19
Sujay chakraborty23-Aug-08 21:19 
well first of all thanx for helping me out with such silly mistakes. I really appreciate that.

well as far as my second doubt is concerned, what i m trying to do is to fetch records from the database to a DataGridView according to the query passed(i.e. a select command which will fill up the table in the dataset), what i m doing is m not externally attaching this DataGridView with the concerned table (from the properties of the datagridview), rather after filling up the dataset and the table m doing this in the SelectedIndexChanged event of the ComboBox:


DataGridView1.DataSource = null;
DataGridView1.DataMember = null;
DataGridView1.Refresh();
myAD.Fill(ds,"tbl1"); //myAD is DataAdapter and ds is the DataSet
DataGridView1.DataSource = ds;
DataGridView1.DataMember = "tbl1";
DataGridView1.Refresh();

well this code works fine for the first time and fetches me the exact result, but when i change the item in the combobox it still keeps the previous previous recods and adds the new ones below. I want the previous records to disappear.I tried the method DataGridView1.Rows.Clear() but its giving me error.

Please do explain me what is actually happening wrong because m new to this technology, your help is greatly awaited!!! Smile | :)

Regards
Sujay
AnswerRe: need help with SQL Pin
Paul Conrad23-Aug-08 7:29
professionalPaul Conrad23-Aug-08 7:29 
GeneralRe: need help with SQL Pin
Kanniah23-Aug-08 20:22
Kanniah23-Aug-08 20:22 
GeneralRe: need help with SQL Pin
Pete O'Hanlon24-Aug-08 11:11
mvePete O'Hanlon24-Aug-08 11:11 
QuestionSQL query to copy table from one database into another database Pin
ankswe22-Aug-08 19:24
ankswe22-Aug-08 19:24 
AnswerRe: SQL query to copy table from one database into another database Pin
Mycroft Holmes22-Aug-08 19:41
professionalMycroft Holmes22-Aug-08 19:41 
GeneralRe: SQL query to copy table from one database into another database Pin
Jerry Hammond23-Aug-08 7:37
Jerry Hammond23-Aug-08 7:37 
GeneralRe: SQL query to copy table from one database into another database Pin
Mycroft Holmes23-Aug-08 13:48
professionalMycroft Holmes23-Aug-08 13:48 
QuestionConnecting to custom database [modified] Pin
ASPnoob22-Aug-08 17:31
ASPnoob22-Aug-08 17:31 
AnswerRe: Connecting to custom database Pin
Mycroft Holmes22-Aug-08 19:47
professionalMycroft Holmes22-Aug-08 19:47 
QuestionExpansion advice Pin
David Kalkwarf22-Aug-08 16:16
David Kalkwarf22-Aug-08 16:16 
AnswerRe: Expansion advice Pin
FyreWyrm22-Aug-08 18:01
FyreWyrm22-Aug-08 18:01 
GeneralRe: Expansion advice Pin
David Kalkwarf23-Aug-08 5:35
David Kalkwarf23-Aug-08 5:35 
AnswerRe: Expansion advice Pin
Mycroft Holmes22-Aug-08 19:58
professionalMycroft Holmes22-Aug-08 19:58 
GeneralRe: Expansion advice Pin
David Kalkwarf23-Aug-08 5:09
David Kalkwarf23-Aug-08 5:09 
GeneralRe: Expansion advice Pin
Mycroft Holmes23-Aug-08 13:46
professionalMycroft Holmes23-Aug-08 13:46 
Questionhow to use SQL language to destroy SQL Server 2000 Pin
ChinaTJBoy22-Aug-08 14:43
ChinaTJBoy22-Aug-08 14:43 
AnswerRe: how to use SQL language to destroy SQL Server 2000 Pin
Blue_Boy22-Aug-08 14:50
Blue_Boy22-Aug-08 14:50 

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.