Viewing 15 posts - 46 through 60 (of 78 total)
create table log
(
ecode int,
id int,
eff_date datetime
)
insert into log
select 100,1,'03/jun/2009'
union all
select 100,2,'02/jun/2009'
union all
select 100,3,'16/jun/2009'
union all
select 200,1,'07/jun/2009'
union all
select 200,2,'08/jun/2009'
union all
select 200,3,'05/jun/2009'
;with test AS (
select ecode, ID,
...
June 2, 2009 at 10:15 am
ningaraju.n (5/29/2009)
but i may contain this text also
@text='CAST(@Id nvarchar(100))
CAST ((@pageNo * PageSize - 1) NVARCHAR(100))
CAST (''&Parameter'' NVARCHAR(100))'
when i...
May 30, 2009 at 1:01 am
Ramesh (5/27/2009)
Labneh (5/27/2009)
i got it... didn't have to use row_number... here it is in case someone is in a crunch
SELECT T1.*
FROM TableName...
May 28, 2009 at 4:31 am
ningaraju.n (5/27/2009)
The code is dynamic...
Occurence of CAST is not Known..... it may occur 100 times or 0 times
and the Variables inside the cast also not known...
and the code...
May 28, 2009 at 2:25 am
Declare @Text NVARCHAR(max)
Set @Text='
DECLARE @userid INT
SELECT * FROM [User] WHERE UserId=@userId
DECLARE @Id INT,@IS as NVARCHAR(10)
SELECT CAST(1 BIGINT)
SELECT * FROM [Role]
SELECT CAST(@id NVARCHAR(100))
declare @IG nvarchar(100)
select * from...
May 27, 2009 at 8:51 am
Dear DPhillips,
Thank you for the painstakingly elaborate explanation. Took me a while to figure out - not because the explanation was lacking in anyway - but due to my own...
May 12, 2009 at 1:46 am
DPhillips (3/17/2009)
Chris Harshman (3/17/2009)
I'm just suprised that SQL Server would let a stored procedure modify its own code. That's the real head scratcher here. :ermm:
Many code environs can...
May 11, 2009 at 3:43 am
bhakti (5/8/2009)
|
|-B --
| |-E
| |-F
| ---
|-C--
--- |-D
Suppose this is my hierarchy of Employees. Employee D ReportsTo C and Employee E & F Reports To B. Employee B & C...
May 10, 2009 at 3:51 am
nageswara.dhaveji (5/7/2009)
I have modified my query which I have posted earilier... try this ...
create table #temp (name VARCHAR(100), first_name VARCHAR(50), last_name VARCHAR(50))
truncate table #temp
INSERT INTO #temp (name) ...
May 9, 2009 at 9:58 am
DECLARE @t table (name varchar(100), fname varchar(50), lname varchar(50))
INSERT INTO @t
SELECT 'Bill+Gates', '','' UNION ALL
SELECT '+Steve', '','' UNION ALL
SELECT 'Jobs+', '', ''...
May 9, 2009 at 9:37 am
Thanks Rayash. I am sure you are aware and realize it but I will still say that my solution is not elegant: It uses a cursor based approach which is...
May 8, 2009 at 10:51 pm
Ramesh (5/4/2009)
In your case, one go insert...
May 8, 2009 at 10:47 pm
DECLARE @addr VARCHAR(1000), @delim CHAR(1), @x INT
SET @delim = '*'
SET @addr = '5605 PRINCETON AVE STE B* COLUMBUS* GEORGIA*31904*(01/11/06 - 03/26/09)'
...
May 8, 2009 at 4:12 am
Viewing 15 posts - 46 through 60 (of 78 total)