Viewing 15 posts - 18,676 through 18,690 (of 18,923 total)
Ok, then you can always do something like this :
declare @Results table (MyIdent int identity (1,1), fields...)
Insert into @Results (Select ....)
Select * from @Results
Or you could do some acrobatics...
January 14, 2005 at 2:40 pm
Please do not cross post. We all keep track of all the new questions on all the discussion forums.
My answer has already been posted there.
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=155717
January 14, 2005 at 2:24 pm
You can use the TRUNCATE TABLE temptable to delete ALL the rows from the temp table before inserting the new data.
January 14, 2005 at 2:23 pm
Just out of curiosity, why would you have a table system that has tblEmploye_101, tblEmploye_102.... instead of only 1 table?
January 14, 2005 at 12:49 pm
it would look something like this :
Update MyTable set AlteredDate = case
when td = 'N' then dateadd(d, -2, ed)
when td = 'I' then dateadd(d, -1, ed)
else ed
end
January 14, 2005 at 12:24 pm
I would try to run the profiler and then try to do an update.
Then I would grad the command from the profiler that fails to update and run it in...
January 14, 2005 at 6:40 am
I still don't think it's a good idea. If an application needs a db, I don't see why it shouldn't have one of it's own. I know I...
January 13, 2005 at 11:58 am
Well aside from recoding 69 apps (client and server side) to change the db connections and all the tablenames/view names and everything related too that. Not much... maybe just...
January 13, 2005 at 11:23 am
I just scripted and sp from QA and look at the first few lines
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].[AjouterProduit_CopyFrom] @NewCodeProduit as varchar(21), @NoProduit as int
AS
....
GO
The blank line...
January 13, 2005 at 7:11 am
No I don't mind. As long as the headline read something like this :
Capt. Carp outwitted by a 10 months old gold fish.
Or anything among those lines
January 12, 2005 at 2:09 pm
Might not seem like it but I have other things to do in life...
Maybe in the year 2010 I'll be there.
January 12, 2005 at 1:54 pm
I think I'll stick to a shorter name...
I'll call you Capt. Carp. from now on.
January 12, 2005 at 1:41 pm
I'm assuming that my answer will work because the commas will actually make 4 records instead of 1... hence that might very well be the cause of the too many...
January 12, 2005 at 1:38 pm
BTW this is only the tip of the iceberg. Once you understand how powerful and dangerous sql injection can be, you go out of your way to avoid it...
January 12, 2005 at 1:36 pm
Sorry carpal tunnel... I'll try to find an harder solution next time
.
BTW Antares had already pointed in the direction of the ms proc......
January 12, 2005 at 1:32 pm
Viewing 15 posts - 18,676 through 18,690 (of 18,923 total)