Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Set Rs1 = objconn.execute ("SET DATEFORMAT dmy SELECT * FROM members INNER JOIN tEvents ON members.UserID = tEvents.UserID INNER JOIN pubs ON tEvents.PubID = pubs.PubID ORDER BY eventTime")
Obviously, you can't use SELECT * (and shouldn't, anyway) because you need to change the format of the data, unless you want to change the format in your application.In your SQL, change the SELECT * to
SELECT <aField>, <anotherField>, CONVERT(CHAR(8), eventtime, 108) FROM members INNER JOIN ... /* rest of your query here */
jarv
Posting Yak Master
131 Posts
Posted - 2007-08-05 : 15:25:09
can't user SELECT *? can't i set it up in the MSSQL db to just show teh date?
spirit1
Cybernetic Yak Master
11752 Posts
Posted - 2007-08-05 : 15:52:37
no you can't. send the whole datetime to your asp and format it there to show only time._______________________________________________Causing trouble since 1980blog: http://weblogs.sqlteam.com/mladenp