Viewing 15 posts - 331 through 345 (of 345 total)
Actually we're only after the points. I hear the winner gets to choose from an xbox and a mountain bike.
January 12, 2011 at 4:29 pm
Although this will cause an error if more than one row is updated. You could change
SET @Last_Login_Date = (SELECT Last_Login_Date FROM inserted);
to
SET @Last_Login_Date = (SELECT TOP 1 Last_Login_Date FROM...
January 12, 2011 at 4:21 pm
Try this:
change
IF EXISTS
(SELECT 1
FROM inserted
WHERE user_id = 'bbsupport')
to
IF NOT EXISTS
(SELECT 1
...
January 12, 2011 at 4:08 pm
This should help:
January 12, 2011 at 2:12 pm
something i whipped up:
create table A (col1 int, col2 int, col3 int, col4 int)
create table B (col1 int, col2 int)
declare @field_list varchar(max)
--set @field_list = ''
;with cte as
(select column_name, data_type...
January 12, 2011 at 10:11 am
Jeff Moden (1/6/2011)
toddasd (1/6/2011)
declare @a varchar(100)set @a = 'Number of files=4'
select substring(@a, 17, len(@a))
:blink:
To me, looks like he wanted the "4" from the string. So, you...
January 6, 2011 at 7:18 pm
Is it considered cheating that I went to the BOL before answering the question and read "If two or more rows tie for a rank, each tied rows receives the...
January 6, 2011 at 12:37 pm
January 6, 2011 at 11:53 am
according to your specs, this is what you need:
update whoknows
set col1 = 'MMADAS', col2 = 'HHFASD', col3 = 'HGGOI' where rowID in (1,2,3,4,5)
🙂
January 6, 2011 at 11:38 am
CELKO (12/29/2010)
sa.ordekci (12/29/2010)
December 29, 2010 at 3:18 pm
Actually no. I had to go back in my files and look, but it's the one that uses the tally table.
December 28, 2010 at 8:53 pm
You could also use the split function and get a list of all the folders:
SELECT * FROM dbo.fn_Split('/folder/folder1/folder2/12345-ABCD.txt','/')
WHERE IDX = 3
December 28, 2010 at 1:30 pm
Some sample data and DDL please.
December 28, 2010 at 8:26 am
Thanks for the response.
Right-on about the schemas. Out of 607 total, 3 are used. I'm still suspect though, I don't want to removed unused schemas like db_owner, db_accessadmin, etc. I'll...
December 13, 2010 at 11:49 am
Viewing 15 posts - 331 through 345 (of 345 total)