Viewing 15 posts - 61 through 75 (of 98 total)
Hi sharma,
Moreover there is no relationship between Employee table
with Address/Qualification table.
Tell me in which scenario you want the result set?
---
May 6, 2008 at 4:56 am
Hi Rob,
try this one.
IF EXISTS (SELECT * FROM tempdb.dbo.sysobjects o WHERE o.xtype in ('U') and o.id = object_id(N'tempdb..#md'))
DROP TABLE #md;
IF EXISTS (SELECT * FROM tempdb.dbo.sysobjects o WHERE...
May 6, 2008 at 3:38 am
hI PsycloneDBA,
try this one. this method will solve your problem.
SELECT 'Shower' AS [10001],'38' AS [10002],'Y' AS [10003],'Y' AS [10004],'1' AS [10005],4.1 AS...
May 5, 2008 at 1:37 am
Hi Paul,
whenever you want to use datatype length make sure you have entered
2n.
this one also be one of the advantages of performance.
ex:
---
...
May 2, 2008 at 7:56 am
Hi Stobbs,
Try this one.
DECLARE @refnum VARCHAR(128)
SET @refnum = '2143345345345345345345345342100712n3456789090987766544332211m'
SELECT SUBSTRING(@refnum,PATINDEX('%[a-z]%',@refnum),1)
---:)
April 30, 2008 at 3:22 am
Hi Ryan Randall,
WOW .... Great Man. Thank you very much ... 🙂
April 15, 2008 at 3:32 am
Hi Grant Fritchey,
I tried with cursor. Like this.
DECLARE...
March 24, 2008 at 12:02 am
Hi Grant Fritchey,
Thanks for quick reply.
We have to change...
March 20, 2008 at 7:47 am
Moreover two more things are there as for as my concern.
1.Use brackets to enclose a range of characters, such as [a-f]
2.Use a reserved word as a field name. For instance,...
February 20, 2008 at 11:17 pm
Hi massawa,
After creating the Script for the particular Database, you have to...
February 20, 2008 at 2:41 am
I tried through linkedserver. Plz check it out .... :w00t:
SELECT
*
FROM
sys.sysservers
ORDER BY srvid DESC
EXEC master.dbo.sp_addlinkedserver
@server = N'ExcelSte12'
,@srvproduct=N'Excel'
,@provider=N'Microsoft.Jet.OLEDB.4.0'
,@datasrc=N'C:\Book1.xls'
,@provstr=N'Excel 8.0'
SELECT
*
FROM
ExcelSte12...[Sheet1$]
In this "Sheet1$" is the...
February 20, 2008 at 2:17 am
try this one also ....
DECLARE @s1 varchar(16)
DECLARE @s2 varchar(16)
SET @s1 = '1232'
SET @s2 = 'tete,1232'
SELECT @s1,@s2
SELECT SUBSTRING(@s2,CHARINDEX(@s1,@s2,1),LEN(@s1))
---
February 20, 2008 at 1:52 am
Hi abhi,
try the below one. it may help you to sort out the problem. 😀
DROP TABLE #temp
CREATE TABLE #temp (ID int,AmountDue int)
INSERT INTO #temp (ID,AmountDue)
SELECT 1,5
UNION...
February 19, 2008 at 6:18 am
Viewing 15 posts - 61 through 75 (of 98 total)