Viewing 15 posts - 7,171 through 7,185 (of 15,381 total)
garyh2k3 (8/12/2013)
FROM
SATXFPMetrics
WHERE [Date] >= CONVERT(datetime,'''+ @StartDate +''',121)
group by [Date]'
--select @sql
--SELECT @SQL1
--exec sp_executesql
EXEC(N'sp_executesql N''' + @sql + @SQL1 + '''')
for example and...
August 12, 2013 at 9:54 pm
I assumed some of the structures were not yours but the post that won't execute certainly was. At any rate I think that something like this will get you what...
August 12, 2013 at 9:45 pm
jamie 82947 (8/12/2013)
I couldn't change the database compatibility level due to a lot of old stuff so I created the view in a new...
August 12, 2013 at 9:31 pm
Before we even get into a query your code has some pretty serious issues. I know you are new and I am not trying to bust your chops but you...
August 12, 2013 at 12:48 pm
learning_sql (8/12/2013)
thanks, I was hoping for an easy answer and got it.So there is no way to query the case's result itself, make sense but I wanted to be sure.
Of...
August 12, 2013 at 9:04 am
I want to modify an SP to use #temp tables, as its very slow at the moment, but I have an issue.
I think you may be chasing your performance problems...
August 12, 2013 at 9:01 am
jamesheslin123 (8/12/2013)
I need to convert a query in MS Access to a view in SQL Server 2005. The view will draw from two tables: Employee and Spaces. I want the...
August 12, 2013 at 8:57 am
Does this date column allow NULL? If you specify a default for a column but allow NULL it will NOT use the default when you don't include that column in...
August 12, 2013 at 8:51 am
ramyours2003 (8/12/2013)
How to the retrieve the password for SQL login, if forgot the password?
You don't. You will have to set it to a new value.
August 12, 2013 at 8:49 am
No need for a temp table here. Just add a where clause.
where thing1.name = @SearchVal
OR thing2.name = @SearchVal
OR thing3.name = @SearchVal
August 12, 2013 at 8:48 am
Check out the articles referenced in my signature. They explain in detail how to do both a static and dynamic version of cross tabs.
August 12, 2013 at 8:09 am
BOR15K (8/12/2013)
I do know that SQL is not...
August 12, 2013 at 8:01 am
Something like this should work as a replacement for your entire view definition.
select ID, x.Item
from TempTesting t
cross apply dbo.DelimitedSplit8K(TestData, ',') x
August 12, 2013 at 7:45 am
The next question is why do you have inserts within a while loop?
August 12, 2013 at 7:37 am
ohadpick (8/12/2013)
Hi,You can use this solution:
http://mitchelsellers.com/blogs/2008/08/08/using-the-in-clause-with-stored-procedures.aspx
You should check out the link that Luis pointed you too, or the one in my signature about splitting strings. It is way faster than...
August 12, 2013 at 7:27 am
Viewing 15 posts - 7,171 through 7,185 (of 15,381 total)