Viewing 15 posts - 1,951 through 1,965 (of 2,006 total)
SET @accountID = 1
SET @BeginDate = '20100505 23:59' -- yyyy-mm-dd hh:mm:ss[.mmm]
SET @EndDate ='20100505 23:59' -- yyyy-mm-dd hh:mm:ss[.mmm]
-edit- just so you know, I haven't read your query. Just noticed that @BeginDate...
May 28, 2010 at 7:46 am
Our DBA used to claim he could tell what language you program with the most by the way you layout your SQL :hehe:
May 28, 2010 at 2:57 am
I'd write it like this: -
CREATE TABLE tested.namedkey
(
namedkeyid INT NOT NULL IDENTITY(1, 1)
CONSTRAINT...
May 28, 2010 at 2:41 am
My hobbies are Chess, Watching Sports and Programming (I can't specify a language, since part of this hobby is learning new ones 🙂 )
As a job I develop software.
So. ....
May 28, 2010 at 2:15 am
Without DDL, it's difficult to answer your question. I'd do something like this, if using DATETIME -
DECLARE @currentdate DATETIME,
@lastyear ...
May 27, 2010 at 6:12 am
sachinrshetty (5/27/2010)
--------------------------------------
1 A ...
May 27, 2010 at 3:26 am
satya.sakamuri (5/27/2010)
i ll try using this script,one mor equesting.....in mytable design i given the RUN_DATE column datatype to datetime.
if i use 103 will it pick only...
May 27, 2010 at 3:19 am
Well, I can't do any testing because you haven't provided me with enough information. But I suspect what you want is something like : -
SELECT record_count.table_name,
...
May 27, 2010 at 2:35 am
101 would give you the US MM/DD/YYYY format.
103 would give you the DD/MM/YYYY format you're asking about.
May 27, 2010 at 2:20 am
Like Gail, I'm not entirely certain what you're after. I think you're looking for something like this: -
UPDATE Employee
SET emp_codemeli = @VarEmp_Codemeli,
...
May 26, 2010 at 8:12 am
Well, I don't know how much help you'll get from this. Two points that'll make it more likely you get some: -
May 26, 2010 at 6:24 am
Not sure exactly what you want here, but I think this'll get you started.
--Create Dummy data
--Really, you should've supplied something like this in
--your question.
DECLARE @code INT
DECLARE @Table1 TABLE(
col1...
May 26, 2010 at 6:14 am
da-zero (5/26/2010)
EDIT: grmbl, why hasn't the code of skcadavre any scrollbars and mine has, while mine is much smaller?
All about formatting 🙂
E.G. I'd have written your code like so: -
SELECT...
May 26, 2010 at 6:00 am
da-zero (5/26/2010)
Your solution will work on SQL Server, but not on Access. The getdate() function doesn't exist there.
As the OP proposed, the function DATE() should be used. However, I'm not...
May 26, 2010 at 4:21 am
Viewing 15 posts - 1,951 through 1,965 (of 2,006 total)