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.
| Author |
Topic |
|
jsgaarde
Starting Member
1 Post |
Posted - 2005-05-26 : 04:33:18
|
| Hi,I am creating an extended stored procedure. When I handle dates,it is easy to convert DBDATETIME structures to the more readable structure DBDATEREC using dbdatecrack(). But how do I go theother way when I need to create a resultset with dates.Reading date fields: DBDATEREC dr; DBDATETIME dt; memcpy((void*)&dt, srv_paramdata(pSrvProc, col), sizeof(DBDATETIME)); // From DBDATETIME to DBDATEREC dbdatecrack(0,&dr,&dt); Creating resultset: DBDATEREC dr; .. // set up dr // ???????? From DBDATEREC to DBDATETIME ????? DBDATETIME dt; // ???????? srv_setcollen (pSrvProc, nCol+1, sizeof(dt)); srv_setcoldata (pSrvProc, nCol+1, dt); How do you do this? |
|
|
|
|
|