I ended up running the job in two steps, step one runs sp_spaceused on the 12 tables I check and sends the result to a file. Step 2 sends the results file to me (see below).
EXEC xp_sendmail 'e-mail address', @subject = 'space used results', @attachments = 'E:\Program Files\Microsoft SQL...
I DTS data from sybase ASE to SQL server2000.
When I check the row size on the two tables using sp_spaceused I get diffenent results than using select count(*). I disconnect from the SQL server to make sure I refresh.
Sybase contains the correct row count, the SQL row count is always lower with...
Tried this too.
select date_index
from history_master
where date_index = getdate()
It returned column heading, but no data.
I also tried,
select date_index
from history_master
where date_index = convert(char (8),getdate())
It returns,
date_index
----------...
Tried it, got below error.
select date_index
from history_master
where date_index = today(*)
Server Message: Number 195, Severity 15
Line 3:
'today' is not a recognized built-in function name.
I have a simple select statement (see below). All i want is to pass the current date as an argument in my where clause.
below does not work. Any ideas?
select date_index
from history_master
where date_index = (select getdate())
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.