Viewing 15 posts - 376 through 390 (of 430 total)
CraigIW (3/12/2012)
Updt:
Though it does seem to be a lot faster on my 32bit SQL 2008 development desktop than it is on the production server :/
Did you say the...
March 14, 2012 at 9:35 am
There is no schema specified, is it possible you had multiple copies of the same table, owned by different schemas? Seems unlikely, but funny things can happen if you have...
December 6, 2011 at 11:11 am
I did this in my previous job using a linked server with a dynamic open query call.
My recollection is that I had to specify the date format used by Oracle.
It...
October 24, 2011 at 8:51 am
jeff.mason (9/28/2011)
lemsip (9/28/2011)
venoym (9/27/2011)
September 28, 2011 at 8:40 am
venoym (9/27/2011)
September 28, 2011 at 7:35 am
Sorry if this is a repeat.
01/04/2004 is a numeric expression.
SELECT 01/04/2004-- 0
SELECT 01.0/04/2004 -- 0.00012475049
Datetime zero = "1900-01-01 00:00:00.000"
SELECT CONVERT(DATETIME,(SELECT 01/04/2004))
[1900-01-01 00:00:00.000]
This may be why the original query returned no...
August 16, 2011 at 10:25 am
I do it sometimes when the primary key is a uniqueidentfier.
I don't particularly like doing it, but sometimes I can't find a better column.
January 12, 2011 at 11:25 am
Some questions you may or may not wish to consider.
Do all employees of the same type earn the same amount per hour?
What happens if an employee changes type? gets a...
November 8, 2010 at 10:28 am
Sounds like you have users with querying privileges without the skills they need. Good luck!
You may have to write some dynamic code to drop and recreate the view with new...
October 29, 2010 at 12:04 pm
If its for some kind of report then you can go with generic column names like TodayDayMinus5 and dynamically name the column headers in the presentation layer/report.
October 29, 2010 at 9:05 am
I've had to do it the same way the previous poster described.
You might need to convert(nvarchar,@acctid).
You can also make it work using the @params option for sp_executesql.
October 13, 2010 at 4:01 pm
This is even more convoluted, but it might work.
I would be inclined to unpivot the data, but that might be equally clumsy.
DECLARE @input_month INT
SET @input_month =...
September 29, 2010 at 7:53 am
I'm not suggesting this is a good idea, but if avoiding dynamic sql is your only consideration then this might work.
Edit: I assumed you wanted the rest of the year...
September 28, 2010 at 10:41 am
This is a common problem with medical codes, 008.8 is not the same as 08.80.
I have always had to save as a text file, or open excel and add a...
September 21, 2010 at 7:32 am
This may or may not be relevant.
A while ago I had to set up a sql version of an oracle database(s).
I went with one sql database and multiple schemas that...
July 1, 2010 at 8:26 am
Viewing 15 posts - 376 through 390 (of 430 total)