Click here to Skip to main content
15,887,849 members
Home / Discussions / Database
   

Database

 
QuestionAccumulation with multiple conditions Pin
VentsyV8-Nov-11 9:16
VentsyV8-Nov-11 9:16 
AnswerRe: Accumulation with multiple conditions Pin
Jörgen Andersson8-Nov-11 10:05
professionalJörgen Andersson8-Nov-11 10:05 
GeneralRe: Accumulation with multiple conditions Pin
VentsyV8-Nov-11 11:30
VentsyV8-Nov-11 11:30 
GeneralRe: Accumulation with multiple conditions Pin
Jörgen Andersson8-Nov-11 11:54
professionalJörgen Andersson8-Nov-11 11:54 
QuestionHow can i check executing time from mssql2008? Pin
buffering836-Nov-11 19:49
buffering836-Nov-11 19:49 
AnswerRe: How can i check executing time from mssql2008? Pin
Wayne Gaylard6-Nov-11 20:04
professionalWayne Gaylard6-Nov-11 20:04 
AnswerRe: How can i check executing time from mssql2008? Pin
Corporal Agarn8-Nov-11 8:43
professionalCorporal Agarn8-Nov-11 8:43 
Questionemeregency Pin
yousefshokati1-Nov-11 18:43
yousefshokati1-Nov-11 18:43 
Hi .
I am working on a project that is about an audit procedure . it works for all of my tables except one. The one has 51 Fields and because the field has more than 25 field the power could not calculate the result of the Power Function of Sql server




CREATE FUNCTION [dbo].[GenColUpdated]
(@Col INT, @ColTotal INT)
RETURNS INT
AS
BEGIN

DECLARE
@ColByte INT,
@ColTotalByte INT,
@ColBit INT
-- Calculate Byte Positions
SET @ColTotalByte = 1 + ((@ColTotal-1) /8)
SET @ColByte = 1 + ((@Col-1)/8)
SET @ColBit = @col - ((@colByte-1) * 8)
-- gen Columns_Updated() value for given column position
RETURN
POWER(2, @colbit + ((@ColTotalByte-@ColByte) * 8)-1)
END

GO
I will Get this error for my table

Arithmetic overflow error for type int, value = 281474976710656.000000.

i have changed my datatype to int but again it has the same problem

------------------------------------------------------------

modified 2-Nov-11 2:25am.

AnswerRe: emeregency Pin
Mycroft Holmes1-Nov-11 19:15
professionalMycroft Holmes1-Nov-11 19:15 
GeneralRe: emeregency Pin
yousefshokati1-Nov-11 20:23
yousefshokati1-Nov-11 20:23 
GeneralRe: emeregency Pin
Mycroft Holmes1-Nov-11 20:58
professionalMycroft Holmes1-Nov-11 20:58 
GeneralRe: emeregency Pin
yousefshokati1-Nov-11 21:17
yousefshokati1-Nov-11 21:17 
QuestionStored Procedure to Handle CSV Pin
Franklin Smith31-Oct-11 0:32
Franklin Smith31-Oct-11 0:32 
AnswerRe: Stored Procedure to Handle CSV Pin
Mycroft Holmes31-Oct-11 1:11
professionalMycroft Holmes31-Oct-11 1:11 
GeneralRe: Stored Procedure to Handle CSV Pin
Franklin Smith31-Oct-11 2:07
Franklin Smith31-Oct-11 2:07 
GeneralRe: Stored Procedure to Handle CSV Pin
Mycroft Holmes31-Oct-11 11:58
professionalMycroft Holmes31-Oct-11 11:58 
GeneralRe: Stored Procedure to Handle CSV Pin
Franklin Smith31-Oct-11 22:02
Franklin Smith31-Oct-11 22:02 
GeneralRe: Stored Procedure to Handle CSV Pin
Mycroft Holmes31-Oct-11 22:52
professionalMycroft Holmes31-Oct-11 22:52 
AnswerRe: Stored Procedure to Handle CSV Pin
PIEBALDconsult1-Nov-11 3:00
mvePIEBALDconsult1-Nov-11 3:00 
Questionmysql client mobile app Pin
Jassim Rahma30-Oct-11 4:58
Jassim Rahma30-Oct-11 4:58 
QuestionFill gaps in rates data with previous working day rates. Pin
Dev S30-Oct-11 3:00
Dev S30-Oct-11 3:00 
AnswerRe: Fill gaps in rates data with previous working day rates. Pin
Mycroft Holmes30-Oct-11 12:52
professionalMycroft Holmes30-Oct-11 12:52 
QuestionGrant a role to another role Pin
Danzy8329-Oct-11 12:31
Danzy8329-Oct-11 12:31 
QuestionJust installed SQL Server 2008 R2 - Where is the app to create/open/add/update/delete DB file? Pin
swampwiz28-Oct-11 0:40
swampwiz28-Oct-11 0:40 
AnswerRe: Just installed SQL Server 2008 R2 - Where is the app to create/open/add/update/delete DB file? Pin
Geoff Williams28-Oct-11 1:29
Geoff Williams28-Oct-11 1:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.