Viewing 15 posts - 8,791 through 8,805 (of 26,490 total)
This??
ALTER PROCEDURE [dbo].[rpt_DCF_Utilization_sp]
(
@ENDdate datetime,
@FISCALDATE DATEtime
)
as
DECLARE @ENDDATE DATE, @fiscalstart DATE;
set @ENDdate = '02/01/2013'
set @fiscalstart = dateadd(mm, 6, dateadd(yy, datediff(yy, cast('19000101' as date), dateadd(mm, 6, @ENDdate)) - 1, cast('19000101' as date)))
SELECT TOP...
February 14, 2013 at 1:07 pm
sumith1andonly1 (2/14/2013)
its my challenge to to solve it myself...
Question not asked, are you the DBA on this server?
February 14, 2013 at 12:54 pm
Or this:
declare @TestDate date = '20120612';
select
@TestDate,
dateadd(mm, 6, dateadd(yy, datediff(yy, cast('19000101' as date), dateadd(mm, 6, @TestDate)) - 1, cast('19000101' as date)));
set @TestDate =...
February 14, 2013 at 12:49 pm
If you can't post the DDL (CREATE TABLE statement) for the table(s) involved, sample data (as INSERT INTO statements) for the tables involved, and expected results based on the sample...
February 14, 2013 at 8:19 am
eagb (2/14/2013)
I have an unique idenifier for a person, and a space delimited field containing grades they teach, since they could teach...
February 14, 2013 at 8:13 am
Sean Grebey (2/13/2013)
select completed, Max(auditDate) from tblAudit_AuditSchedule where agentNumber =...
February 13, 2013 at 12:52 pm
Gazareth (2/13/2013)
Don't think it's that - things to check are all dates surrounded by single quotes ' (best practice would be to use ISO format - 'yyyy-mm-dd') and the column...
February 13, 2013 at 8:16 am
Using T-SQL:
declare @MyDate datetime;
set @MyDate = '20121229';
select dateadd(mm, datediff(mm,cast('19000101' as datetime),@MyDate) + 1, cast('19000101' as datetime)), @MyDate;
February 12, 2013 at 12:48 pm
Lowell (2/12/2013)
NineIron (2/12/2013)
MRN ...
February 12, 2013 at 7:33 am
briancampbellmcad (2/11/2013)
UPDATE [tblTransactions] SET [AllocatedDate] = ........Basically I need to set AllocatedDate to "Today" using something like "Now" or "Now()"... any ideas? Thanks!
UPDATE [tblTransactions] SET [AllocatedDate] = getdate();
February 11, 2013 at 2:58 pm
Answer to what? You didn't give us anything to work with here.
February 11, 2013 at 9:27 am
Another alternative is to use a staging table for the data being imported. Using what you have posted, pdtest (without the identity column) serves as a staging table for...
February 10, 2013 at 10:20 pm
Several problems you need to deal with.
One, the columns you originally defined do not match the columns as listed in your source file. Please look at the new table...
February 10, 2013 at 9:53 pm
I am assuming that E is a mapped drive to a shared network resource?
February 10, 2013 at 8:00 pm
One other thing, since you are not using a format file, your test file needs to account for the CustID (IDENTITY) column as well.
February 10, 2013 at 7:35 pm
Viewing 15 posts - 8,791 through 8,805 (of 26,490 total)