Viewing 15 posts - 9,346 through 9,360 (of 14,953 total)
Steve:
I keep running into people looking for some advice on "what's a good book to start with in learning SQL Server?", and similar questions about starting the DBA path.
In the...
June 5, 2009 at 7:43 am
An FAQ on "How to get started learning SQL Server" would definitely be a good idea. I'll suggest it to Steve.
The way I started learning SQL Server was through...
June 5, 2009 at 7:32 am
Yeah, I got what you meant on that one, Grant. Was just expanding on it.
June 5, 2009 at 7:27 am
Sorry. Forgot to include the script for that.
-- Creates a Numbers table for various uses. This script is SQL 2005 or later only
create table dbo.Numbers (
Number int primary...
June 5, 2009 at 7:26 am
Right-click on the database in Management Studio.
Properties
Files
It will list the files that the database is composed of, both data and log files. Usually, the log file is second.
Two of...
June 5, 2009 at 7:23 am
Jonathan Kehayias (6/4/2009)
EdVassie (6/4/2009)
BOL is Books Online.GSquared has a good idea about spiltting your RAID group.
I'd test that with SQLIO before implementing it in production use. A 8 disk...
June 5, 2009 at 7:20 am
Output all your procs into a single script. Modify the script so that it gets rid of the string for you (Ctrl-H in Management Studio ought to do the...
June 4, 2009 at 1:14 pm
Wrap it all in a transaction:
begin transaction
disable trigger ...
your update
enable trigger ...
commit
I've done that and not had problems with it.
June 4, 2009 at 1:09 pm
One problem I've run into with char(1) for this is that some clever developer somewhere along the way inevitably wants to put T/F in a column that also has Y/N,...
June 4, 2009 at 1:04 pm
Here's what I came up with:
create table #T (
ID int identity primary key,
Col char(9));
insert into #T (Col)
select '123456789' union all
select '987654321' union all
select '111222333';
insert into #T (Col)
select '111112222' union all
select...
June 4, 2009 at 12:55 pm
I'm assuming what you did was truncate the log file and then shrink it, and now you want to expand it again. Is that correct?
If so, expanding it again...
June 4, 2009 at 9:20 am
You could potentially avoid a cursor in this. But it'll take more work and be less efficient.
Cursors do have their uses. Limited, yes, but uses nonetheless.
June 4, 2009 at 9:14 am
That's called a "correlated sub-query". Is that what you're looking for?
June 4, 2009 at 8:26 am
Viewing 15 posts - 9,346 through 9,360 (of 14,953 total)