Viewing 15 posts - 436 through 450 (of 596 total)
I see two data type mismatches involving the @User_State and @User_YOB parameters. The stored procedure uses unicode character data (nchar), while the ASP code is creating numeric parameters. If the stored...
January 15, 2005 at 8:02 am
You can test whether the current user is a member of the sysadmin role using the IS_SRVROLEMEMBER() function.
IF IS_SRVROLEMEMBER('sysadmin') = 0 -- =1 if a member of role
B
January 14, 2005 at 10:10 am
Are you running the Windows Firewall? If so, check out this KB article:
http://support.microsoft.com/default.aspx?kbid=841251
By default, ports used by SQL Server are blocked.
January 14, 2005 at 6:59 am
I assume you've successfully compiled the SP and tested it within Query Analyzer. The problem is most likely in the call from your ASP page. Are you sure you've included...
January 14, 2005 at 6:53 am
David,
I have firefox installed on a test server (just a Dell 4300 with 512MB RAM) running Windows 2000 Server SP4 and SQL Server 2000 SP3. I've haven't experienced any problems...
January 13, 2005 at 5:55 am
Jeff, you are correct. That's what happens when Frank gets everybody excited about an issue. Jumped the gun a bit on that.
January 7, 2005 at 7:09 am
Frank, I understand the issue you bring up. It depends on the business rules for that the particular application. I think the method that you originally posted requires that non-numeric...
January 7, 2005 at 7:05 am
Obviously, there are many ways to do this. Still another method:
CREATE FUNCTION dbo.PadLeft
(
@theField varchar(1000),
@padLen smallint,
@padChar varchar(1)
)
RETURNS varchar(1000)
AS
BEGIN
RETURN Right(Replicate(@padChar, @padLen) + @theField, @padLen)
END
GO
CREATE TABLE #Test
(
col...
January 7, 2005 at 6:59 am
How about this:
CREATE TABLE #Test
(
col varchar(10)
)
SET NOCOUNT ON
INSERT #test VALUES ('11')
INSERT #test VALUES ('10')
INSERT #test VALUES ('2')
INSERT #test VALUES ('3')
INSERT #test VALUES ('1')
INSERT #test VALUES ('3C')
INSERT...
January 7, 2005 at 6:51 am
Here's a link to a previous question in which I posted some code I use.
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=143488#bm143900
January 7, 2005 at 6:36 am
Here is an expanded example showing how to use the UDF to INSERT or UPDATE rows in a table.
DROP TABLE SlowThinker
GO
DROP TABLE TheData
GO
CREATE TABLE SlowThinker
(
...
January 3, 2005 at 11:20 am
Here's an expanded example showing how you could insert rows into a new table while parsing, or update existing rows with the parsed data.
DROP TABLE SlowThinker
GO
DROP TABLE TheData
GO
January 3, 2005 at 11:17 am
You can't select multiple rows into a local variable like that.
DECLARE @s-2 varchar(1000)
SELECT @s-2 = ExData FROM SlowThinker
I ran this:
DROP TABLE SlowThinker
GO
CREATE TABLE SlowThinker
(
id...
January 3, 2005 at 11:05 am
>excuse my stupidity, but when I try to replace the @s-2 with the field that
>contains this string I'm trying to parse, all it seems to grab is one record
Make sure...
January 3, 2005 at 9:24 am
I use the following stored procedure for cases similar to yours. It returns the "next" (leftmost) token, then strips that token from the source string (@s). In the loop example, I...
January 3, 2005 at 6:43 am
Viewing 15 posts - 436 through 450 (of 596 total)