Click here to Skip to main content
15,896,453 members
Home / Discussions / Database
   

Database

 
QuestionHow to get ride of this Error::IErrorInfo.GetDescription failed with E_FAIL(0x80004005)???? Pin
Deepak Koduri25-Nov-07 20:53
Deepak Koduri25-Nov-07 20:53 
QuestionHow to add autonumber in sql server 2005 Pin
Kiran S. S.25-Nov-07 19:44
Kiran S. S.25-Nov-07 19:44 
AnswerRe: How to add automunber in sql server 2005 Pin
soni uma25-Nov-07 19:48
soni uma25-Nov-07 19:48 
GeneralRe: How to add automunber in sql server 2005 Pin
Kiran S. S.27-Nov-07 22:07
Kiran S. S.27-Nov-07 22:07 
QuestionHow to list stored procedure parameter list and its return type Pin
NK725-Nov-07 18:39
NK725-Nov-07 18:39 
AnswerRe: How to list stored procedure parameter list and its return type Pin
Cristian Amarie26-Nov-07 7:50
Cristian Amarie26-Nov-07 7:50 
Questionconcatenating strings into one datagrid cell Pin
falles0125-Nov-07 16:06
falles0125-Nov-07 16:06 
AnswerRe: concatenating strings into one datagrid cell Pin
astanton197826-Nov-07 7:32
astanton197826-Nov-07 7:32 
Thats retarded that they told you to ask here...

Try this and forgive VB, I have been stuck in VB land for too long and can no longer do c# from memory.


<br />
Dim ds as New DataSet() 'substitute your data set<br />
Dim dt as DataTable = ds.Tables(0) 'substitute your data table<br />
Dim dr as DataRow<br />
<br />
Dim strColumnAValue as String = String.Empty<br />
Dim strColumnBValues as New StringBuilder()<br />
<br />
For Each dr in dt.Rows<br />
 If (Convert.ToString(dr(0)) = strColumnAValue) Then 'we are working on the same user "Siann" in this case and will append values<br />
  strColumnBValues.Append(Convert.ToString(dr(1)).Trim() & ",")<br />
<br />
 Else 'You are working on a new person and not "Siann"<br />
  If strColumnBValues.Length <> 0 Then 'there is a user/ skillset to write out<br />
   strColumnBValue = strColumnBValue.Remove(strColumnBValue.ToString().LastIndexOf(","), 1) 'remove the last comma<br />
   Console.Writeline("User: " & strColumnAValue & " - Skills: " & strColumnBValues.ToString()) 'write out the value<br />
   strColumnBValues.Length = 0 'clear the string builder<br />
   strColumnAValue = Convert.ToString(dr(0)) 'set the new column A Value<br />
   strColumnBValues.Append(Convert.ToString(dr(1)).Trim() & ",") 'add the first value<br />
  End If<br />
 End If<br />
<br />
<br />
<br />
Next 'dr<br />
<br />

Questionn00bish SQL Question Pin
sonywar25-Nov-07 6:58
sonywar25-Nov-07 6:58 
AnswerRe: n00bish SQL Question Pin
Colin Angus Mackay25-Nov-07 7:26
Colin Angus Mackay25-Nov-07 7:26 
GeneralRe: n00bish SQL Question Pin
sonywar25-Nov-07 14:29
sonywar25-Nov-07 14:29 
AnswerRe: n00bish SQL Question Pin
DQNOK26-Nov-07 6:05
professionalDQNOK26-Nov-07 6:05 
AnswerRe: n00bish SQL Question Pin
TJoe30-Nov-07 2:36
TJoe30-Nov-07 2:36 
QuestionSQL Server 2000 Backup Pin
Ali el25-Nov-07 4:15
Ali el25-Nov-07 4:15 
QuestionSQL 2005 Imports Pin
Vimalsoft(Pty) Ltd25-Nov-07 1:13
professionalVimalsoft(Pty) Ltd25-Nov-07 1:13 
AnswerRe: SQL 2005 Imports Pin
pmarfleet25-Nov-07 3:53
pmarfleet25-Nov-07 3:53 
GeneralRe: SQL 2005 Imports Pin
Vimalsoft(Pty) Ltd25-Nov-07 19:13
professionalVimalsoft(Pty) Ltd25-Nov-07 19:13 
QuestionDate of Birth Pin
Brendan Vogt24-Nov-07 22:08
Brendan Vogt24-Nov-07 22:08 
AnswerRe: Date of Birth Pin
Christian Graus24-Nov-07 23:13
protectorChristian Graus24-Nov-07 23:13 
AnswerRe: Date of Birth Pin
Cristian Amarie26-Nov-07 7:54
Cristian Amarie26-Nov-07 7:54 
AnswerRe: Date of Birth Pin
PIEBALDconsult26-Nov-07 11:42
mvePIEBALDconsult26-Nov-07 11:42 
GeneralRe: Date of Birth Pin
Cristian Amarie26-Nov-07 23:11
Cristian Amarie26-Nov-07 23:11 
QuestionSP with create table Pin
kimo code23-Nov-07 23:42
kimo code23-Nov-07 23:42 
AnswerRe: SP with create table Pin
John-ph24-Nov-07 0:19
John-ph24-Nov-07 0:19 
Question[Message Deleted] Pin
gubba23-Nov-07 21:33
gubba23-Nov-07 21:33 

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.