Viewing 15 posts - 241 through 255 (of 663 total)
Interesting, although status offline when detached, after being attached it is online. No need to explicit set it to online.
ALTER DATABASE test SET offline WITH ROLLBACK...
August 24, 2003 at 9:41 pm
Start an application from a trigger normally will rise an eyebrow or two.
How about another table in which your trigger can add a record/flag to indicate there...
August 24, 2003 at 4:30 pm
Preethi, execute the following with all profiler's events logged.
Quit interesting, obviously in SQL 2000 one can step through the SP if one can get the parameters.
August 24, 2003 at 4:22 pm
Try
Select Sum((DataLength([ColumnName])-DataLength(RePlace([ColumnName],'SearchFor','')))/DataLength('SearchFor'))
from Table
August 24, 2003 at 2:17 pm
Also have a look at http://www.sqldts.com/default.aspx
August 24, 2003 at 4:12 am
-- Part II User commands
-- User supply VB / ASP with "Select * from Tmp Where Company_Name='Company ''1'''"
Set QUOTED_IDENTIFIER off -- More readable
Insert Tmp
Select "Select *...
August 24, 2003 at 3:47 am
Hopefully I am on the right track. Had a similar problem last week. Solution was to replace all the single quotes in the data with two single qoutes. Problem was...
August 24, 2003 at 2:49 am
Code adapted from BOL 2000, used to work in 6.5 with the 255 limit.
DECLARE @SQLString1 VARCHAR(8000),
@SQLString2 VARCHAR(8000)
SET @SQLString1 = 'SELECT * FROM Periods...
August 20, 2003 at 3:19 pm
I think mmcork covered about all the bases.
Maybe you can start with a SELECT with a WHERE clause and execute it. Then to the update with a transaction and SELECT...
August 20, 2003 at 2:57 pm
Should'nt nulls be excluded entirely from the set being averaged On smaller sets it may have significant effect.
August 19, 2003 at 10:30 pm
Read BOL 2000: Using RAND
Execute the following
Select f.a,Rand(f.a),rand()
from (Select 0 union Select 1 union Select 2) as f(a)
August 17, 2003 at 9:47 pm
I'll rather go with mccork's suggestion.
select SeqNum=Identity(INT,1,1),
b.idProduct,b.chrProductName,c.chrSubDeptName
INTO #TMP from
August 17, 2003 at 9:39 pm
Agree with Andy Warren suggestion or add a column confirmed(Yes,No,Maybe,etc.).
August 17, 2003 at 3:45 am
BOL 2000: The char data type is a fixed-length data type when the NOT NULL clause is specified. If a value shorter than the length of the column is inserted...
August 17, 2003 at 3:39 am
Viewing 15 posts - 241 through 255 (of 663 total)