Viewing 15 posts - 14,281 through 14,295 (of 15,381 total)
This topic came up a few months ago and I posted a really NASTY ugly cursor based dynamic sql solution that I created about a decade ago. Lowell also posted...
August 12, 2011 at 7:55 am
I think the more important question is how can you eliminate your cursor and therefore not really care about some of the subtle details. 😛
Honestly cursors are one the most...
August 12, 2011 at 7:21 am
That error message is pretty self explanatory. You did not provide the required parameter to sql. I see a lot of c# code referencing a user defined data access piece....
August 11, 2011 at 3:54 pm
As long as the instance name stays the same (or it isn't a named instance) the connection string should remain the same as it was before.
August 11, 2011 at 3:35 pm
Yeah you have two controls with the name Label1. This of course has nothing to do with sql and everything to do with your web form code.
August 11, 2011 at 3:34 pm
Daryl AZ (8/11/2011)
Select yada
FROM MyTable
Left Join fnc_tableFromString(@argMyString) theName ON myTable.name = theName.name
where myTable.id...
August 11, 2011 at 2:11 pm
@loginnames= 'XYZ', 'SQL'
That is trying to assign two string values to a single variable.
You might need something like
@loginnames= '''XYZ'', ''SQL'''
Of course you need to have a plan of actually...
August 11, 2011 at 1:52 pm
Another important thing to note, you are using select * in your view. This will hold the current columns at the time you build the view. It will NOT be...
August 11, 2011 at 1:44 pm
Not much detail to go on there but take a look at substring and charindex. Should get you started in the right direction.
August 11, 2011 at 12:56 pm
User defined routine, trigger or aggregate tried to rollback a transaction that is not started in that CLR level. An exception will be thrown to prevent execution of rest of...
August 11, 2011 at 11:01 am
You have an extra comma at the end of the last parameter.
August 11, 2011 at 9:23 am
Minaz Amin (8/10/2011)
I want to have a general statement which depending on the parameter I provide will create a view with the column names from the tables.
This can...
August 11, 2011 at 8:10 am
Best source of any documentation is BOL. The partition will be found as part of the syntax for ROW_NUMBER.
August 11, 2011 at 8:05 am
It is not on the Reserved word list from Microsoft. Not sure why that one visually looks like a keyword.
August 11, 2011 at 7:53 am
Viewing 15 posts - 14,281 through 14,295 (of 15,381 total)