Viewing 15 posts - 17,746 through 17,760 (of 22,202 total)
There is no "best" tool, there's what works for you and your situation. I can make a few suggestions.
Start treating your database like code. Check all the scripts into source...
April 9, 2009 at 5:28 am
Thanks to an article published here a few months back, I read a book called Getting Things Done by David Allen. He's pretty ruthless with time management too. It's made...
April 9, 2009 at 5:22 am
Something like this will help get you going.
SELECT TOP (100)
a.CustCode
,a.COUNT(CustCode) CustCodeCount
FROM TableA a
GROUP BY a.CustCode
ORDER BY CustCodeCount DESC
I didn't use the other table becuase I don't see a need for...
April 8, 2009 at 11:48 am
I think it might depend on how selective the index is. Also, because you're updating the index values themselves, you might be seeing a lock on the index, not the...
April 8, 2009 at 10:34 am
Have you tried using aggregation yet? I'm pretty sure you'll need to use within a derived table, but if you can get the aggregated values first, you'll be on your...
April 8, 2009 at 10:29 am
OK. Although if that information was in the table it would be easier to query.
Regardless. What TSQL have you tried for getting the data together so far?
April 8, 2009 at 9:31 am
Greg Roberts (4/8/2009)
Here are the job steps.
Step 1: Backup the...
April 8, 2009 at 9:28 am
Sounds like you did a backup to the same file without issuing INIT to reset it. So, it appended the backup to the file.
If you RESTORE HEADERONLY you should see...
April 8, 2009 at 9:27 am
I'm sorry, I guess I wasn't clear. I meant that you must have another column of data in the tables that references date. How else will you determine that you...
April 8, 2009 at 9:18 am
There would need to be a bit more information in those tables. You can't really get data based on date without having stored some date information.
Once you have the date...
April 8, 2009 at 8:50 am
Run the RESTORE ... HEADERONLY. That will tell you all you need to know about the .BAK file itself. Then you can also run RESTORE... FILELISTONLY to get the file...
April 8, 2009 at 6:38 am
After you unzip the file you need to run a RESTORE command. If you're getting particular errors with the restore, please post them. If you're really unsure how to use...
April 8, 2009 at 6:34 am
I'm not aware of a formula that will do what you want, although if there is one, I'd suggest swinging by Adam Machanic's blog to look for it. By &...
April 8, 2009 at 6:29 am
Here's the basic way to do an insert into a table using a select. I'm using your code, so it'll be up to you to translate this:
INSERT INTO dbo.MyTable
(Column1
,Column2
,ColumnWhatever)
SELECT d.NewColumn1
,d.NewColumn2
,d.SomethingElse
FROM...
April 7, 2009 at 7:06 pm
Viewing 15 posts - 17,746 through 17,760 (of 22,202 total)