Viewing 7 posts - 16 through 22 (of 22 total)
If you are stuck with an existing db design, you should be able to do something like this:
July 15, 2004 at 5:04 pm
Alternatively...
Don't convert '10/10/2004'!
cast('20040101' as datetime) will work every time.
The format is yyyymmdd and is unambiguous.
July 15, 2004 at 4:51 pm
Simplest way I know is as follows:
cast(floor(cast(getdate() as float)) as datetime)
This will give the current date with no time.
July 15, 2004 at 4:41 pm
Call me a geek, but I really think that this type of question misses the point, much as many questions in VB competency exams do:
What does is matter whether you...
May 31, 2004 at 4:20 pm
As far as I am aware, any context changes (current DB, SET options etc) only apply for the duration of the dynamically executed batch.
So:
use db1exec ('use...May 11, 2004 at 5:10 pm
I've never experienced this problem, although I connect through OLEDB rather than ODBC.
The approach I tend to take is to either put the insert into a stored procedure eg:
May 11, 2004 at 4:58 pm
Viewing 7 posts - 16 through 22 (of 22 total)