Click here to Skip to main content
15,890,399 members
Home / Discussions / Database
   

Database

 
GeneralADO Update Question Pin
Santanu Lahiri23-Aug-05 11:16
Santanu Lahiri23-Aug-05 11:16 
GeneralRe: ADO Update Question Pin
miah alom25-Aug-05 11:34
miah alom25-Aug-05 11:34 
GeneralRe: ADO Update Question Pin
Santanu Lahiri26-Aug-05 7:51
Santanu Lahiri26-Aug-05 7:51 
GeneralSearching a database Pin
Binary011023-Aug-05 9:36
Binary011023-Aug-05 9:36 
GeneralRe: Searching a database Pin
Colin Angus Mackay23-Aug-05 21:21
Colin Angus Mackay23-Aug-05 21:21 
GeneralRe: Searching a database Pin
Binary011024-Aug-05 6:18
Binary011024-Aug-05 6:18 
Generalconcatenate recordset into one row Pin
JKroschel23-Aug-05 9:11
JKroschel23-Aug-05 9:11 
GeneralRe: concatenate recordset into one row Pin
airbus38024-Aug-05 22:34
airbus38024-Aug-05 22:34 
Try this T SQL script (you ca make a SQL Server function)

--parameter @id
DECLARE @id INT
SET @id = 5

DECLARE @ssum NVARCHAR(255)
DECLARE @dayofweek NVARCHAR(25)
SET @ssum = ''

DECLARE crs CURSOR FOR SELECT DAYOFWEEK FROM schedule WHERE ID = @id
OPEN crs

FETCH NEXT FROM crs INTO @dayofweek
WHILE( @@FETCH_STATUS = 0 )
BEGIN
SET @ssum = @ssum + ',' + @dayofweek
FETCH NEXT FROM crs INTO @dayofweek
END

CLOSE crs
DEALLOCATE crs

IF( LEN(@ssum) != 0 )
SET @ssum = SUBSTRING(@ssum,2,255)

PRINT @ssum


GeneralRe: concatenate recordset into one row Pin
JKroschel25-Aug-05 4:28
JKroschel25-Aug-05 4:28 
GeneralRe: concatenate recordset into one row Pin
Davene31-Aug-05 8:14
Davene31-Aug-05 8:14 
GeneralRe: concatenate recordset into one row Pin
airbus38031-Aug-05 11:45
airbus38031-Aug-05 11:45 
GeneralRe: concatenate recordset into one row Pin
Davene31-Aug-05 12:20
Davene31-Aug-05 12:20 
GeneralSQL Mail Pin
samoore23-Aug-05 6:09
samoore23-Aug-05 6:09 
GeneralRe: SQL Mail Pin
samoore23-Aug-05 7:32
samoore23-Aug-05 7:32 
GeneralProblem with Update ADO record through VBS Pin
IFriendly23-Aug-05 4:20
IFriendly23-Aug-05 4:20 
GeneralT-SQL Problem Pin
WDI23-Aug-05 2:45
WDI23-Aug-05 2:45 
GeneralRe: T-SQL Problem Pin
Colin Angus Mackay23-Aug-05 3:13
Colin Angus Mackay23-Aug-05 3:13 
GeneralRe: T-SQL Problem Pin
WDI23-Aug-05 4:27
WDI23-Aug-05 4:27 
GeneralRe: T-SQL Problem Pin
Colin Angus Mackay23-Aug-05 4:54
Colin Angus Mackay23-Aug-05 4:54 
GeneralRe: T-SQL Problem Pin
Frank Kerrigan23-Aug-05 4:16
Frank Kerrigan23-Aug-05 4:16 
GeneralFiltering and Paging Pin
WDI23-Aug-05 2:11
WDI23-Aug-05 2:11 
GeneralRe: Filtering and Paging Pin
miah alom25-Aug-05 10:40
miah alom25-Aug-05 10:40 
QuestionCannot lock record? Pin
Javolin22-Aug-05 14:30
Javolin22-Aug-05 14:30 
AnswerRe: Cannot lock record? Pin
Christian Graus22-Aug-05 14:33
protectorChristian Graus22-Aug-05 14:33 
Questioninsert text truncated in ADO, not in ODBC? Pin
ir_fuel22-Aug-05 11:06
ir_fuel22-Aug-05 11:06 

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.