Click here to Skip to main content
16,005,080 members
Home / Discussions / Database
   

Database

 
AnswerRe: Delete all Tables in MS ACCESS Pin
Colin Angus Mackay20-Apr-07 2:26
Colin Angus Mackay20-Apr-07 2:26 
GeneralRe: Delete all Tables in MS ACCESS Pin
DQNOK20-Apr-07 3:28
professionalDQNOK20-Apr-07 3:28 
GeneralRe: Delete all Tables in MS ACCESS Pin
Colin Angus Mackay20-Apr-07 6:55
Colin Angus Mackay20-Apr-07 6:55 
AnswerRe: Delete all Tables in MS ACCESS Pin
DQNOK20-Apr-07 8:58
professionalDQNOK20-Apr-07 8:58 
Questionhow to get column wise data in a row in sql ? Pin
ahmedalisha19-Apr-07 20:07
ahmedalisha19-Apr-07 20:07 
AnswerRe: how to get column wise data in a row in sql ? Pin
Colin Angus Mackay20-Apr-07 0:31
Colin Angus Mackay20-Apr-07 0:31 
GeneralRe: how to get column wise data in a row in sql ? Pin
ahmedalisha20-Apr-07 2:26
ahmedalisha20-Apr-07 2:26 
AnswerRe: how to get column wise data in a row in sql ? Pin
Shetty_8020-Apr-07 3:17
Shetty_8020-Apr-07 3:17 
I think through CURSOR only we can solve this issue. Try the below query.. You can also create one function with this query and get the value back in a single column.

DECLARE @OUTPUT NVARCHAR(100), @NAME NVARCHAR(100)
DECLARE LAST_CURSOR CURSOR
LOCAL SCROLL STATIC
FOR
---Here give your select query...
SELECT NAME FROM DBT_EMPL_DTL
OPEN LAST_CURSOR
set @OUTPUT = ''
FETCH NEXT FROM LAST_CURSOR INTO @NAME
WHILE @@FETCH_STATUS = 0 BEGIN
BEGIN
set @OUTPUT = @OUTPUT + @NAME +','
END
FETCH NEXT FROM LAST_CURSOR INTO @NAME
END
SET @OUTPUT = LTRIM(@OUTPUT)
PRINT @OUTPUT
CLOSE LAST_CURSOR
DEALLOCATE LAST_CURSOR


Cheers,

Shetty

QuestionRe: how to get column wise data in a row in sql ? Pin
M.H.1.2.320-Apr-07 12:03
M.H.1.2.320-Apr-07 12:03 
QuestionSql Server 2005 connection problem Pin
sangramkp19-Apr-07 19:35
sangramkp19-Apr-07 19:35 
AnswerRe: Sql Server 2005 connection problem Pin
Sathesh Sakthivel19-Apr-07 19:53
Sathesh Sakthivel19-Apr-07 19:53 
AnswerRe: Sql Server 2005 connection problem Pin
Jerry Hammond20-Apr-07 17:38
Jerry Hammond20-Apr-07 17:38 
QuestionDisplaying Data in DataGridView [modified] Pin
cocoonwls19-Apr-07 16:30
cocoonwls19-Apr-07 16:30 
AnswerRe: Displaying Data in DataGridView Pin
Tirthadip19-Apr-07 18:58
Tirthadip19-Apr-07 18:58 
GeneralRe: Displaying Data in DataGridView Pin
cocoonwls19-Apr-07 20:15
cocoonwls19-Apr-07 20:15 
Questionwhat is "No overload for method 'runNonSelectQuery' takes '3' arguments" mean Pin
Eyungwah19-Apr-07 5:20
Eyungwah19-Apr-07 5:20 
AnswerRe: what is "No overload for method 'runNonSelectQuery' takes '3' arguments" mean Pin
Colin Angus Mackay19-Apr-07 5:34
Colin Angus Mackay19-Apr-07 5:34 
Questionauto increment Pin
hadad19-Apr-07 5:17
hadad19-Apr-07 5:17 
AnswerRe: auto increment Pin
Colin Angus Mackay19-Apr-07 5:30
Colin Angus Mackay19-Apr-07 5:30 
QuestionShould the INDEX name be used in SELECT statement Pin
cy163@hotmail.com19-Apr-07 4:11
cy163@hotmail.com19-Apr-07 4:11 
AnswerRe: Should the INDEX name be used in SELECT statement Pin
Colin Angus Mackay19-Apr-07 4:33
Colin Angus Mackay19-Apr-07 4:33 
QuestionQuestion on SQL experission for complicated query Pin
cy163@hotmail.com19-Apr-07 3:42
cy163@hotmail.com19-Apr-07 3:42 
AnswerRe: Question on SQL experission for complicated query Pin
Arun.Immanuel20-Apr-07 5:27
Arun.Immanuel20-Apr-07 5:27 
AnswerRe: Question on SQL experission for complicated query Pin
Shetty_8023-Apr-07 2:40
Shetty_8023-Apr-07 2:40 
QuestionBOOL type value GetCollect() and PutCollect, How to store/retrieve BOOL type value from/to SQL server database Pin
cy163@hotmail.com19-Apr-07 3:30
cy163@hotmail.com19-Apr-07 3:30 

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.