Viewing 15 posts - 256 through 270 (of 270 total)
Ambrose
when you update a row in sql server it creates an entry in the inserted and deleted logical tables before the update is carried out. This means that your code...
April 22, 2004 at 7:03 am
April 22, 2004 at 4:53 am
You must specify the word default when using a default value in a user defined function e.g.
select name, dbo.udfgetloc(1, DEFAULT) Location from
SEE BOL EXCERPT
A user-defined function takes zero or...
April 21, 2004 at 5:37 am
The only way i can see of doing this is to alias the table and self join the tables.
Select
ID
FROM Table a INNER JOIN Table b on a.ID = b.ID
INNER JOIN...
April 21, 2004 at 3:17 am
The following will list primary and foreign keys and the columns they use.
select TABLE_NAME, CONSTRAINT_NAME, COLUMN_NAME
from INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE
ORDER BY TABLE_NAME, CONSTRAINT_NAME
April 20, 2004 at 12:08 pm
The above will also return views which i'm not sure if you want or not. You could write it like this just for users base tables.
SELECT c.TABLE_NAME, COLUMN_NAME,
DATA_TYPE, CHARACTER_MAXIMUM_LENGTH,
ORDINAL_POSITION
FROM INFORMATION_SCHEMA.columns...
April 20, 2004 at 12:02 pm
You need to turn off the fast load option in DTS.
I haven't got it in front of me at the moment but i think it should
be in one of tabs...
April 8, 2004 at 2:47 am
if you use sp_spaceused tablename then it is not always accurate you have to run (especially about the space being used)
sp_spaceused tablename @updateusage = 'TRUE'
and it takes a bit longer....
April 1, 2004 at 10:54 am
Oh well. I'd better go and use Informix or Oracle then.
Thanks anyway.
Dave
March 30, 2004 at 2:59 pm
Hans
We used to get the same issue. Usually you had to stop and start the MAPI service on the server to fix it. If you've just installed the mail stuff...
March 24, 2004 at 1:49 pm
I would use the the TRUNCATE command. The deletions will not be logged in the transaction log. e.g.
TRUNCATE TABLE authors
You need to be either a member of the sysadmin role...
March 22, 2004 at 12:37 pm
Our internal mail server will only let people it knows and trusts send smtp stuff through it, so need for password it just knows to let that particular SQL Server...
March 12, 2004 at 12:50 pm
OOps don't know what I managed to do there but that won't create a stored procedure for you. The procedure is identical on 2000 & 2003 but if you still...
March 12, 2004 at 12:43 pm
Well here you go then
--***************Configuring the Message Object ******************
-- This is to configure a remote SMTP server.
EXEC @hr = sp_OASetProperty @iMsg, 'Configuration.fields("http://schemas.microsoft.com/cdo/configuration/sendusing").Value','2'
-- This is...
March 12, 2004 at 12:30 pm
I used to sql mail but it can be a bit of a pain as it's always chaking the pop 3 mailbox even if you don;t want it process SQL...
March 12, 2004 at 12:01 pm
Viewing 15 posts - 256 through 270 (of 270 total)