Viewing 15 posts - 7,531 through 7,545 (of 15,381 total)
As I read this a few times I keep asking myself...is this person trying to implement a trigger? You said you use this when a certain value changes, how do...
July 15, 2013 at 2:37 pm
MyTSQLRepl (7/15/2013)
Are you saying to use the ackup set table for all the servers in foreach loop? I though there could be a way either by using SQL...
July 15, 2013 at 2:10 pm
MyTSQLRepl (7/15/2013)
This is the way I had earlier but now reqirements and scope have changed. I need to get the lastest backup file size from the backup server...
July 15, 2013 at 1:47 pm
Check out this table.
select * from msdb.dbo.backupset
July 15, 2013 at 1:10 pm
Not 100% certain what you are after here but take a look at this. This will parse everything into last, first, middle.
if OBJECT_ID('tempdb..#Something') is not null
drop table #Something
create table #Something
(
SomeID...
July 15, 2013 at 12:57 pm
ajlefort (7/15/2013)
I need to parse last name,first name space middle name.
Example A - DOE,JOHN
Example B - DOE,JOHN A
I am able to parse the last name.
left(dbo.AbstractData.Name, charindex(',', dbo.AbstractData.Name)-1) as last name
I...
July 15, 2013 at 12:49 pm
ajlefort (7/15/2013)
I need to parse last name,first name space middle name.
Example A - DOE,JOHN
Example B - DOE,JOHN A
I am able to parse the last name.
left(dbo.AbstractData.Name, charindex(',', dbo.AbstractData.Name)-1) as last name
I...
July 15, 2013 at 12:48 pm
chrissorric (7/15/2013)
However, both examples fail to evaluate all records in the related table before returning the OrderNum
If an...
July 15, 2013 at 12:32 pm
dspink (7/15/2013)
Select * INTO T1_Obfuscated FROM T1. (obfuscating only columns needed.) then dropping T1 and renaming T1_Obfuscated to T1. Not really too worried about space...
July 15, 2013 at 12:27 pm
dale 34292 (7/15/2013)
July 15, 2013 at 12:21 pm
Of if you want to use the schema name.
select *
from sys.tables t
join sys.schemas s on t.schema_id = s.schema_id
where s.name = 'YourSchemaName'
July 15, 2013 at 10:42 am
Total guess but here is two ways that might work.
select *
from Lab_result_obr_p o
left join Lab_rsults_obx r on o.LabNum = r.LabNem and r.Flag = 'N' and Value <> 'TNP'
where re.LabNem...
July 15, 2013 at 10:39 am
dale 34292 (7/15/2013)
July 15, 2013 at 10:35 am
Thanks Luis for posting the "other" option.
To the OP, which one is better? That is not as simple as it may seem. There are some considerations about the actual...
July 15, 2013 at 10:25 am
Many of the things you listed as possibilities are likely to help but probably the biggest performance woe is calling the same scalar function 11 times for 250 million rows....
July 15, 2013 at 10:19 am
Viewing 15 posts - 7,531 through 7,545 (of 15,381 total)