Viewing 12 posts - 136 through 147 (of 147 total)
If you're going to do it that way then getdate() is the best way to go.
However, I normally query the msdb..sysjobhistory table to get the starttime (warning, run_date and run_time...
March 3, 2009 at 10:04 pm
Microsoft recommends 1 data file per processor core, so that's how we set up tempdb. As Manu noted there's no real point in making more than 1 log file,...
March 3, 2009 at 5:46 pm
I was intending that the select become a case statement, as per the following code for the single-table (fixed bracket boundaries) design:
[font="Courier New"]create table #LookupTab (ID int, Bracket1 float, Bracket2...
March 3, 2009 at 3:31 pm
If the "brackets (ie. 0-50, 50-100, etc.) are always the same for the different states then these could be added to the state table with a different multiplier for each...
March 2, 2009 at 8:37 pm
I'd do it completely differently.
First, create and populate a lookup table:
create table tablookup (
kennungint,
tabnamesysname,
joincolsysname)
insert into tablookup values (1, 'tblAdressAnrede', 'FKTextAnrede')
insert into tablookup values (2, 'tblAdressTitel', 'FKTextTitel')
.
.
.
Then your procedure's code could...
March 1, 2009 at 3:45 pm
We've found SSIS very good for managing multi-stream loads. It takes a while to build but manages it very nicely. If it's not something that needs to be...
February 26, 2009 at 8:38 pm
I'm guessing that you want to script this to check all tables.
You can append a tablename to sp_spaceused to get the usage of a specific table. If you need...
February 26, 2009 at 8:31 pm
The thing that Enterprise has over Standard that affects our environment is clustering, but it depends on your environment/requirement as to whether that's relevant. Here's a link to a...
February 19, 2009 at 4:01 pm
G'day Jonathon,
Glad to be of service.
It's good to hear you're on top of the potential collation issue. It took me quite a while to work out what was going...
February 19, 2009 at 2:43 pm
G'day Kendal,
When you're writing to either configuration each block is being written to two physical drives at once and the write has to complete to both drives before it is...
February 18, 2009 at 5:54 pm
G'day RD,
I've never dealt with SQL Server in workgroups before, but the first thing I'd do is to "thank" whoever required this with a blunt instrument.
If you still have to...
February 18, 2009 at 4:53 pm
G'day Jonathon,
It sounds like you've expanded the tempdb data file(s) but not the log file(s).
The 40MB you're loading into the temporary table is presumably being loaded using "select into ..."...
February 18, 2009 at 3:23 pm
Viewing 12 posts - 136 through 147 (of 147 total)