Viewing 15 posts - 4,051 through 4,065 (of 7,187 total)
Is this homework? What have you tried so far?
Here's a hint: use GROUP BY and COUNT(*) in a CTE or subquery to find out how many of each product...
May 10, 2013 at 5:09 am
If you start SQL Server in single user mode, then assuming your machine\administrator account is a member of the local Administrators group in Windows, you will have full access to...
May 10, 2013 at 1:17 am
I'm happy to help to solve the problem, but I'm not going to solve it for you. The best way for you to learn is to try it out...
May 9, 2013 at 8:17 am
I think you just need to join the table to itself on t1.Customer = t2.Customer and t1.InvoiceNo = t2.InvoiceNo + 1.
John
May 9, 2013 at 7:55 am
Do you have any other account with full access to SQL Server (sa, for example)? Log in as that and recreate your account. Now log in with your...
May 9, 2013 at 6:59 am
What does the package do? Sounds like it may have altered some permissions.
John
May 9, 2013 at 6:40 am
You need to use a GROUP BY clause.
John
May 9, 2013 at 4:40 am
You need to run the two statements as one batch, since a variable will only "live" until the end of the batch.
John
May 9, 2013 at 3:21 am
Is this homework? Please show us what you've tried so far, and we'll see if we can help with where you're going wrong?
John
May 9, 2013 at 3:19 am
I don't know the answer to your question, but I can tell you what I'd do. I'd restore a copy of the corrupted database on to a test server,...
May 1, 2013 at 8:52 am
April 30, 2013 at 5:54 am
Well, the clustered index is the data, so I think you're looking at the larger number. Index_size only includes, I believe, the non-clustered indexes (as well as XML, spatial...
April 29, 2013 at 9:10 am
Don't know. Where did that data come from?
John
April 29, 2013 at 8:31 am
In that case, I'm not sure why your transaction log should grow to nearly three times the total size of your indexes. Does that 60GB include the clustered indexes?...
April 29, 2013 at 7:52 am
Jason
You're only running one ALTER INDEX statement at a time, so it doesn't make any difference whether you use an explicit transaction or not. I think what Lynn was...
April 29, 2013 at 7:41 am
Viewing 15 posts - 4,051 through 4,065 (of 7,187 total)