Viewing 15 posts - 331 through 345 (of 569 total)
mahesh.vsp (7/16/2009)
quote]
Hi,
You mean reversing of the pivot?
July 16, 2009 at 10:56 pm
Hi,
Along with, PS correct approach, the DBCC inputbuffer
shows the contents of
sp/table/.. against the SPID
ARUN SAS
July 16, 2009 at 10:48 pm
kevinwinters (7/15/2009)
Any chance I can convert that text:"1,203.75" to a number like 1203.75 on the fly?
Hi,
Try this
declare @ABC nvarchar(20)
select @abc = '1,234.56'
select cast(replace(@ABC,',','') as numeric(18,2))
RESULT
1234.56
July 15, 2009 at 9:43 pm
Hi,
You delimited the comma separated from the string into the table and use the table in the stored procedure like
create table #temp
(
city varchar(30)
)
declare @abc varchar(1000)/*Alwayes should be in max value*/
select...
July 13, 2009 at 10:59 pm
arun.sas (7/7/2009)
Eswin (7/7/2009)
What should i do to find the root cause of the issue?What all events and data columns should i check when in run my Trace for the issue?
Hi,
One...
July 7, 2009 at 10:53 pm
Eswin (7/7/2009)
What should i do to find the root cause of the issue?What all events and data columns should i check when in run my Trace for the issue?
Hi,
One of...
July 7, 2009 at 10:14 pm
Bur@ir (7/7/2009)
Customer_ID: ...
July 7, 2009 at 9:09 pm
Hi,
also try this
create table #temp
(
Cust_Id int,
Cust_Ser varchar(20)
)
insert into #temp
select 1234,'Football'
union all
select 1234,'Swimming'
union all
select 1234,'Table Tennies'
union all
select 1234,'Basketball'
select Cust_Id, (case when Cust_Ser = 'Football' then 'FB'
when Cust_Ser = 'Swimming' then...
July 6, 2009 at 5:24 am
Dean Jones (7/6/2009)
Invalid object name 'tblMarket_Profifile'.
Msg 266, Level 16, State 2, Procedure spInsertProfile, Line 2215
Transaction count after EXECUTE indicates that a...
July 6, 2009 at 4:56 am
FreeHansje (7/6/2009)
DECLARE @DBNaam varchar(50), @file1 varchar(200), @file2 varchar(200)
SET @DBNaam = 'DBName2'
IF EXISTS(SELECT DBID FROM sysdatabases
WHERE name = @DBNaam)
BEGIN
DROP DATABASE @DBNaam;
END
Hi,
try this
DECLARE @DBNaam varchar(50),
@DROP nvarchar(100),
@RESULT nvarchar(200)
set @DBNaam = 'DBName2'
set @DROP =...
July 6, 2009 at 4:38 am
Hi,
try this
create table #temp
(
text1 varchar(100)
)
insert into #temp
select '\VOL003\TEXT\0001\11400034_00000.txt'
union all
select '\VOL003\TEXT\0001\114000305_00000.txt'
union all
select '\VOL003\TEXT\0001\1140000036_00001.txt'
select replace(text1,'\VOL003\TEXT\0001\','') from #temp
Result
11400034_00000.txt
114000305_00000.txt
1140000036_00001.txt
ARUN SAS
July 4, 2009 at 4:42 am
Digs (7/1/2009)
SO I guess its CAST(A AS VARCHAR) + '_' + B i n the for the formula in the properties part of design in the SQL server table.
Hi,
try...
July 2, 2009 at 2:43 am
hein (6/30/2009)
July 1, 2009 at 1:09 am
descentflower (7/1/2009)
How would i do that with an efficient way?
Hi,
What you mean the efficient way???
create tbDestination
(
col1 int default as 1,
col2 int
)
insert into tbDestination (Col2)
select * from tbSource
create tbDestination
(
col1 int ,
col2...
July 1, 2009 at 12:35 am
pat (6/30/2009)
how can i get report to get row count for all tables in database
Hi,
Try Another method
USE DB
GO
SELECT
a.name, object_name (i.id) TableName, rows as RowCnt
FROM sysindexes i INNER JOIN sysobjects o...
June 30, 2009 at 9:26 pm
Viewing 15 posts - 331 through 345 (of 569 total)