Viewing 15 posts - 1 through 15 (of 17 total)
Hi
I too experienced the same result (1,1). I tried it in sql 2005.
pls give the explanation......
January 28, 2010 at 9:36 pm
hi,
Hope the following code helps u.....
the with statement can be given with only single select clause as below
WITH Parts
AS
(
...
December 30, 2009 at 9:36 pm
hi
its simply returns the last sname in alphabetical order....
Its something similar to
select top 1 sname from students order by sname desc
November 16, 2009 at 4:57 am
Have u used a XML variable in your 2ndSP to receive the output?
September 7, 2009 at 5:08 am
yes, I am able to connect to linked server(s) through SSMS....
And the servers are running with default port only.... and no Anti-virus software is running....
September 7, 2009 at 2:42 am
the server is located in LAN only......
and the error is not for specific server.....
September 7, 2009 at 1:24 am
Sorry i was out of station for past two days.....
S it runs....
September 6, 2009 at 9:27 pm
This is my procedure:
IF EXISTS (SELECT srv.name FROM sys.servers srv WHERE srv.server_id != 0 AND srv.name = N'ServerName')
begin
EXEC sp_dropserver @server=N'ServerName', @droplogins='droplogins';...
September 4, 2009 at 1:22 am
Thanks for ur reply
the code error (quotes) is made when typing......
i have given correctly in Procedure.....
yes this Procedure is runing at Login and Logout time to read values from other...
September 4, 2009 at 12:36 am
Try with this :
select ename + ' ' + (case when ((select count(*) from emp where ename=e.ename) > 1 ) then ecode else '' end) as ename from emp e
August 5, 2009 at 2:52 am
U can introduce a new column and try it as below:
select *,case when ID=KeyId then 0 else 1 end as Eq from myTable order by Eq
July 21, 2009 at 12:05 am
hi
I want to get the identity column value after insert.....
Can i get this with an int variable....
July 20, 2009 at 9:49 pm
Hi
I was also looking for the same problem....
Thanks a lot....
But is there any way to output the values into Variables than into the Table?
July 20, 2009 at 6:15 am
Hey there is a slight modification in the previous code
just apply this code
Select
lastname,
case when CharIndex(' ', firstname) > 0 Then substring(firstname,1, CharIndex(' ', firstname)-1) else firstname end firstname_1,
case when CharIndex('...
July 13, 2009 at 3:42 am
Viewing 15 posts - 1 through 15 (of 17 total)