Viewing 15 posts - 1,201 through 1,215 (of 5,356 total)
January 14, 2005 at 7:55 am
You might want to have a look at "Precision, Scale, and Length" in BOL. It contains a nice table:
| Operation | Result precision |
|---|
January 14, 2005 at 7:46 am
I have a table of people, including birthdays, and I'd like to insert a record into a separate table when the person turns 18. In concept, what I'd like to...
January 14, 2005 at 7:05 am
Just use EXEC() instead. The difference is well explained here: http://www.sommarskog.se/dynamic_sql.html
But as your are using this for adminsitrative purposes only, both are equally good.
January 14, 2005 at 5:06 am
You might want to take a look at BOL for "CREATE FUNCTION". There's a nice example how to calculate the ISO week number.
January 14, 2005 at 3:40 am
A quick and dirty basic construct (untested) might be:
DECLARE @stmt NVARCHAR(200)
WHILE EXISTS
(
SELECT
*
FROM
sysobjects
WHERE crdate> < your criteria >
AND OBJECTPROPERTY(id,'IsUserTable')=1
 ![]()
BEGIN
SELECT
@stmt = 'DROP TABLE ' + name...
January 14, 2005 at 3:25 am
Forget it! Again, please read the link I've posted. The currently implemented DATETIME datatype *always* contains both, a date and a time portion. But the effects of this and the...
January 13, 2005 at 2:04 pm
You might want to search here for xp_cmdshell and OSQL. Syntax is also explained in BOL. Sorry, I haven't got a working example at hand right now.
January 13, 2005 at 1:59 pm
Just a quick script
declare @timeout varchar(10)
set @timeout = '12:00 am' --your data
select cast(@timeout as datetime)
set @timeout = '12:00:00' --slightly modified
select cast(@timeout as datetime)
------------------------------------------------------
1900-01-01 00:00:00.000
(1 row(s) affected)
------------------------------------------------------
1900-01-01...
January 13, 2005 at 1:26 pm
You might want to read SQL Server's Online Help on both topics or search the fora here.
January 13, 2005 at 1:08 pm
Unfortunately that requires that David gets his credibility back first. His boss needs to listen to him again and believe what he says. From my own observations that is no...
January 13, 2005 at 12:59 pm
See, if this helps: http://www.karaszi.com/sqlserver/info_datetime.asp
It would also be helpful, if you could post typical input parameters for the stored procedure.
January 13, 2005 at 12:49 pm
No, I'm afraid, but this is a known behaviour. It will only work up to 8,000 characters and is a well-known trick to flatten a table.
Watch out for this:...
January 13, 2005 at 8:12 am
Now that reminds me of http://mindprod.com/unmain.html ![]()
January 13, 2005 at 8:03 am
I guess you have more luck looking for this information on the IBM site. Like this:
January 13, 2005 at 5:38 am
Viewing 15 posts - 1,201 through 1,215 (of 5,356 total)