Viewing 15 posts - 7,501 through 7,515 (of 15,381 total)
Your search condition exceeds the maximum length for a varchar which is 4,000. You are trying to pass it over 6,000 characters.
Check out BOL for CONTAINS, http://msdn.microsoft.com/en-us/library/ms187787.aspx
A quote from that...
July 18, 2013 at 9:13 am
You are welcome. Glad I was able to help you find a solution and thanks for letting me know.
July 18, 2013 at 9:04 am
I use KeePass and like it well enough. I able to synch the password file between my desktop, laptop and phone. Really makes it handy and since I have copies...
July 18, 2013 at 8:26 am
Or even simpler would be to change the loop condition.
WHILE EXISTS(SELECT * FROM #TempTable)
You posted in the sql 7, 2000 forum. Are you actually using an old version of sql?...
July 18, 2013 at 7:51 am
GilaMonster (7/17/2013)
Sean Lange (7/17/2013)
The next issue is top(1000). You have no order by so there is no way to know which 1000 it will delete.
You can't put an Order By...
July 18, 2013 at 7:18 am
krypto69 (7/17/2013)
I have a project I'm working on that has two SQL tables. I need to create a query that joins the two tables by org level and by date.
Table...
July 17, 2013 at 2:23 pm
riya_dave (7/17/2013)
my query is giving me erro
delete top(1000) from table a
join table b
on a.id = b.id
and b.date < getdate()
error: incorrect syntax near a.
i want to delete top 1000 from...
July 17, 2013 at 1:27 pm
s_v_narayanan (7/17/2013)
Please find below the sample and expected output -
CompanyCustomer IDAccount IDAmountTransaction Date
100 C001 ...
July 17, 2013 at 1:06 pm
I would suggest that using XML is not going to be as fast as the one found by following the link in my signature about splitting strings. That article has...
July 17, 2013 at 12:46 pm
Glad that worked for you and thanks for letting me know. Come back anytime you need help.
July 17, 2013 at 12:21 pm
jplankenhorn (7/17/2013)
July 17, 2013 at 10:42 am
twoeyed (7/17/2013)
The query is generated by an application, so not much room for change at query level.
You are right in saying that the list is...
July 17, 2013 at 10:10 am
Here is a rough stab at converting this to the newer join syntax.
SELECT 'SELECT ' AS [Selection], C.[OPCD] AS [OpCode], C.[DSCT] AS [Description]
FROM t2 A
join t3 C on A.[OPCD] =...
July 17, 2013 at 9:48 am
Parameter sniffing.
http://sqlinthewild.co.za/index.php/2007/11/27/parameter-sniffing/%5B/url%5D
Also, you should consider using the ansi-92 style joins instead of the older style joins. You also have a number of nonSARGable predicates.
July 17, 2013 at 9:31 am
Can you turn the list of 25,000+ hard coded values into a table? I have never come anywhere close to a list that extensive like this. I am 99.999% certain...
July 17, 2013 at 9:27 am
Viewing 15 posts - 7,501 through 7,515 (of 15,381 total)