Skip to content
View in the app

A better way to browse. Learn more.

Komuniti @PuTeRA

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Asp - Sql Server 2005

Featured Replies

Salam semua... saya nak minta sifu2 tolong saya.
saya ada masalah nak papar data bila guna SQL seperti di bawah:
[html]
DECLARE @Sample TABLE (ID INT, SubID INT)
INSERT @Sample
SELECT 1234, 112 UNION ALL
SELECT 1234, 113 UNION ALL
SELECT 1234, 114 UNION ALL
SELECT 3234, 212 UNION ALL
SELECT 3234, 213 UNION ALL
SELECT 3234, 214
-------------------------------------------------------------
SELECT i.ID, STUFF(g.y, 1, 1, '') AS SubIDs FROM ( SELECT ID FROM @Sample GROUP BY ID ) AS i
CROSS APPLY ( SELECT DISTINCT ',' + CAST(SubID AS VARCHAR(11))
FROM @Sample AS s
WHERE s.ID = i.ID ORDER BY ',' + CAST(SubID AS VARCHAR(11)) FOR XML PATH('') ) AS g(y)
[/html]
Kalau Run kat SQL server data kuar cantik.. contoh data:

[html]
ALI 2012 January,February,March
ABU 2012 January,February
[/html]
tapi bila saya exec dalam page asp DataSet cam kosong.. Harap ada yang sudi reply.. thanks..

Edited by Dade Murphy

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.