I am trying to run a stored procedure that allows me to use a various
as the "as" portion... A simple example is as follows:
CREATE PROCEDURE dbo.prTest
AS
DECLARE @Test1 varchar(10)
DECLARE @Test2 varchar(10)
set @Test1 = 'Data'
set @Test2 = 'Column'
select @test1 as @Test2
GO
...
more >>
Hello! I'm trying to use ASP.NET caching with my web site and SQL Server,
but I have a problem.
First I run the following command on the command line succesfully to enable
the database for cache notification.
aspnet_regsql -S [SERVER] -E -d [database] -ed
Then I run the following command ...
more >>
Hello,
I'm working on migrating a classic ASP application that used an Access
database to SQL Server 2005 Express. I need to insert a record and get
back the value of the primary key. See code below, then I'll describe
what I've tried:
CURRENT CODE:
Error: 'Must declare the scalar variable...
more >>
i am doing to write to event log information like :
RAISERROR(@sql,50000,16) WITH LOG
but this makes in my asp.net 2 application an exception with error
is there a way to avoid this?
thnaks i nadance
peleg
...
more >>
in a stored procedure, what is the correct syntax for:
set @mySQL = 'select -1 as myID, '<< NEW >>' as myName from aTable UNION
select . . . . '
namely, I am having trouble with the '<< NEW >>'
Thank you!
...
more >>