Viewing 15 posts - 16 through 30 (of 168 total)
http://www.sqlservercentral.com/scripts/attach+database/96623/
I found something that works pretty well.
March 15, 2018 at 8:52 pm
Think I figured it out:
STEP 1: Create the link server
DECLARE @FileSource varchar(100) = 'TestFile.xlsx'
DECLARE @SQLStatement nvarchar(MAX)
SELECT @SQLStatement = 'EXEC sp_addlinkedserver
March 2, 2018 at 7:04 pm
Yes i copy pasted it, just the "dash" and did get the dash character. Apparently SQL must consider all the characters but I can't get the hidden characters on a...
January 9, 2018 at 12:53 pm
If the ID was ascending (original example was desc) how would I do this? I tried modifying the examples but couldn't get it to work. Also if there were more...
December 16, 2017 at 4:49 am
Yes, works perfectly. Thank you!
December 11, 2017 at 2:40 pm
I figured it out, if I move the
SELECT * FROM #Final
into...
March 5, 2017 at 12:57 pm
Not Correct Result (right column)
8000001200$30,000.00 0.3333
8000002250$12,000.00 0.1667
8000003220$10,000.00 1
8000004280$18,000.00 0.4444
Correct Result (right column)
8000001200$30,000.00 $4,000.00
8000002250$12,000.00 $2,916.66
8000003220$10,000.00 $2,200.00
8000004280$18,000.00 $4,044
Example of Result Needed by Level for Invoice 8000001 is $4,000.00...
January 12, 2015 at 1:03 am
If I do a join I'm not getting the expected result because the calculation needs to cycle through every row. I'm trying to calculate the bonus on all invoices...
January 12, 2015 at 12:55 am
The 3:13 is worked, I cant copy/paste
August 4, 2014 at 9:30 pm
I'm getting an error, incorrect syntax near 1 (the 3:07 solution)
August 4, 2014 at 9:25 pm
It is a permissions issue. I have permissions to read only. Is there such a thing as a temporary function?
August 4, 2014 at 7:04 pm
Guess I'm not thinking:
SELECT * FROM #Test
WHERE (StartDate < CAST(GETDATE() as Date) AND EndDate IS NOT NULL)
OR StartDate >= CAST(GETDATE() as Date)
December 30, 2013 at 9:43 pm
I'm assuming the Unix server is always storing this in the time zone UTC, so if I want it in CST it is always -6 hours?
May 28, 2013 at 1:07 am
I'm not sure I asked this right, every record has a 10-day date range based on the date for that record.
April 8, 2013 at 7:44 pm
Viewing 15 posts - 16 through 30 (of 168 total)