Viewing 15 posts - 571 through 585 (of 627 total)
GilaMonster (5/15/2015)
It's possible. If you want to research, the term used for this scenario is 'republishing'
Thanks Gila...talk about much improved search results when you know what the actual term is...
May 15, 2015 at 7:38 am
mw112009 (5/11/2015)
In other words I don't want...
May 11, 2015 at 1:24 pm
Have you looked into setting up a CMS (Central Management Server)?
Cursor's and Dynamic SQL aren't bad per se but rather can cause issues when not executed properly. Try to...
May 8, 2015 at 7:39 am
You have to escape it by adding another single quote.
'James O''Neil'
You can test it out.
DECLARE @test-2 NVARCHAR(20)
SET @test-2 = 'James O''Neil'
SELECT @test-2
April 28, 2015 at 1:00 pm
This is how I did it
DECLARE @testdata TABLE (id int, date datetime, Amount int);
DECLARE @testdates TABLE (date datetime);
INSERT INTO @testdata (Id, Date, Amount)
SELECT 1, '1/6/2014' , 21 UNION ALL
SELECT 1...
April 27, 2015 at 2:02 pm
As Sean has mentioned some sample data would be very helpful here. That being said I have a funny feeling you are getting the same data multiple times because...
April 22, 2015 at 11:33 am
sql-lover (4/20/2015)
TipCheck for orphaned SIDs. You need to reset those if you moved to a different SQL instance and you use SQL logins.
You're right about that one...I've been stung by...
April 20, 2015 at 12:40 pm
udaynov17 (4/20/2015)
How about setting up log shipping and run the scripts for the backup and restore of the last T-Log in the time of cut-over.
This would probably work also but...
April 20, 2015 at 11:54 am
Alan's answer works and is nice and clean. I figured I'd add my take since I was already looking into it. Often there are more than a few...
April 20, 2015 at 11:28 am
SELECT REPLACE(Address2,'P.O. Box','Post Office Box') AS Address2 FROM CLAddress
https://msdn.microsoft.com/en-CA/library/ms186862(v=sql.100).aspx
better yet...
https://msdn.microsoft.com/en-us/library/ms181984(v=sql.100).aspx
I realize you may not have known about the REPLACE function but the previous posters were trying to push you in...
April 16, 2015 at 9:24 am
Just throwing it out there but why do they have to write back to the same DB they read from? I'd have them pull from the read only unless...
April 16, 2015 at 8:51 am
legeboka (4/16/2015)
I agree with your assessment but data coming from different vendors and my task to reconcile it. I can’t change table structure
I rigged up an example for you before...
April 16, 2015 at 8:38 am
I have to give you a thumbs up for providing the sample data and code.
The bad news is your table structure is what's killing you. I'll admit I obviously...
April 16, 2015 at 8:20 am
-OLDdogNEWtricks- (4/14/2015)
Thank you for that...it works fine for a single execution. If you try and run it again it reports that the object '#Temp' already exists in the database.
I just...
April 16, 2015 at 7:42 am
Ok so if you only care about locating Package Numbers that have a CDI but does not have a POD this should work.
SELECT
Field6 AS PackageNumber,
MAX(CASE WHEN Field4 = 'COLLECTION/DELIVERY INSTRUCTION'...
April 14, 2015 at 1:20 pm
Viewing 15 posts - 571 through 585 (of 627 total)