Viewing 15 posts - 406 through 420 (of 596 total)
Following up on what AJ wrote, you could do the this:
1. Create the following UDF ( dbo.fOccurs() )
2. Run the script that follows the UDF, adapted for your situation. The...
March 22, 2005 at 8:44 am
Neither script will work, because DBCC SHRINKFILE only works in the current database. From TSQL, the only way to change the database context is with the USE statement (for example, USE...
March 16, 2005 at 6:16 am
Look up CREATE TRIGGER in BOL (SQL Server Books On Line). The definition from BOL is, in part:
... a special kind of stored procedure that executes automatically when a user...
March 10, 2005 at 7:06 am
Do you have an UPDATE trigger on the table? Maybe something is happening there. Also, you could hard code the SQL statement in your .ASP page, then strip off columns one-by-one until...
March 9, 2005 at 7:07 am
You would have to strip the double quotes after the data is loaded, as in the following example:
CREATE TABLE #tblTest
(
id int IDENTITY(1,1)
, data varchar(70)
)
SET NOCOUNT ON
INSERT #tblTest (data) VALUES...
March 4, 2005 at 7:01 am
You cannot, if you are trying to install SQL Server 2000 Standard Edition or higher on WinXP. Those versions of SQL Server require a server version of Windows. You will...
March 4, 2005 at 6:37 am
Frank,
He was joking. The letter L represents the word LOSER, which in this case means "someone who fails consistently, especially a person with bad luck or poor skills". The usage...
March 4, 2005 at 6:33 am
I agree with Frank and Wayne - use decimal, or even float, and format the display as currency when needed.
--Mike
March 3, 2005 at 9:09 am
I have a UDF to format values of type DECIMAL, and have adapted it here for type MONEY. Modify as necessary.
DROP FUNCTION dbo.FormatMoney
GO
CREATE FUNCTION dbo.FormatMoney
(
@num money,
@decPlaces int
)
RETURNS varchar(20)
AS
BEGIN
...
March 3, 2005 at 8:12 am
Sometimes I use the following technique to create a "temp" table which is actually a real table in the current database. I then drop the table when I'm done. This...
March 3, 2005 at 7:17 am
According to my tests, the maximum is actually 63 characters. 63 works, 64 fails. I wonder if there is a unicode issue that cuts the 128 in half. Interesting.
I must...
March 2, 2005 at 12:25 pm
Maybe I've misinterpreted you question, but why can't you just copy the .mdf and .ldf files from your computer to the web server and then attach the database? Of course,...
March 2, 2005 at 10:14 am
I just tested this on a server ( Windows 2000 SP4, SQL Server 2000 SP3a ) and it worked fine. I created a SQL Server login call LONGTEST with a...
March 2, 2005 at 8:48 am
First, let me say that this question is totally irrelevant to this forum.
That said, digging deep into my memory, I'd say the file would end up like this:
PRIME...
March 1, 2005 at 7:54 am
Hmm....
On my calendar, the first row in January contains Saturday, Jan 1, 2005. That is week 1, where a week is defined as Sunday thru Saturday AND each day of...
February 23, 2005 at 6:12 am
Viewing 15 posts - 406 through 420 (of 596 total)