Viewing 13 posts - 1 through 13 (of 13 total)
This does indeed require a restart. Schedule maintenance time.
July 22, 2013 at 7:51 am
Thanks for the reply Steve. I'm spinning up a test instance now and will report back my findings.
July 19, 2013 at 11:59 am
Maybe:
Select IsNull(t1.ServerName,t2.ServerName) as ServerName,
IsNull(t1.ApplicationName,t2.ApplicationName) as ApplicationName,
Case
When t1.ApplicationName is null then 'Table2'
When t2.ApplicationName is null then 'Table1'
Else 'Combine'
End AppServer
From Table1 t1
Full Outer Join Table2 t2 on
(t1.ServerName = t2.ServerName)...
October 29, 2012 at 1:56 pm
I haven't tested this since there was no test data supplied, but I think this should work.
Insert into MergeTable (Project number, IsProjNumConverted)
Select Coalesce(x.proj_id,i.proj_id) as projID,
Case...
August 27, 2012 at 2:46 pm
This should work, but you might want to run this against a copy of your table first to ensure that the results are what you are looking for.
select ptid, pat_ext_id,...
March 29, 2012 at 3:56 pm
You can also just do it inline like this:
Declare @LeadingZeros Table
(
sValuevarchar(100)
)
Insert into @LeadingZeros
SELECT '000123'
UNION ALL
SELECT '00123'
UNION ALL
SELECT '0123'
UNION ALL
SELECT '123'
UNION ALL
SELECT '01020z'
UNION ALL
SELECT '0s.123'
Select...
March 29, 2012 at 3:32 pm
If it's something you are going to use quite a bit, you might want to create a function.
Create FUNCTION [dbo].[DropLeadingZeros](
@iString VARCHAR(100)
) RETURNS VARCHAR(100)
AS
BEGIN
DECLARE @oStringvarchar(100)
Select...
March 29, 2012 at 3:10 pm
Does anyone know how much a trip to space costs? Seems like it would be a lot more than $100,000.
December 21, 2011 at 7:28 am
I tried to import the query from the "fast" db to the "slow" one, but got the same results. I was inspired by Ninja's suggestion and ultimately I made...
July 28, 2011 at 9:33 am
Thanks for the suggestion, but unfortunately not everything is the same between the two files so I can't simply copy it over.
July 27, 2011 at 2:48 pm
Nik,
We use Databridge here as well to populate a SQL database from our Unisys Mainframe.
Is the field that the mainframe guys want to delete a calculated field? If...
August 26, 2009 at 10:47 am
This is a good script. I had a use for something similar some time ago and created the sproc below with some additional parameters to limit searches.
Create Procedure...
April 1, 2009 at 10:49 am
I have found that TAB separated files seem to cause the least number of problems. Unfortunately TABs aren't always possible, if you have to work with a file...
December 16, 2008 at 10:47 am
Viewing 13 posts - 1 through 13 (of 13 total)