Viewing 15 posts - 271 through 285 (of 349 total)
convert(decimal (5,2),(sum( datediff (hh,DateCompletedByResearch, ReadyOrShippedByFulfillment))/ 31))
September 20, 2006 at 7:56 am
Resolution -- the concatenation of VARCHAR and INT together caused the error. I was able to resolve this via the use of the "str" implicit conversion. thanks "DUDE".
SET @sql1 = 'Update c_account SET MSA_BB_FootNote ='+Char...
September 13, 2006 at 1:59 pm
neither of these suggestions were syntacticly correct nor did they work..
September 13, 2006 at 1:26 pm
Just ran into a slight glich ---
When the same person updates the row 2 times in succession, won't the 2nd update use SUSER_NAME? We'd need it to continue to use...
August 28, 2006 at 7:04 am
PW -- pure genius.... If I were your boss I'd give you a scholarly bonus..
thanks -- that worked.
August 25, 2006 at 2:34 pm
Almost there... Using your example join of the Virtual tables, I've prepped sample DDL & SQL for use here. In the following SAMPLE, TEST 1 works fine but TEST 2...
August 25, 2006 at 2:14 pm
The VB.NET application passes the variable values to a STORED PROC. The proc performs the UPDATEs.
August 25, 2006 at 10:29 am
thx -- this worked perfect... (now I need a system table housing DTS package contents in text format) !!!!
August 23, 2006 at 10:04 am
This worked:
DECLARE @t_schema varchar(500),
@t_name varchar(256)
DECLARE c1 cursor static for
SELECT Name, 'DBO' FROM sysobjects
WHERE xtype = 'U' AND name LIKE 'Rich%' --AND datediff(day,crdate,getdate())>400
OPEN c1
FETCH NEXT FROM...
August 17, 2006 at 9:42 am
Error:
Msg 214, Level 16, State 2, Procedure sp_executesql, Line 10
Procedure expects parameter '@statement' of type 'ntext/nchar/nvarchar'.
All I want to do is DROP a table dynamically (using a CURSOR...
August 17, 2006 at 9:27 am
Got it.. I needed to ALTER TABLE DROP CONSTRAINT then ALTER TABLE ADD CONSTRAINT
ALTER
TABLE [dbo].[TAB_a] DROP
August 9, 2006 at 9:25 am
Points well taken. There's absolutely no way to fit a DEC (10,4) into a DEC (9,4) without distorting the value. What I wound up doing was implementing a predicate to...
August 3, 2006 at 7:59 am
I think I'll try this: SELECT CAST(-102613.5000 AS DECIMAL(9,3))...
August 2, 2006 at 11:07 am
No can do. The obvious enhancement would be to alter the column to DECIMAL (10,4) or greater. BUT this has ripple effects downstream to additional receiving columns also defined as...
August 2, 2006 at 9:35 am
It's the 1st Task. I mirror'd a solution I found on this forum:
http://www.sqlservercentral.com/columnists/tdavid/moreportabledtspackages.asp
My pkg runs DynPropTask #1 1st -- issuing a SELECT SERVERPROPERTY('SERVERNAME')
It runs fine on my QA Server. When I...
June 5, 2006 at 8:30 am
Viewing 15 posts - 271 through 285 (of 349 total)