|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Distinct Problem
Set RS=Condata.Execute("SELECT DISTINCT course,title,CRhr,COU_DESC FROM schedule WHERE subj='" & tsubj & "'")
WHat is wrong with that statement? Here is the error:Microsoft OLE DB Provider for SQL Server (0x80040E14) Incorrect syntax near the keyword 'DISTINCT'. I did try to put the course inside of (course)...it still gives an error. THanks for your help. |
|
#2
|
||||
|
||||
|
Try writing the query in the database or in query analyzer first, then use it in the code, only when you have it correct.
|
|
#3
|
|||
|
|||
|
thanks for your sugguestion!
|
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > Distinct Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|