Viewing 15 posts - 121 through 135 (of 167 total)
Adding to John's cool suggestion, you might want to package this into a re-usable user-defined function that you can include wherever you need. Something like:
CREATE FUNCTION dbo.fnStringCount (...
April 20, 2005 at 7:08 am
Maybe I'm missing something, but won't "SELECT TOP 1 actiondatetime, actionstatus FROM #tmp ORDER BY actiondatetime DESC" do the trick? The following yields "2005-03-03, Action 3" as the result... Steve
CREATE TABLE...
March 17, 2005 at 7:25 am
Just a WAG but do you maybe have to set the encoding for the FORM tag in your ASP page? Entering "html form encoding chinese" in Google yields some info,...
March 9, 2005 at 7:06 am
To retrieve a user's domain name you can use the WNetGetUser API call
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wnet/wnet/wnetgetuser.asp
March 3, 2005 at 7:19 am
Wow... 230+ NULL columns to me screams for some data normalization. Pull those columns that are typically NULL out into their own tables (one or more) with the same PK...
February 18, 2005 at 6:51 am
I think he meant that the ability to sort dates and get date differences is built-in, not the ability to convert to Julian dates. For what it's worth, WRT Julian...
February 16, 2005 at 11:06 am
I would think you'd want to store the calendar date and compute the Julian date. I'm sure you can find a user-defined function (UDF) that'll do it. If you wanted,...
February 15, 2005 at 6:57 am
Why use a datatype with the Command object at all? Below is an example of how I use the Command object all the time:
With cmd
.ActiveConnection = myConn
.CommandType =...
February 14, 2005 at 7:08 am
Sweet! Thanks PW, that seemed to do the trick.
February 4, 2005 at 10:18 am
I forgot one important part... items may be deleted but still need to be included in the resultset. So modifying my dataset a bit...
AAA Nov-04 ITEM_AAA_NAME
AAA Dec-04 ITEM_AAA_NAME
AAA Jan-05 ITEM_AAA_NAME_MOD
BBB Nov-04 ITEM_BBB_NAME
BBB Dec-04 ITEM_BBB_NAME_MOD
BBB Jan-05 ITEM_BBB_NAME_MOD
CCC Nov-04 ITEM_CCC_NAME
CCC Dec-04 ITEM_CCC_NAME
February 4, 2005 at 10:05 am
Pretty lousy phrased answers IMHO. From the same site referenced... "Eliminate duplicative columns from the same table". Sounds like "Eliminate Redundant Data" to me...
January 26, 2005 at 7:01 am
If you can't use Java to go straight from XML into SQL Server, can you use Java to convert XML into CSV and then use BCP or bulk insert to...
January 20, 2005 at 7:54 am
I haven't dabbled with .NET yet, but in regular old VB you could retrieve the image field using an ADO recordset, then write the contents of the image field to...
December 7, 2004 at 6:50 am
We have created a document storage application using ASP and SQL2K. Nothing overly robust, but it allows end-users to specify title, summary, some additional classification info, and one or more...
November 19, 2004 at 7:22 am
This whole QOD section is rapidly losing credibility. And you know what they say about losing credibility -- once it's gone, it's hard to get back. I would hope the...
October 22, 2004 at 6:59 am
Viewing 15 posts - 121 through 135 (of 167 total)