Viewing 15 posts - 5,341 through 5,355 (of 14,953 total)
Tom.Thomson (1/12/2011)
GSquared (1/12/2011)
I love that the comment starts out with "the late..." and is about how to achieve immortality. 🙂
Ah, but the writer was an Argentinian who died in Spain,...
January 12, 2011 at 2:03 pm
Steve Jones - SSC Editor (1/12/2011)
Alvin Ramard (1/12/2011)
I bet you didn't know that I'm actually from Cape Breton.That's in the "them" section of the world map, isn't it?
No. But...
January 12, 2011 at 2:00 pm
SELECT substring(f_output, charindex('ABCD', f_output) + 4, 4)
FROM @bk
WHERE f_output LIKE '%ABCD[0-9][0-9][0-9][0-9].doc'
OR f_output LIKE '%ABCD[0-9][0-9][0-9][0-9]ZX.doc';
January 12, 2011 at 1:58 pm
Here's what I came up with:
DECLARE @Cmd VARCHAR(MAX);
SELECT @Cmd = 'select ' + STUFF((SELECT ',(select [name] '
+ ' from RELATIONSHIP where Record_Num = ' + CAST(Record_Num AS VARCHAR(10)) + ')...
January 12, 2011 at 1:54 pm
CREATE TRIGGER LastLoginDate ON dbo.users AFTER update
AS -- first error fixed here
--//ColumnName
DECLARE @Last_Login_Date datetime, @msg varchar(500);
IF EXISTS
(SELECT 1
FROM inserted
...
January 12, 2011 at 1:38 pm
On a table that size, and an index with the number of columns you indicate, I'd generally expect it to take a LONG time to complete, especially if the table...
January 12, 2011 at 1:35 pm
Wouldn't it be easier to query the inserted dataset to see if the user name is the one you want, and then procede from there?
January 12, 2011 at 1:32 pm
Duplicate post. Already answered in another thread on this site.
January 12, 2011 at 1:29 pm
Add the command as a string to the select statement, and then execute it dynamically. Or change the select to a cursor and execute the procedure once per value...
January 12, 2011 at 1:27 pm
jay holovacs (1/12/2011)
GSquared (1/12/2011)
January 12, 2011 at 1:23 pm
Also, I can't tell what this is meant to do: IF @last_login_date from dbo.users where (user_id = 'bbsupport');
Can't suggest a handling for it, since I don't know the desired end...
January 12, 2011 at 1:17 pm
You're missing "AS" between the create statement and the first line of code in it.
January 12, 2011 at 1:15 pm
I love that the comment starts out with "the late..." and is about how to achieve immortality. 🙂
January 12, 2011 at 1:14 pm
Try this:
SELECT substring(f_output, charindex('ABCD', f_output) + 4, 4)
FROM @bk
WHERE f_output LIKE '%ABCD[0-9][0-9][0-9][0-9].doc';
January 12, 2011 at 12:44 pm
SQL Server tends to take memory and keep it.
If the only things running on there are the OS and SQL Server, does the low amount of available RAM actually matter?...
January 12, 2011 at 12:38 pm
Viewing 15 posts - 5,341 through 5,355 (of 14,953 total)