Viewing 15 posts - 421 through 435 (of 443 total)
I myself had this issue. And aftere searching here and there, I found that the equality (=) operator elininates the trailing spaces and then compare. If you want to compare...
July 15, 2008 at 10:05 pm
Try using Distinct in your query.
JOIN acts like inner join. One of your our tables might be having duplicate value in the column used in the join condition. that is...
July 14, 2008 at 10:24 pm
Read the following post for more information.
http://www.sqlservercentral.com/articles/Stored+Procedures/xpfileexist/183/">
http://www.sqlservercentral.com/articles/Stored+Procedures/xpfileexist/183/
Also, You might be running SQL Service with LocalSystem or a local machine account.
Atif Sheikh
July 14, 2008 at 6:06 am
Ports are mentioned in Endpoints and then in routes.
Try using same port numbers at sender and receiver, say, 9998.
My Service Broker is working perfectly on this port.
I have...
July 11, 2008 at 5:41 am
what help are you expecting...? Complete design?
July 11, 2008 at 5:09 am
I wonder why people say it is IMPOSSIBLE to call a stored procedure from a function. It cannot be done directly, but, indirectly, YES it is POSSIBLE. I just ran...
July 11, 2008 at 5:04 am
Dynamic SQL is the solution.
Generate the query in your sp and Execute it with EXEC.
I tried by the following code;
Declare @sql varchar(max)
July 11, 2008 at 1:25 am
First, I didnt understand this condition;
IF @ipinput LIKE '%'
What are you trying to check by this condition?
Secondly, for 3,7 and 8;
simply check by
Declare @ipinput as int
Declare @sinput varchar(5)
Set @sinput =...
July 11, 2008 at 12:42 am
Well i dont see any problem in the Routes. Just check the following;
1. Grant Connect to Endpoints to [public] at both sender and Receiver.
2. Grant SEND...
July 11, 2008 at 12:08 am
I think PIVOT will do the job...
Try this,
SELECT * FROM
(
SELECT c.certID, c.codetype, c.polnum FROM coverages c
WHERE c.certID = 670624 and c.codetype in ('AUTOLI','GENLIA')
) m
PIVOT (MAX(polnum) FOR codetype IN ([AUTOLI],[GENLIA]))p
Atif...
July 10, 2008 at 10:30 pm
I always wonder why the Message window is NOT read-only. The negative impact is clearly mentioned in the Answer of this question. Why not it is read-only...?
July 10, 2008 at 9:47 pm
You have to Enable the xp_cmdshell from
Surface Area Configuration --> Surface Area Configuration for Features.
Complete syntax is ;
xp_cmdshell { 'command_string' } [ , no_output ]
command_string can be any DOS...
July 10, 2008 at 5:59 am
Check the routes exists;
In Source to Destination
And
In Destination to Source
The route should be defined at both ends, Source and Destination. Otherwise, the conversation will not take place.
Also, go for...
July 10, 2008 at 5:52 am
Nice Code.
I did the same thing with this query...
select ccu.table_schema + '.' + ccu.table_name as MTablename, ccu.column_name as Mcolname,
ccu1.table_schema + '.' + ccu1.table_name as Tablename, ccu1.column_name as colname...
July 10, 2008 at 3:59 am
You will need a Function in this case...
CREATE FUNCTION [dbo].[fnJoinTabVals] ( @pTableB_ID int)
RETURNS varchar(8000)
AS
BEGIN
declare @vTableVals varchar(8000)
Select @vTableVals=COALESCE(@vTableVals+',','') + TableB_JoinColumn
FROM TableB
WHERE TableB_ID = @pTableB_ID
RETURN isnull(@vTableVals, '')
END
Now Call...
July 10, 2008 at 12:22 am
Viewing 15 posts - 421 through 435 (of 443 total)