Viewing 15 posts - 5,611 through 5,625 (of 7,191 total)
It means you can't use the new features in SQL Server 2005 on any of those databases. This includes keywords such as ROW_NUMBER, and the dynamic management views.
John
December 9, 2010 at 8:30 am
Resender (12/9/2010)
My first problem is when I delimit my @SelectedColumns does this require a while loop.Or how do I do it.
Are you talking about splitting the string, or reassembling it...
December 9, 2010 at 7:06 am
Resender (12/9/2010)
I believe set-based query to split my columns was already in my stored procedure
SET @truncatedChar = REPLACE(@SelectedColumns,',','')
SET @occurenceChar = (LEN(@SelectedColumns) - LEN(@truncatedChar))
...
WHILE (@counter < @occurenceChar...
December 9, 2010 at 6:06 am
Resender (12/8/2010)
I can put these in a temp table and loop through them.
Shouldn't be any reason to do any looping. The splitting of the string can be done with...
December 9, 2010 at 3:42 am
Oh. Maybe it's been taken down for maintenance. If you do a Google search for it, you can look at the cached version.
John
December 8, 2010 at 7:42 am
Ah yes, so they are. Please have a read of this...
http://www.sommarskog.se/dynamic_sql.html
... and decide whether you're still happy with this way of coding. If you are, then what...
December 8, 2010 at 3:47 am
I can't find where you're setting the value of @SelectedColumns. This is the important part. You need to get the data types of the columns you are returning...
December 8, 2010 at 3:33 am
There has been much discussion on this in the past, some of it rather partisan. Please search for attaching versus restoring, have a read, and then post back if...
December 8, 2010 at 3:13 am
OK, so it depends on the data types of the columns returned, not of the parameters. Please post your code and table DDL so that we can help you.
John
December 8, 2010 at 3:09 am
What do you mean by size? Do you mean number of rows? If so, use the TOP keyword. If you mean number of KB, I think it's...
December 8, 2010 at 2:58 am
Isn't it just that you need to alias your subquery (as Kit originally suggested) - something like this:
select nr_praktijk, naam_praktijk, jaar_k, kwartaal_k, aantal from lvr_praktijken
inner join zsk_kwartalen on nr_praktijk...
December 7, 2010 at 8:36 am
Kat
None of us are paid to do this and we do it in our own time, so the easier you make it for us to help you, the more likely...
December 6, 2010 at 8:27 am
Kat
Please provide table DDL, sample data in the form of INSERT statements and expected results. That way we can visualise your problem properly and give you a tested solution.
Thanks
John
December 6, 2010 at 6:02 am
LOOKUP_BI-756009 (12/3/2010)
Column G exist in both TEST & #L
Exactly - so you need to specify which G you want. Qualify your column name so that it is "TP.G" or...
December 3, 2010 at 8:38 am
Viewing 15 posts - 5,611 through 5,625 (of 7,191 total)