Viewing 15 posts - 11,641 through 11,655 (of 15,377 total)
You can use APPLY instead and it will work just fine.
EXEC sp_executesql N'SELECT [id]
FROM [dbo].[test]
CROSS APPLY dbo.FN_DELIMITED_STRING_TO_TABLE(@1,'','')
ORDER BY id',
N'@1 varchar(MAX)',
'1000,2000,3000'
From what you posted I don't understand why you need...
June 15, 2012 at 7:50 am
farooq.hbs (6/15/2012)
Yup results are Correctbut Honestly not hapy with my queryy
Plz do let me know if there is any other option so tht query runs fast
The answer starts here. http://www.sqlservercentral.com/articles/Best+Practices/61537/%5B/url%5D
June 15, 2012 at 7:33 am
My guess is that it returned the data but the report doesn't know how to handle it in a single result set.
June 14, 2012 at 1:31 pm
One requirement of a CTE is the previous line must end with a semicolon. As such many people have developed the habit of beginning a cte that way.
;with cte as...
Try...
June 14, 2012 at 1:28 pm
First of all this looks a lot like homework. As such we will point you in the direction of a solution but not actually provide it.
Second there is nowhere near...
June 14, 2012 at 1:26 pm
What are you trying to connect? SSMS? An application? If it is an application have you double checked your connection string? Is it the correct connection string? I can't see...
June 14, 2012 at 12:01 pm
Landscape:
height = 8.5
width = 11
Portrait:
height = 11
width = 8.5
June 14, 2012 at 10:24 am
height and width.
June 14, 2012 at 10:17 am
Sounds like transactional replication may be a good solution for you.
http://msdn.microsoft.com/en-us/library/ms151176%28v=sql.90%29.aspx
June 14, 2012 at 10:15 am
Talk to your network admin. Your box can't see the sql box on the network.
June 14, 2012 at 9:35 am
There are also a few people who didn't consider the possibility of unique constraints being defined in the same CREATE TABLE statement, for instance because they have the habit of...
June 14, 2012 at 9:34 am
At this point it seems the two of you are putting in far more effort on this than the OP. 😉
June 14, 2012 at 9:29 am
http://www.aicas.com/jamaica/3.4/doc/jamaica_api/java/net/NoRouteToHostException.html
This is almost certainly a network issue. Can you ping the sql box from your app box?
June 14, 2012 at 9:27 am
harri.reddy (6/14/2012)
alright it allows remote connection,what about ping ,how to do it?
Open a command prompt
ping [servername]
June 14, 2012 at 9:20 am
Viewing 15 posts - 11,641 through 11,655 (of 15,377 total)