Viewing 8 posts - 1 through 8 (of 8 total)
SELECT SUBSTRING(phonenumber,1,charindex('.',phoneNumber)-1) from table
September 8, 2009 at 6:46 am
How to rewrite this block in Oracle?.
December 8, 2008 at 11:09 am
[font="Comic Sans MS"]AdventureWorksDB.msi source code, 28053K, uploaded May 8 2007 - 292342 downloads
AdventureWorksDBCI.msi source code, 29177K, uploaded May 8 2007 - 41144 downloads
AdventureWorksBI.msi source code, 7393K,...
October 26, 2008 at 11:53 am
Thanx Chris.
But my Problem is slightly Complex.What will be stored in strquery
is a large dynamic query with many conditions.So Please suggest
a way to directly use StrQuery if at all...
October 17, 2008 at 9:35 am
Create Table #employee
(
Empid int,
Employee varchar(20)
)
Create Table #employee1
(
Empid int,
Employee varchar(20)
)
Insert into #Employee values('1','Sirish')
Insert into #Employee values('2','Sateesh')
Declare @Strquery varchar(100)
SET @StrQuery='Select Empid,Employee from #Employee'
EXEC('INSERT INTO #employee1 (Empid,Employee) SELECT ''+@Strquery+''')
Select * from #Employee1
Getting Some...
October 17, 2008 at 9:15 am
After little bit of google search i came up with the following....
SELECT Name
FROM sys.procedures
WHERE OBJECT_DEFINITION(object_id) LIKE '%SPname%'
UNION
SELECT Name...
September 18, 2008 at 4:11 am
declare @name varchar(50)
set @name = 'Smith,Fred,John,J.Smith,Ann,Mary,Ken,Ted,quen,Kin'
What about separating more names?
Will the same query work?
September 14, 2008 at 3:39 am
Viewing 8 posts - 1 through 8 (of 8 total)