Viewing 15 posts - 31 through 45 (of 60 total)
update table
set column_A = replace(column_A, '"','')
August 22, 2008 at 12:00 am
how about this
select replace(column A, '"','')
August 21, 2008 at 10:52 pm
I think instead of cast as int you should cast as numeric or decimal.
August 18, 2008 at 7:39 am
Could you explain the relationship b/w the 3 tables.
How did u get InkID '106'?
What you want as the result is also not clear.
July 27, 2008 at 11:39 pm
mdouglass (7/25/2008)
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [dbo].[TR_Insert_tblSymbolTrackingOld] ON [dbo].[tblSymbolTrackingOld]
FOR INSERT
AS
BEGIN
SET NOCOUNT ON;
SET IDENTITY_INSERT [dbname].[dbo].[tblSymbolTracking] ON;
DECLARE @symbol_id int;
DECLARE @company...
July 25, 2008 at 7:13 am
SELECT * FROM [dbo].[tblSymbolTrackingOld]
will insert all records of tblSymbolTrackingOld in tblSymbolTracking every time you insert a record in tblSymbolTrackingOld.
I am not sure if that is what you want.
July 25, 2008 at 6:37 am
Why are you setting the Identity Insert On in the trigger.
July 25, 2008 at 6:30 am
what exactly is the error that you are getting?
July 25, 2008 at 5:59 am
I forgot the basic point-
If you are creating Local temp tables in a stored procedure, the scope for the existence of those temporary tables is only the procedure execution. The...
July 22, 2008 at 3:33 am
Fair enough.
Probably if you name the temporary table more meaningfully the probability of you running into the above problem would be a rare.
Anyways I may be wrong.
Let me...
July 22, 2008 at 3:11 am
Do you just need the column list from the table #T
If so then see if this query helps you.
SELECT * FROM tempdb.sys.columns
WHERE object_id = (SELECT object_id FROM tempdb.sys.objects WHERE NAME...
July 22, 2008 at 2:09 am
Temporary tables get created in tempdb.
Try to access tempdb.dbo.syscolumns and tempdb.dbo.sysobjects
July 22, 2008 at 12:10 am
SET @WHERE = @WHERE + ' ADATETIME >= '''+ cast(@STARTDATE as varchar(50)) + ''''
use the above statement instead.
July 21, 2008 at 10:36 pm
Viewing 15 posts - 31 through 45 (of 60 total)