Viewing 15 posts - 53,116 through 53,130 (of 59,089 total)
Assuming that "TimeElapsed" is of the DateTime datatype...
SELECT currDt = GETDATE()-TimeElapsed
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2008 at 9:46 pm
3 pages starting at...
http://www.sql-server-helper.com/tips/read-import-excel-file-p01.aspx
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2008 at 9:37 pm
Incomplete sentence... "Which scripting language does..."
What's the rest of that?
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2008 at 9:29 pm
Heh... "google it" !
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2008 at 9:28 pm
And then there's the subject of primary keys... especially if they're based on IDENTITY.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2008 at 9:27 pm
OIDK... WFM! 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2008 at 9:25 pm
Heh... deletes make me nervous, anyway... constitutes some form of lost data. I don't use cascade deletes because I want people to have to work at doing deletes. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2008 at 9:19 pm
If memory serves correctly, I believe that form of index hint is "deprecated". Try this, instead...
select ACCT_NUM, OPERATOR_NUM, BRANCH_NUM
from TRANS_J_DATA_FULL WITH (INDEX(IX_TRAN_FULL))
where TRANS_DATE >= @dStartDate and TRANS_DATE <= @dEndDate...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2008 at 9:16 pm
Don't use either... use the functions built for this...
1. Check if temp table exists...
IF OBJECT_ID('TempDB..#temptablename','U') IS NOT NULL
PRINT 'Table Exists'
...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2008 at 8:38 pm
Heh... in other words, there's no such thing as a Julian date of "107999"... can only go up to 107365... next day would be 108001.
With that in mind, the following...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2008 at 8:13 pm
How did it help? What was the problem?
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2008 at 7:59 pm
Never import directly to the final destination table... import into a staging table... should be able to use a default on a staging table but, if not, just update the...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2008 at 7:57 pm
Two way street here... please share your solution.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2008 at 7:48 pm
Heh... do you intend to print that size sheet?
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2008 at 7:44 pm
Test the code in the presence of the indexes and not... that's the only real way to tell.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 4, 2008 at 7:34 pm
Viewing 15 posts - 53,116 through 53,130 (of 59,089 total)