Viewing 15 posts - 8,776 through 8,790 (of 15,381 total)
Jeff Moden (4/5/2013)
deepzzzz (4/5/2013)
For this example it works fine..
Just consider these examples...
'US Eastern District Court'
'Southern District Court of US'
For this also it is giving the...
April 5, 2013 at 7:39 am
jbalbo (4/4/2013)
t-sql
So you are asking how can we format the t-sql so it looks nicer?
There is no way to do that in SSMS. There are however a number of 3rd...
April 4, 2013 at 12:51 pm
I don't see anything hugely obvious here. Unfortunately there aren't a lot of details either. Take a look at this article about how to best post questions about performance problems....
April 4, 2013 at 12:47 pm
sej2008 (4/4/2013)
April 4, 2013 at 12:44 pm
Duplicate post. Direct replies here. http://www.sqlservercentral.com/Forums/Topic1438955-1292-1.aspx
April 4, 2013 at 12:38 pm
jbalbo (4/4/2013)
Kind of a dumb ???
Sometimes I will take a sp and play with it in a view
once I copy the code the tables are all over the place
is...
April 4, 2013 at 12:37 pm
ScottPletcher (4/4/2013)
SELECT RefNumber
FROM #Data d
GROUP BY RefNumber
HAVING
COUNT(DISTINCT EntryType) = 3 AND
MAX(CASE WHEN EntryType NOT IN ( 0, 2, 11 ) THEN 1...
April 4, 2013 at 12:33 pm
adesai 26520 (4/4/2013)
April 4, 2013 at 10:28 am
This is almost identical to another thread.
http://www.sqlservercentral.com/Forums/Topic1438875-391-1.aspx
April 4, 2013 at 10:26 am
Since you are brand new around here I create the ddl and sample data for you.
if OBJECT_ID('tempdb..#Data') is not null
drop table #Data
create table #Data
(
RefNumber int,
EntryType tinyint,
EntryAmount int
)
insert #Data
select 239000,0,200 union...
April 4, 2013 at 10:24 am
It would much better if you could post your ddl and sample data in a consumable format. (create table and insert statements)
Also, are there any more rules or is this...
April 4, 2013 at 10:12 am
adesai 26520 (4/4/2013)
________________________________________________________
declare @word varchar(125) = 'The Quick Brown Fox Jumps over a lazy Dog'
declare @swrd varchar(100)
declare @l int
while len(@word) > 0
Begin
set @l = CHARINDEX('...
April 4, 2013 at 10:09 am
like this:
select ShipmentID, ProductID, ProductType,Qty
from YourTable
where ShipmentID not in
(
select ShipmentID
from YourTable
where ProductType <> 2
)
April 4, 2013 at 9:59 am
You can also use sys.databases to build a string for you.
For example if you wanted to select * from MyTable on every database you could do something like this.
select...
April 4, 2013 at 9:56 am
Viewing 15 posts - 8,776 through 8,790 (of 15,381 total)