Viewing 15 posts - 6,706 through 6,720 (of 7,187 total)
Scott
A full database backup won't affect the size of your log. Truncate your log like this:
BACKUP LOG MyDB WITH TRUNCATE_ONLY -- if you don't need to be able to restore
BACKUP...
December 14, 2006 at 1:48 am
This won't work if some of your data is (n)varchar or text. If you want to count the size of these rows individually, you'll need to use the datalength function. ...
December 14, 2006 at 1:39 am
Denise
I haven't worked with clustering and SQL Server 2005, but if it were SQL Server 2000 then I would back up the databases, uninstall SQL Server and then build my...
December 13, 2006 at 10:03 am
Felipe
Data Definition Language. In other words, the CREATE TABLE statements.
Thanks
John
December 13, 2006 at 9:21 am
Denise
I haven't watched this video myself yet, but it may have the answers to some of your questions.
http://www.jumpstarttv.com/Media.aspx?vid=33
John
December 13, 2006 at 9:17 am
Felipe
Can we see the DDL for the tables, please?
John
December 13, 2006 at 9:12 am
No variables, no quotation marks, no red text. Simple:
CREATE PROCEDURE [dbo].[CreateFile] AS
Delete from InpatientMedStat
insert into InpatientMedStat (PatientAccountNumber, MedicalRecordNumber, AdmissionDate,AdmissionSourceCode, AdmissionTypeCode,DischargeDate, DischargeStatusCode, PatientSex, PatientDOB,PatientZipCode, PatientTypeCode,AttendingPhysicianID,PrincipalDiagnosisCode, PatientEthnicity,FinancialClassCode,PatientName)...
December 13, 2006 at 9:08 am
Richard
I think I read somewhere that reindexing a table will cause the transaction log to grow by up to 1.25 (or was it 1.5?) times the size of the table. ...
December 13, 2006 at 8:59 am
Frances
First off, why are you using dynamic SQL? You can do away with the string variables and the EXEC statements and achieve exactly the same effect. Because your code won't...
December 13, 2006 at 8:44 am
You can press Ctrl + Enter to get a normally spaced carriage return.
Brandie's script returns all constraints, not just foreign keys. And if the constraint spans more than one column,...
December 13, 2006 at 7:42 am
Are you looking for the second most recent date? Something like this:
SELECT MIN(t.tef_bas_tar) FROM
(SELECT TOP 2 tef_bas_tar FROM tef_teftis
WHERE kurum_id = @kurum AND birimler_id = @birim AND alt_birim1_id = @alt1...
December 13, 2006 at 2:09 am
Debra
The best solution to your problem would be to redesign your database so that it's properly normalised. If you can't do that, the only option you have is to use...
December 12, 2006 at 10:13 am
I'm not sure what you mean. What are you trying to create a text log file of?
John
December 12, 2006 at 4:52 am
We search for the strings "MSG ", "ERROR:" and "ERROR." during our check. This procedure is generic for SQL Server (7.0 and 2000) and Sybase, so you may not need...
December 12, 2006 at 4:48 am
David
This function should be what you're looking for. It returns 1 if the number is valid, and 0 otherwise. It only does the mathematical algorithm part, so you'll need to...
December 11, 2006 at 9:27 am
Viewing 15 posts - 6,706 through 6,720 (of 7,187 total)