Viewing 15 posts - 1 through 15 (of 21 total)
Gail.
I changes it though management studio GUI. Does it matter?
December 15, 2009 at 10:45 am
Got it.
IF OBJECT_ID('tempdb.dbo.#HoldDate') IS NOT NULL
BEGIN
DROP TABLE #HoldData;
END
GO
Create table #HoldDate(DateStamp varchar(10))
Go
Thanks Gail.
December 15, 2009 at 9:11 am
Thanks Gail/Jack for your inputs. So where should my CREATE TABLE code will go
Create table #HoldDate(
DateStamp varchar(10))
? After Drop table? Outside BEGIN END or inside?
December 15, 2009 at 8:24 am
Thanks a lot Bru, it worked. Now one more question. Since I just need date in 'dd/mm/yyyy' format should i use varchar(10) instead of smalldatetime?
December 10, 2009 at 9:48 am
Hey folks,
So seems like I found the problem, when I write the following SQL I get value
select @ColTypeYesterday = (ColType)
from TotalColumn
where captureddate = (select top 1 capturedDate from TotalDatabase...
December 8, 2009 at 1:50 pm
SSCrazy Eights for you input. Yes I’ll need to perform this procedure at the end of every month. Move data to text files and purge data from database. As you’ve...
December 7, 2009 at 2:48 pm
Thanks a lot bru for your input. I've resolve the problem by making all the data types same in Temp and permanent table.
November 27, 2009 at 9:31 am
Hey guys, Nevermind I’ve able to write a select and join sys.object with sys.columns and accomplished what I needed. For reference here is my code.
sp_msForEachdb
'select
''?'',
obj.name as TableName,
col.name...
November 16, 2009 at 10:15 am
Thank you so much guy for your replies to solve my problem and I learned from my mistake.
Many Thanks again for showing me correct way.
YOU ALL ARE BEST.
November 14, 2009 at 9:41 am
Thanks a lot guys for your input. Yes the problem was varchar length. When i defined the table as follows everything worked. Once again Thanks,
Create Table #TempTotalTable(
DBname varchar(100),
TBId nchar(100),
TBName varchar(500),
CapturedDate...
November 13, 2009 at 12:45 pm
Thanks a lot Lowell for your help. Yes you got it exactly what i wanted to do. This is such a great great example and I learn from it. Now...
November 12, 2009 at 12:21 pm
SSCrazy Elights I apologize for not providing the full information.
Grasshopper thanks for you input and yes I understand my mistake.
I'm trying to learn and wasn't sure about what difference...
November 3, 2009 at 9:53 am
Thanks again SSCertifiable. It will be my rule from now to use print. This is first time I'm using SQL Server that's why tying to understand it as much &...
October 29, 2009 at 1:50 pm
So here is my code if still people don’t understand what I am tying to do. The only catch is I changes @AD_TransactionErrorAuditSeqNum varchar(40) from varchar(30). This is another way...
October 29, 2009 at 1:44 pm
Thanks SSCertifiable for you suggestion. Full points to you. It worked. Also I hope for those who don't understand what I'm doing they need to work on their clearance level.
October 29, 2009 at 1:37 pm
Viewing 15 posts - 1 through 15 (of 21 total)