Viewing 15 posts - 1,486 through 1,500 (of 3,543 total)
I did :blush:
bugger! :crazy:
September 28, 2007 at 7:09 am
Need to to know key relationships between tables, please post table DDL, sample data and expected results.
When inserting into a table you can select new rows by excluding any already...
September 28, 2007 at 6:57 am
Don't sugar coat it Jeff - tell us how you really feel.
yeah, Jeff is a real passionate guy :w00t:
September 24, 2007 at 7:10 am
Need more information. I am not an ORACLE user but I believe the sql is similar.
You can do 50 individual SELECT's (one per table) to get 50 result sets
You can...
September 11, 2007 at 6:15 am
![]() | where the heck did the "x", "y", and "z" come from |
Probably from the aforementioned 'some grouping and calculation...
September 4, 2007 at 6:50 am
That's nothing
It's all the same to a blind man
August 24, 2007 at 1:44 am
For single row insert
INSERT INTO (othercolumn) VALUES (0)
UPDATE SET [othercolumn] = [identitycolumn] WHERE [identitycolumn] = SCOPE_IDENTITY()
wrap in transaction if preferred
this will not handle multiple inserts ie...
August 22, 2007 at 6:27 am
A permanant table containing numbers, I create my like this
CREATE TABLE dbo.Numbers
([Number] int NOT NULL,
CONSTRAINT PK_Numbers PRIMARY KEY CLUSTERED (Number))
GO
SET NOCOUNT ON
DECLARE @n int
SET @n...
August 21, 2007 at 7:31 am
Nasty solution but....
SELECT SUBSTRING(col004,n.Number,CHARINDEX(',',a.col004,CHARINDEX(',',a.col004,CHARINDEX(',',a.col004,n.Number)+1)+1) - n.Number + 1)
FROM a
INNER JOIN Numbers n
ON n.Number > 0
AND n.Number < LEN(col004)...
August 21, 2007 at 7:12 am
Notwithstanding the above, never tried this but...
1. Create linked server to LIVE on DEV
2. Create procedure on LIVE to execute sp_start_job
3. Add step to job on DEV to execute above...
August 17, 2007 at 9:28 am
First create a temp table
CREATE TABLE #temp ([ID] int ,colname varchar(255),colvalue varchar(255))
and fill it
INSERT INTO #temp select 0,LEFT(ResubmitDetails,CHARINDEX(':',ResubmitDetails)),LTRIM(SUBSTRING(ResubmitDetails,CHARINDEX(':',ResubmitDetails)+1,255)) from
Assign an ID to each block of data...
August 17, 2007 at 7:12 am
![]() | ...notice that I hate loops and cursors so much that I even avoided them... |
But still using non ANSI-92...
August 13, 2007 at 6:42 am
There must be a smart way of doing this but I just cannot think of it
I tried this
SELECT A,MIN(B) AS FROM (
SELECT a.[ID] AS [A],b.[ID] AS
FROM...
August 2, 2007 at 8:00 am
![]() | Not if you sink the boat in the process. |
No Chance. I'd have thrown my boss out of the...
August 2, 2007 at 6:51 am
Viewing 15 posts - 1,486 through 1,500 (of 3,543 total)