Viewing 15 posts - 46 through 60 (of 245 total)
do you have to put quotes round your dates?
instead of
where EXIT_DT >= " & startFilterDate & " and
you do
where EXIT_DT >= ' " & startFilterDate & " ' and
January 3, 2013 at 5:32 am
the CTE declaration must be preceeded with a ';' if there is another Statement above it.
if there isn't a Statement above it, it isn't required for your cte to run.
probably...
December 21, 2012 at 5:23 am
A general rule (although not always true) is that if you wrap the column you are searching in a function then it is not SARGABLE, instead you need to wrap...
December 21, 2012 at 4:50 am
talking of being SARGable, i was reading this article:
http://en.wikipedia.org/wiki/Sargable
and didn't quite understand this line
The typical thing that will make a sql query non-sargable is to include a function in left...
December 21, 2012 at 2:54 am
i didn't know the answer, so i picked 5 [almost] at random and got it right :w00t:
i chose that #1 returned a row with NULL so thought that, by default,...
December 20, 2012 at 9:19 am
isn't it just looking for the student_id column, not finding it in the emp table, so its taking it from the student table?
using table alias's would ensure the correct column...
December 13, 2012 at 4:02 am
hi.
the errors started in mid october of this year. I only noticed a problem now due to a lack of free disk space on the server that this database (redgatemonitor)...
December 5, 2012 at 3:35 am
SELECT
CASE WHEN col1 < 0 THEN 1 ELSE 0 END + CASE WHEN col2 < 0 THEN 1 ELSE 0 END + CASE WHEN col3 < 0 THEN 1...
November 19, 2012 at 9:25 am
DECLARE @table TABLE(id varchar(10),descript varchar(10))
INSERT INTO @table ([id], [descript])
SELECT 'a','low'
UNION
SELECT 'b','none'
UNION
SELECT 'c','low'
UNION
SELECT 'd','qwerty'
UNION
SELECT 'e','abba'
SELECT * FROM @table ORDER BY CASE descript WHEN 'none' THEN 0 ELSE 1 end,[descript]
October 22, 2012 at 9:19 am
i've given up on trying to get the in-built intellisense working again and found a great free third party tool: http://www.atlantisinteractive.co.uk/products/sqleverywhere/default.aspx
it even suggests the columns to join on...
October 3, 2012 at 2:35 am
if you know where the column that you want to Order By, sits, you can do
select
col1
,col2
,col3
from tablename
order by 1
this will order by the first column.
change it to 'order by 2'...
October 2, 2012 at 9:36 am
jcrawf02 (9/28/2012)
Kinda rough suggestion, I realize it, but basically Why Bother?Install SSMS Tools Pack (free) or buy RedGate SQL Prompt.
Works lots better than Intellinonsense.
thanks, i've downloaded it and...
September 28, 2012 at 9:18 am
xanthos (9/28/2012)
Do you have SQLCMD mode open for new querries?I solved the intellisense issue by unticking the box in Tools--Options--Query Execution
just had a quick check and that box is unticked...
September 28, 2012 at 4:02 am
just in case it jogs anyone elses memory, i've just installed Service Pack 2 (32 bit version, although i have 64bit windows 7) for Microsoft® SQL Server® 2008 R2...
September 28, 2012 at 2:51 am
thanks for the reply.
Ive just tried that, but it didn't work 🙁
i attempted a Repair on:
microsoft sql server 2008 r2 management objects
microsoft sql server 2008 r2 management objects (x64)
Microsoft SQL...
September 26, 2012 at 3:45 am
Viewing 15 posts - 46 through 60 (of 245 total)