Viewing 15 posts - 11,461 through 11,475 (of 18,923 total)
I thaught about that too but you still can only get 4 positions. That's too limited for my taste
.
October 24, 2006 at 3:31 pm
Guessing that it's built in the query by the application.
Anyways this :
WHERE (client_contacts.OrigCommunityID = '30167' OR client_contacts.OrigCommunityID = '30167' <SNIP>OR client_contacts.OrigCommunityID = '30260' OR client_contacts.OrigCommunityID = '30261' OR client_contacts.OrigCommunityID...October 24, 2006 at 2:48 pm
HTH, I,'m sure you're not the last one to come across this post in need of the same thing
.
October 24, 2006 at 2:19 pm
Now why would someone want to swap a variable with itself
????
It would seem to me that someone would have forgotten an if statement somewhere...
October 24, 2006 at 12:08 pm
Actually a single or can be enough to ignore an index.
I'm curious about the 165 ors. It this something you could put in a table and join to it??
Also it...
October 24, 2006 at 11:44 am
Dito... but it's a nice change from the old swap code
.
October 24, 2006 at 11:41 am
Wow thanx for the tip. It's almost a shame we can only use this with dot separated text, but it's really nice to have that in the bag
October 24, 2006 at 11:11 am
Or you could also use a split function and only return the 2nd element.
October 24, 2006 at 9:56 am
DECLARE @demo TABLE (IP varchar(15) NOT NULL)
INSERT INTO @demo (IP) VALUES ('9.200.12.13')
INSERT INTO @demo (IP) VALUES ('11.200.12.13')
INSERT INTO @demo (IP) VALUES ('120.200.12.13')
INSERT INTO @demo (IP) VALUES ('10.0.12.13')
INSERT INTO @demo (IP)...
October 24, 2006 at 9:56 am
sp_closePopUps
sp_BreatheIn, sp_breatheOut
sp_blink
sp_PostOnSqlServerCentral
sp_FetchNewSqlServerCentralThreads
just to name a few
.
October 24, 2006 at 9:30 am
Click anywhere on the plan. Right click on the plan again, and this time select save execution plan.
October 24, 2006 at 9:05 am
I preffer not to use strings manipulation (performance on large datasets)., but your solution could use and else instead of a second if which should make it run pretty fast...
October 24, 2006 at 8:37 am
NP... as long as we can see the rest now ![]()
Thanx for the quick fix.
October 24, 2006 at 7:53 am
Not even gonna try... but I'm lazy and I know this works fine
.
October 24, 2006 at 7:23 am
Have you considered this one :
For each server
exec sp_msforeachdb 'IF ''?'' IN ('Pubs', 'DBA', 'Production') BEGIN use ? exec ?.dbo.USPDemo END'
next
October 24, 2006 at 7:11 am
Viewing 15 posts - 11,461 through 11,475 (of 18,923 total)