Viewing 15 posts - 391 through 405 (of 1,253 total)
In this case the execution of the procedure is not done through sp_executesql. So will this code always recompile while executing?
February 25, 2009 at 2:20 am
Different tables can be passed as input to the procedure. So can the execution plan of the procedure be different for different tables?
February 24, 2009 at 5:53 am
You also need to fix the issue while u r inserting data into the varchar column. You need to make sure that numeric data is being inserted/updated into that column.
February 24, 2009 at 5:50 am
Tally table method is the best way to do things like this.
February 24, 2009 at 5:45 am
I think the union method is the way to go. Probably the most efficient method of the lot.
February 24, 2009 at 5:40 am
check these links.
http://sqlblog.com/blogs/tibor_karaszi/archive/2007/08/23/query-cost.aspx.
This link contains another inner link. Read the comments section of the inner link.
February 24, 2009 at 5:18 am
From BOL -
The total cost to the query optimizer for executing this operation and all operations preceding it in the same subtree.
February 23, 2009 at 11:33 pm
Yes a view is a nice idea but it will work only if the serial numbers dont need to be presisted in the database.
February 23, 2009 at 11:27 pm
Jonathan Kehayias (2/23/2009)
February 23, 2009 at 11:24 pm
is created date unique for each record in that set of records.
February 23, 2009 at 3:49 am
nice article.
Is the deadlock info persisted after server/sql service restart.
February 23, 2009 at 3:44 am
Do you have any columns that have unique values. For using the rownumber function unique columns will be required to make the joins.
a very basic example...
create table #t...
February 23, 2009 at 12:28 am
Another method to do it ...
Add the column you want to store serial numbers as identity column
Alter table table1 Add serialnumner INT IDENTITY(1,1)
February 23, 2009 at 12:24 am
Viewing 15 posts - 391 through 405 (of 1,253 total)