Click here to Skip to main content
15,911,785 members
Home / Discussions / C#
   

C#

 
AnswerRe: Quotes...{SIGH} Pin
J4amieC22-Dec-05 1:17
J4amieC22-Dec-05 1:17 
AnswerRe: Quotes...{SIGH} Pin
Guffa22-Dec-05 1:40
Guffa22-Dec-05 1:40 
QuestionAdd existing VS.NET 2003 forms to Beta 2 Pin
Adarsh Shah21-Dec-05 23:49
Adarsh Shah21-Dec-05 23:49 
QuestionCulture information Pin
Mahi.Ragava21-Dec-05 23:05
Mahi.Ragava21-Dec-05 23:05 
AnswerRe: Culture information Pin
albCode22-Dec-05 0:27
albCode22-Dec-05 0:27 
QuestionHow to make a Setup File in Visual Studio 2003?? Pin
Abubakarsb21-Dec-05 22:34
Abubakarsb21-Dec-05 22:34 
AnswerRe: How to make a Setup File in Visual Studio 2003?? Pin
Curtis Schlak.22-Dec-05 2:41
Curtis Schlak.22-Dec-05 2:41 
QuestionGet Table Column Description from SQLServer Pin
freshonlineMax21-Dec-05 21:49
freshonlineMax21-Dec-05 21:49 
Hi Friends
I want to get All Columns Description From sample Table taht i created it in SqlServer Database. I used below code and it worked, but i dont know why it doesn't work now ?
<br />
string strSqlSELECT = "SELECT o.id AS 'ObjectID', " +<br />
		      "CAST(o.Name AS varchar(25)) AS 'TableName', " +<br />
		      "CAST(c.Name AS varchar(25)) AS 'ColumnName', " +<br />
		      "CAST(p.Value AS varchar(50)) AS 'Description', " +<br />
		      "Type = CASE WHEN p.Type=3 THEN 'Table' WHEN p.Type=4  THEN 'Column' ELSE 'UNKNOWN' END " +<br />
  		      "FROM dbo.sysobjects o " +<br />
		      "INNER JOIN dbo.sysproperties p" +<br />
		      " ON o.id = p.id " +<br />
		      "INNER JOIN dbo.syscolumns c " +<br />
	  	      " ON p.smallid = c.colorder " +<br />
		      "WHERE o.id = c.id " +<br />
		      "AND p.type = 4 " +<br />
		      "ORDER BY o.id, o.Name, p.smallid" ;<br />
<br />
       sqlDataAdapter sqlDA = new sqlDataAdapter (strSqlSELECT,Connection) ;<br />
       sqlDA.fill (myDataSet) ;<br />
       <br />
       for (int i=0;i<myDataSet.Tables[0].Rows.Count;i++)<br />
          MessageBox.Show (myDataSet.Tables[0].Rows[i][3].ToString()) ;<br />


Do you have better Idea (Another Code) ?
Thank You



-- modified at 3:56 Thursday 22nd December, 2005
AnswerRe: Get Table Column Description from SQLServer Pin
Guffa21-Dec-05 21:57
Guffa21-Dec-05 21:57 
GeneralRe: Get Table Column Description from SQLServer Pin
freshonlineMax21-Dec-05 22:04
freshonlineMax21-Dec-05 22:04 
GeneralRe: Get Table Column Description from SQLServer Pin
Guffa21-Dec-05 22:30
Guffa21-Dec-05 22:30 
GeneralRe: Get Table Column Description from SQLServer Pin
freshonlineMax22-Dec-05 3:12
freshonlineMax22-Dec-05 3:12 
GeneralRe: Get Table Column Description from SQLServer Pin
Guffa22-Dec-05 7:43
Guffa22-Dec-05 7:43 
Questioncheck data availability Pin
sardonicus21-Dec-05 21:35
sardonicus21-Dec-05 21:35 
AnswerRe: check data availability Pin
enjoycrack21-Dec-05 21:39
enjoycrack21-Dec-05 21:39 
GeneralRe: check data availability Pin
sardonicus21-Dec-05 21:45
sardonicus21-Dec-05 21:45 
GeneralRe: check data availability Pin
enjoycrack22-Dec-05 6:47
enjoycrack22-Dec-05 6:47 
Questionin one project how to get other forms' handle Pin
ater_liu21-Dec-05 20:23
ater_liu21-Dec-05 20:23 
AnswerRe: in one project how to get other forms' handle Pin
enjoycrack21-Dec-05 21:29
enjoycrack21-Dec-05 21:29 
GeneralRe: in one project how to get other forms' handle Pin
Bassam Saoud21-Dec-05 22:59
Bassam Saoud21-Dec-05 22:59 
GeneralRe: in one project how to get other forms' handle Pin
enjoycrack22-Dec-05 6:55
enjoycrack22-Dec-05 6:55 
QuestionDrop down control in .NET Data Grid Pin
Sheshadrinath21-Dec-05 20:06
Sheshadrinath21-Dec-05 20:06 
AnswerRe: Drop down control in .NET Data Grid Pin
freshonlineMax21-Dec-05 21:35
freshonlineMax21-Dec-05 21:35 
QuestionClosing or ending a process Pin
ckruger21-Dec-05 19:28
ckruger21-Dec-05 19:28 
AnswerRe: Closing or ending a process Pin
enjoycrack21-Dec-05 21:41
enjoycrack21-Dec-05 21:41 

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.