Viewing 15 posts - 7,186 through 7,200 (of 10,144 total)
renvilo (10/14/2010)
...If so can we get them out of the way or not?...
Try filtering them out in your WHERE clause. Something like...
WHERE query NOT IN ('Unwanted value', 'Another unwanted value')
Alternatively,...
October 14, 2010 at 6:44 am
Can you write a SELECT which retrieves only the rows which you want to insert into the new table?
October 14, 2010 at 6:31 am
renvilo (10/14/2010)
I test your code and works 100%
This is what I have:
SELECT top 1000
SourceID,
...
October 14, 2010 at 6:29 am
I don't see a problem.
-- set up some sample data
DROP TABLE #Sample
CREATE TABLE #Sample (SourceID CHAR(3), VisitID VARCHAR(15), Query VARCHAR(10), Response VARCHAR(4))
INSERT INTO #Sample (SourceID, VisitID, Query, Response)
SELECT 'BLA', 'V1002900877',...
October 14, 2010 at 6:00 am
renvilo (10/14/2010)
...I tried your code but not working...
What's the error message?
October 14, 2010 at 5:45 am
Read the articles Wayne recommended. You will gain a comprehensive understanding of how this works:
DROP TABLE #Sample
CREATE TABLE #Sample (SourceID CHAR(3), VisitID INT, Query VARCHAR(10), Response VARCHAR(4))
INSERT INTO #Sample (SourceID,...
October 14, 2010 at 5:22 am
You could use the OUTPUT clause, returning the new PK and an old PK for the backlink. This would allow you to do all of the inserts in one go,...
October 14, 2010 at 4:27 am
GilaMonster (10/14/2010)
ALZDBA (10/14/2010)
GilaMonster (10/14/2010)
... *hopeful* *optimistic* ...DBA-part taking over :w00t:
Developer-side. My DBA side is extraordinarily pessimistic
You can say that again.
October 14, 2010 at 3:19 am
The Dixie Flatline (10/13/2010)
I duuno how ,pls any1 explane
Gail, this is a quote from that link. There is just something I always find curious about posts like these....
October 14, 2010 at 2:23 am
crookj (10/13/2010)
Chris Morris-439714 (10/13/2010)
crookj (10/13/2010)
WOTD - Turbo-BungeeMy 3-year old Granddaughter went on it at the carnival. She was going over 2 stories high. She had a GREAT Time!
Joe
Joe, is this...
October 13, 2010 at 9:13 am
Paul White NZ (10/13/2010)
Chris Morris-439714 (10/13/2010)
To a VARCHAR(10)? An error 😎Don't make me come over there, Chris 😛
Tell me - not sure I can afford all the beers I must...
October 13, 2010 at 8:32 am
crookj (10/13/2010)
WOTD - Turbo-BungeeMy 3-year old Granddaughter went on it at the carnival. She was going over 2 stories high. She had a GREAT Time!
Joe
Joe, is this the thing that...
October 13, 2010 at 8:12 am
Heh you beat me to it Wayne, and yours is nicer too.
SELECT d.ID,
speak_flag = REPLACE(iTVF1.RowsToString + '$', ',$', ''),
read_flag = REPLACE(iTVF1.RowsToString + '$', ',$', ''),
ia_flag = REPLACE(iTVF3.RowsToString +...
October 13, 2010 at 8:00 am
Paul White NZ (10/13/2010)
sivaj2k (10/13/2010)
October 13, 2010 at 7:59 am
Viewing 15 posts - 7,186 through 7,200 (of 10,144 total)