Viewing 15 posts - 43,996 through 44,010 (of 49,571 total)
Well, someone had to do it. The usergroup's been dead for over a year. Now I actually have some time to do stuff like this.
October 7, 2008 at 3:31 am
As an example:
select c.AccountNumber, soh.OrderDate, soh.SalesOrderNumber from Sales.Customer c
inner join Sales.SalesOrderHeader soh on c.CustomerID = soh.CustomerID
where SalesPersonID = 282 and c.TerritoryID = 6
select c.AccountNumber, soh.OrderDate, soh.SalesOrderNumber from Sales.Customer c...
October 7, 2008 at 2:42 am
jacob sebastian (10/7/2008)
October 7, 2008 at 2:34 am
A restore creates the database exactly as it was at the time of backup, tables, indexes, etc. There's no rebuild necessary at all.
What you do need to do after upgrading...
October 7, 2008 at 1:38 am
IntellectYog (10/7/2008)
Hi GailTnx. for very fast reply.
Can u explain me in brief?
What do you want explaining?
October 7, 2008 at 1:35 am
Is this for a demo or presentation or similar?
October 7, 2008 at 1:35 am
It's basically saying that you are asking for a single row to be deleted, but if it does the delete, two will go. To delete only one of duplicate set,...
October 7, 2008 at 1:28 am
zespri (10/6/2008)
Also in SQL Server Books Online it is stated :
•Serializable (the highest level, where transactions are completely isolated from one another
This is not entirely correct. Two Serializable transactions...
October 7, 2008 at 1:09 am
My first suggestion would be to optimise the proc. Replace those cursors with set-based code that should run a lot faster. If you're doing cross tabs, look up the PIVOT...
October 7, 2008 at 12:57 am
Without indexes SQL has to do table scans and hence will take table-level locks. With appropriate indexes, SQL can take more granular locks and hence the two connections don't block...
October 7, 2008 at 12:54 am
What's it doing that it shouldn't be or not doing what it should?
Basically, can you give us a little more detail on what's wrong?
October 6, 2008 at 2:11 pm
Again because of the varchar/nvarchar
In fn_get_sql, the text column is of type text, is a non-unicode value, so datalength returns the length of the string and hence dividing that by...
October 6, 2008 at 2:08 pm
That should work.
Just one thing, you don't need the second if exists. Just put the update in the else part of the if.
As it's currently written, the second if exists...
October 6, 2008 at 2:04 pm
homebrew01 (10/6/2008)
Yes .... I'm a few steps backwards compared to my last position ... !
Look at it as an opportunity. 😉
October 6, 2008 at 12:43 pm
Try adding the indexes back after inserting the data but before querying it. If you're doing more than 1 or 2 queries, you may well see a large benefit.
October 6, 2008 at 12:34 pm
Viewing 15 posts - 43,996 through 44,010 (of 49,571 total)