Viewing 15 posts - 61 through 75 (of 148 total)
In the absence of test data here is my spin on it
DECLARE @Client_Domains TABLE
(
Client_VndName NVARCHAR(100) ,
...
March 7, 2014 at 8:27 am
Can you provide some sample data and expected output for this please? In the middle of giving it a go now 🙂
March 7, 2014 at 8:05 am
ByronOne (3/7/2014)
Thanks everyone, particulalrly Michael, you guys have saved my bacon!!BO:-D
No worries. Glad to have helped
March 7, 2014 at 6:27 am
dbalmf (3/7/2014)
Hi Michael, your solution is much more elegant than mine.. And quicker.. 🙂
Thanks :blush:
March 7, 2014 at 4:35 am
dbalmf (3/7/2014)
Create a backup of your table, because backup is your friend.. 🙂
Select all archive rows into a temp table
Update the rows in the temp table with...
March 7, 2014 at 4:19 am
Rough and ready. Customers matched on customer ID and where have Type 'Archive' will be updated with details from 'Recent' This also assumes that only one 'Recent' entry...
March 7, 2014 at 4:05 am
Can we assume where 2 records exist for a customer we take the 'Recent' type to update the 'Archive' type when different? Is there only even one recent type...
March 7, 2014 at 3:38 am
Whilst not my area of expertise I do have a couple of questions:
If the database has failed and you cannot repair and data will be written to the old database...
March 6, 2014 at 7:03 am
It does yes but we get round this by writing a custom query to create the headers and add that as part of the BCP script
February 28, 2014 at 6:28 am
Depending on the volume of data we generally go for BCP when exporting data from a table to CSV. This give great flexibility generating the file name on the...
February 28, 2014 at 6:20 am
This is likely to do with what Gail has mentioned already. Your database collation is case sensitive and as such anywhere you use the variable from the point of...
February 24, 2014 at 8:11 am
GilaMonster (2/24/2014)
michael.higgins (2/24/2014)
GilaMonster (2/24/2014)
michael.higgins (2/24/2014)
Here is me assuming it's 2008 :blush: What is it they say about assuming !
Yeah, I mean it's the SQL Server 2008 forum, surely it must...
February 24, 2014 at 7:17 am
GilaMonster (2/24/2014)
michael.higgins (2/24/2014)
Here is me assuming it's 2008 :blush: What is it they say about assuming !
Yeah, I mean it's the SQL Server 2008 forum, surely it must be SQL...
February 24, 2014 at 7:14 am
Here is me assuming it's 2008 :blush: What is it they say about assuming !
February 24, 2014 at 7:12 am
Just ran that and it's good on mine. At a guess I would say there is possible some reserved word or an iffy named table?
I will have to pass...
February 24, 2014 at 7:08 am
Viewing 15 posts - 61 through 75 (of 148 total)