Viewing 15 posts - 4,096 through 4,110 (of 7,191 total)
satwikchoudary (4/19/2013)
Can any one explain why does the select command turning to cross join please ??
In the old style syntax, a cross join was denoted by separating the tables to...
April 19, 2013 at 8:20 am
I'm sure it is. You'll either have to give db_owner access or speak to the vendor.
John
April 19, 2013 at 5:40 am
Thanks for posting back with the solution.
Please do not use the NOLOCK hint unless you completely understand the potential consequences. If in doubt, leave it out.
John
April 19, 2013 at 4:50 am
It's probably the application checking that you're a member of the db_owner role before you make the changes. If it allows you to proceed despite the fact you're not...
April 19, 2013 at 4:46 am
To generalise, if you have n tables Table1, Table2, ... , Tablen where for each value of k Tablek has k rows populated with values 1,2,...,k:
The COUNT is n!
...
April 18, 2013 at 7:34 am
Are the exclamation marks in the explanation an expression of surprise, or are they supposed to represent factorials?
John
April 18, 2013 at 4:52 am
Client? Why is the client interested in indexes? All he needs is a database that performs according to his expectations (or according to SLAs). How you, as...
April 18, 2013 at 3:46 am
You should find all the information you need in the restorehistory table in msdb.
John
April 18, 2013 at 3:08 am
Dominic
Here's another way of doing it. It avoids the correlated subquery in David's solution and so it may perform better. You'll want to test.
John
-- Data
WITH MyCTE(ClaimKey ,ARevDate ,ARowNum,CauseCode)...
April 18, 2013 at 2:37 am
A full backup will not do anything with the log files.
I know. The full backup is in case shrinking the logs causes any problem that you might want to...
April 18, 2013 at 1:36 am
It's OK to shrink files if the reason they've grown isn't likely to be repeated. This is indeed the case in your situation - somebody set the database to...
April 17, 2013 at 8:55 am
This works for your sample data.
-- Union both tables together
WITH AllItems (ItemCode, FrgnName, UpdateDate) AS (
SELECT ItemCode, FrgnName, UpdateDate
FROM AITM
UNION ALL
SELECT ItemCode, FrgnName, UpdateDate
FROM OITM
)
-- Number the rows for each...
April 17, 2013 at 8:48 am
I'd wager that the trigger is your problem here. You've got functions within functions in it. You ought to try rewriting those functions as a very minimum. ...
April 17, 2013 at 8:26 am
Here's one way of doing it. It may not be the most efficient way, so you'll want to test for performance if you're going to use it in production.
SELECT...
April 17, 2013 at 8:11 am
Perhaps you're getting a page split? This can happen if you update a column with a variable length data type. How many indexes are there on your table?
John
April 17, 2013 at 8:01 am
Viewing 15 posts - 4,096 through 4,110 (of 7,191 total)