Viewing 15 posts - 11,641 through 11,655 (of 15,381 total)
Lynn Pettis (6/15/2012)
If I may, I am wondering why you are even using sp_executesql to run your select statement. From what I am seeing, it isn't necessary.
I asked that...
June 15, 2012 at 8:47 am
mark.sayer (6/15/2012)
The NOLOCK hint is for speed, the query is...
June 15, 2012 at 8:26 am
ChrisM@Work (6/15/2012)
Sean Lange (6/15/2012)
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...
June 15, 2012 at 8:10 am
http://msdn.microsoft.com/en-us/library/ms188783%28v=sql.105%29.aspx
You might want to do this during off hours especially if the table is large because it might take a bit of time to create the index.
June 15, 2012 at 8:03 am
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
Viewing 15 posts - 11,641 through 11,655 (of 15,381 total)