Viewing 15 posts - 136 through 150 (of 457 total)
3.6GB doesn't seem large at all, especially for an ERP solution.
Five minutes might be a little excessive, but I'd agree that you probably want to back it up a little...
June 27, 2007 at 11:21 am
In the simple recovery mode entries to the log are not recorded. So backing up the transaction log won't really work. As for file/filegroup backups I would assume...
June 26, 2007 at 2:45 pm
Oh, and at the end, do an ALTER DATABASE mydb2 SET MULTI_USER...
June 25, 2007 at 5:20 pm
I'd do something like this if you really don't care about killing all those connections:
BACKUP DATABASE mydb TO....
GO
ALTER DATABASE mydb2 SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
GO
RESTORE DATABASE mydb2 FROM...
June 25, 2007 at 5:19 pm
Ah, whoops, my bad... try this:
SELECT Instances.Name AS InstanceName,
Guilds.GuildId,
Guilds.Name AS GuildName,
Guilds.Faction AS Faction,
convert(char(10), Kills.Date, 101) AS Date,
Realms.RealmId,
Realms.Name AS RealmName,
Realms.Zone,
dbo.fn_IsRealmPublic(Realms.RealmId) AS PublicRealm
FROM Instances
INNER JOIN Kills ON Instances.EndBossId = Kills.BossId
INNER JOIN...
June 25, 2007 at 11:43 am
Change MAX() to MIN() in the script I gave you. Should do it.
June 22, 2007 at 4:55 pm
Ah, I'd missed that...
From what it looks like you're wanting to find the details of the most recent kill of a boss monster, correct? Why not do this...
SELECT Instances.Name...
June 22, 2007 at 4:37 pm
Also if you're seeing long-term table scans on the Kills table, you might consider creating an index on Date and then Name... might help.
June 22, 2007 at 2:47 pm
Well, there could be a lot of things, frankly. You might start by viewing the execution plan to see what action is taking so much time to execute.
What I'd...
June 22, 2007 at 2:46 pm
Assuming that phone number is a character data type...
UPDATE mytable
SET PhoneNumber = RIGHT(PhoneNumber, LEN(PhoneNumber) - 1)
WHERE LEFT(PhoneNumber, 1) = '1'
June 22, 2007 at 10:36 am
Sort of... Add filegroups with the other data files to the database. Then you have a couple of options. To move the physical data, you can rebuild...
June 22, 2007 at 10:15 am
SELECT *
FROM table
WHERE ( @customerID = (CertainValue) AND customerID = @customerID)
OR @customerID (CertainValue)
That should do ya...
June 21, 2007 at 4:04 pm
Ninja's right... but going beyond that there are some other issues here:
When you check the existence of a temporary table using object_id(), you have to reference it in tempdb......
June 21, 2007 at 2:50 pm
Or better yet use a DDL trigger on the CREATE/ALTER/DROP PROCEDURE statements. Query the EVENTDATA() function for UserName, LoginName, TSQLCommand information and relay that back to you or store...
June 20, 2007 at 10:40 am
If you're generating new key values, output the new key and the old key using the OUTPUT clause and use it to seed the address record.
June 19, 2007 at 4:31 pm
Viewing 15 posts - 136 through 150 (of 457 total)