Viewing 15 posts - 5,311 through 5,325 (of 6,036 total)
June 19, 2006 at 12:57 pm
2 Tim,
just one note.
Bigint is 8 byte, not 16.
Varchar can NEVER be more effective than numeric. It uses only 26 combinations out of 128. Ratio is 5:1. 100:20 in...
_____________
Code for TallyGenerator
June 19, 2006 at 12:43 pm
It's funny, but I never have read from anybody designed those databases, everybody just inherited and does not have a chance to change anything.
![]()
In...
_____________
Code for TallyGenerator
June 16, 2006 at 8:02 am
The design of your tables is terribly wrong.
But anyway it would be useful at least to have some indexes on columns mentioned in the query.
_____________
Code for TallyGenerator
June 16, 2006 at 7:30 am
If ObligationNo is not ment to contain anything but integer values, why it's varchar?
Just to increase number of lines of code and probability of errors?
_____________
Code for TallyGenerator
June 16, 2006 at 7:25 am
Must be set up in database:
Create Table dbo.Condition (
Condition nvarchar (250),
EmpId int
)
INSERT INTO dbo.Condition (Condition, EmpId)
SELECT 'test', 30
UNION
SELECT 'test1', 40
SP:
IF NULLIF(@condition, '') IS NULL
SET @condition =...
_____________
Code for TallyGenerator
June 14, 2006 at 5:58 pm
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=270247#bm270708
_____________
Code for TallyGenerator
June 13, 2006 at 7:25 pm
If you need to delete all rows in the table use TRUNCATE TABLE.
If you need to leave minor number of rows copy them to temp table, do TRUNCATE and copy...
_____________
Code for TallyGenerator
June 13, 2006 at 4:20 pm
Too many tables.
Those 5 must be in one with double key:
Labels:
ID TypeId NAME LABEL
1 4 PUBCODE PUBLICATION CODE
2 2 USERMENU MENU FOR USER
4 3 INPUT TEXT ENTER TEXT
_____________
Code for TallyGenerator
June 13, 2006 at 3:27 pm
June 13, 2006 at 3:09 pm
Yes, of course. ![]()
_____________
Code for TallyGenerator
June 8, 2006 at 9:42 pm
DECLARE @N int, @Cnt int, @Range int
SELECT Identity(int, 1,1) as id, AccountID
INTO #ActiveAccounts
FROM Account WITH (NOLOCK)
WHERE ProviderID = 70 AND IsActive = 0
SELECT @Cnt =...
_____________
Code for TallyGenerator
June 8, 2006 at 4:24 pm
Second AND is applied to subset returned by first AND.
Second OR is applied to the same original set of rows as first one. Results of both OR's are united.
_____________
Code for TallyGenerator
June 5, 2006 at 7:34 am
SELECT
wkey,
STATYR,
'N' AS overrideFlag,
ROUND (100 * ISNULL(((GENBUD + APPSPC + DHMBB + NBCCOL + NTSCOL) / NULLIF(GRDTOT - (GENBUD + APPSPC + DHMBB + NBCCOL +...
_____________
Code for TallyGenerator
June 3, 2006 at 5:37 pm
You've got whole bunch of big NO's in your query. Every one of them will kill performance because of full table scans and huge datasets being copied to tempdb.
1. Checking...
_____________
Code for TallyGenerator
June 1, 2006 at 7:59 pm
Viewing 15 posts - 5,311 through 5,325 (of 6,036 total)