Viewing 15 posts - 14,971 through 14,985 (of 15,381 total)
Can you just delete the existing data and then insert from the other table?
March 2, 2011 at 3:19 pm
Not exactly what you mean. What are you trying to do?
March 2, 2011 at 2:12 pm
Please don't cross post as this just clutters things up and makes it harder for others to find the resolution.
The original thread is here
March 2, 2011 at 2:04 pm
Welcome to sql server central.
Keep in mind that we can't see your screen from here. 😉
Are you trying to replace this data? Are you trying to append data? If we...
March 2, 2011 at 2:01 pm
Jeff Moden (3/2/2011)
drew.allen (3/2/2011)
SELECT *
FROM TableA
INNER JOIN TableB
ON TableA.ID LIKE Cast(TableB.ID as varchar(11)) + '%'
This...
March 2, 2011 at 12:33 pm
That is what i showed you. 😀
Try this to see if it makes it more clear.
select *
from table A
join table b on a.ID = SUBSTRING(b.IDFieldWithExtra, 0, charindex('-', b.IDFieldWithExtra, 0))
March 2, 2011 at 8:22 am
Yeap.
declare @OddBallKey varchar(10) = '1234-01'
select SUBSTRING(@OddBallKey, 0, charindex('-', @OddBallKey, 0))
March 2, 2011 at 8:12 am
something like this should get you pretty close.
select DATEADD(ss, 211114134, '1970/01/01'), DATEADD(hh, datediff(hh, GETUTCDATE(), GETDATE()), DATEADD(ss, 211114134, '1970/01/01'))
Lowell - you had the calculation backwards. You would want -5 for EST....
March 2, 2011 at 8:07 am
varunkum (3/1/2011)
Q2. I have a column with all...
March 1, 2011 at 12:19 pm
I think you are looking for something like?? If I understood your question correctly.
select DATEADD(ss, yourEpochDateIntegerHere, '1970/01/01') from YourTableWithEpochInteger
February 28, 2011 at 3:33 pm
bobbalsman (2/28/2011)
Actually, if you use a UNION only one ORDER BY clause is allowed & it's scope is the entire UNION'd query.-Bob
:blush: It is Monday....you are correct.
something like this should...
February 28, 2011 at 12:09 pm
Short of a connection string or permissions i don't know what else would cause this. Did you say you were able to reproduce the error while profiler was running? What...
February 28, 2011 at 11:18 am
bobbalsman (2/28/2011)
USE <databasename>
GO
SELECT * into #maxRemind
FROM
(
SELECT TOP 1 CompanyName, ReminderNo
FROM <tablename>
ORDER BY ReminderNo DESC
) AS TopRemind
GO
SELECT * into #minRemind
FROM
(
SELECT TOP 1 CompanyName, ReminderNo
FROM <tablename>
ORDER BY ReminderNo ASC
) AS BotRemind
GO
SELECT...
February 28, 2011 at 11:07 am
I am about 99.9999% certain that the user is not able to insert to the calls table. Is there a trigger on this table that is maybe doing another insert...
February 28, 2011 at 11:02 am
Viewing 15 posts - 14,971 through 14,985 (of 15,381 total)