Viewing 15 posts - 526 through 540 (of 595 total)
From BOL ( index=datetime data type, overview)
datetime
Date and time data from January 1, 1753 through December 31, 9999, to an accuracy of one three-hundredth of...
July 1, 2004 at 7:43 am
"DBProcess dead or not enabled" is usually caused by network problems. It is a client-side error that occurs when the connection to SQL Server is terminated unexpectedly (from the client's...
June 30, 2004 at 7:24 am
You can try running this code. The table name here is TXT. The column name is TXTCOL. Change those values as necessary. There are limitations, but at least you can...
June 30, 2004 at 6:23 am
If you absolutely must implement your design, you could try using a trigger to enforce uniqueness for non-null values. See the basic example below. Note that in this example, if a...
June 22, 2004 at 8:19 am
Sorry, I typed the assignment operator ( = ) instead of the equals operator ( == ). Corrected code is shown below:
function Main()
{
var c9 = DTSSource("Col009")
var c10 =...
June 10, 2004 at 10:11 am
Hmm..that is strange. Is DTS returning the string "null"? Maybe you could try something like this:
function Main()
{
var c9 = DTSSource("Col009")
var c10 = DTSSource("Col010")
if (c9 == null || c9...
June 10, 2004 at 9:18 am
Actually,I'd use both checks to be safe:
function Main()
{
if (DTSSource("Col009") == null || DTSSource("Col009") == "")
{
DTSDestination("CLO") = DTSSource("Col010");
}
else
{
DTSDestination("CLO") = DTSSource("Col009");
}
return(DTSTransformStat_OK);
}
Mike
June 10, 2004 at 8:29 am
Is your server security (in EM, right click on Server, select server properties, then the security tab) configured for mixed mode? Maybe it's setup for "Windows Only" and 'jules' is...
June 10, 2004 at 7:44 am
How about something like this:
function Main()
{
if (DTSSource("Col009") == null)
{
DTSDestination("CLO") = DTSSource("Col010");
}
else
{
DTSDestination("CLO") = DTSSource("Col009");
}
return(DTSTransformStat_OK);
}
Mike
June 10, 2004 at 6:42 am
The first thing I would do is go to Control Panel | Date/Time and make sure the date, time, and year are correct. Also, make sure you've got the correct time...
June 2, 2004 at 8:30 am
IsNumeric() checks to see if the string can be converted to one of the numeric data types, which includes int, float, money, and decimal.
BOL says:
"ISNUMERIC returns 1 when the input...
June 2, 2004 at 8:21 am
What's happening is that if the string contains one D or E, then SQL Server treats the string as scientific notation. If you cast as real, you'll see the range...
May 27, 2004 at 2:23 pm
A couple of thoughts on this:
When using Power() with bigint, ALL parameters must be bigint, so as coded you will probably get arithmetic overflow errors when @nPosition is > 30.
Cast...
May 26, 2004 at 7:18 am
Seems like all you are asking for is a single file search-and-replace utility.
You could use munge.exe if you've got the Windows NT Resource Kit.
I wrote a utility called frep.exe a long...
May 25, 2004 at 8:31 am
Viewing 15 posts - 526 through 540 (of 595 total)