Viewing 15 posts - 556 through 570 (of 595 total)
You should have replaced
WHERE P.PRODUCT_ID IN (select PRODUCT_ID from product where name like '%' + @txt + '%')
with
WHERE FreeText(name, @txt)
Note that using FREETEXT changes the behavior of your...
April 23, 2004 at 6:32 am
How about this:
CREATE FUNCTION dbo.uSN3(@n FLOAT)
RETURNS VARCHAR(12)
AS
BEGIN
-- delete charpos 6,7,8,9 after converting to scientific notation
RETURN Stuff(Convert(varchar(20), @n, 1), 6, 4, '')
END
Mike
April 22, 2004 at 10:11 am
You don't show your declaration for @filecontent, but the largest it could be is varchar(8000). If your file is longer than that, then the statement:
SELECT @filecontent = filecontent FROM...
April 20, 2004 at 8:47 am
It's not necessary to assign a column name to the parameter in the SELECT. Try this:
INSERT INTO IndicativeHistory SELECT ?, * FROM IndicativeTemp
The SELECT just needs to return the correct...
April 9, 2004 at 12:30 pm
Are you sure the truncation occurs during the insert and not the subsequent retrieval? If you know the length the error listing should be, run
SELECT Datalength(listing) AS Listing_Length FROM nmsErrorLog...
March 26, 2004 at 8:39 am
The WAITFOR DELAY '00:00:01' statement waits for 1 second. For 1.8 million rows with a batch size of 5000, that's 6 minutes of waiting. 1 second seems like a long...
March 24, 2004 at 6:17 am
Adding to what Jonathan said, here's an example:
SET ANSI_NULLS ON
SET ANSI_PADDING ON
SET ANSI_WARNINGS ON
SET ARITHABORT ON
SET CONCAT_NULL_YIELDS_NULL ON
SET QUOTED_IDENTIFIER ON
SET NUMERIC_ROUNDABORT OFF
GO
DROP VIEW vdoctest
DROP TABLE doctest
GO
CREATE TABLE doctest( FKEY_DOCTOR...
March 17, 2004 at 9:29 am
If the server is stand-alone, and not a member of a domain, just use the local system account. The common recommendation you refer to is to use a DOMAIN user id,...
March 16, 2004 at 8:09 am
Log on to the server and run the Server Network Utility ( svrnetcn.exe ). By default, you should see Named Pipes and TCP/IP. Again, the order on the server is not relevant,...
March 16, 2004 at 7:56 am
I ran some tests where I changed the network libraries, and under one set of conditions, nt_username is populated with my domain user id and loginame is populated with my SQL...
March 16, 2004 at 7:02 am
Thanks, Greg. That's the direction we're leaning, and the reasons you provided for doing so are good ones.
March 15, 2004 at 11:53 am
Well, given the situation you've described, the nt_username should not be populated on either server, if the application is run as you described. In fact, it cannot be populated that...
March 15, 2004 at 11:36 am
Do you know how the application logs in? Some applications try to first log in with Integrated Security, and if that fails, log in with a standard SQL Server login. Maybe the...
March 15, 2004 at 6:00 am
That's the problem, Howard. Your application logs in using standard SQL Security, using the same username for all users. In that case, nt_username column will be NOT be populated. The information you...
March 14, 2004 at 7:07 am
As I mentioned previously, the only time the nt_username column is populated is when the user connects using Integrated Security (Windows login). The ability to login this way is dependant...
March 13, 2004 at 12:50 pm
Viewing 15 posts - 556 through 570 (of 595 total)