Viewing 15 posts - 31 through 45 (of 55 total)
I don't know if it's true or not but I've read somewhere on Internet in some article that intellisense will be there in SQL 2008. Does anyone know if its...
June 28, 2007 at 5:46 am
This is just so cool! Thanks for sharing this information!
June 27, 2007 at 8:13 pm
I had the same issue with sp_sendmail SP and later I found the user who was trying to access wasn't having enough rights to execute/access it. That might be something...
May 6, 2007 at 9:59 pm
Yes you can encrypt stored procedure's, Check for WITH ENCRYPTION in BOL. But this is not 100% safe as there are heaps of methods available by which you can decrypt...
January 21, 2007 at 11:47 pm
I would still go with SSIS instead of spending some time every week on download and upload!
January 18, 2007 at 3:10 am
Variable @Results is in different scope when you execute via dynamic sql.
You have to use sp_executesql if you want to get result back into variable from dynamic sql. Check proper...
December 7, 2006 at 5:33 pm
IF OBJECTPROPERTY(object_id(N'yoursp'), 'IsProcedure') = 1
DROP PROCEDURE yoursp
GO
CREATE PROCEDURE yoursp
@fld1 int = NULL,
@fld2 int = NULL,
@fld3 int = NULL,
@fld4 int = NULL
AS
BEGIN
UPDATE ...
December 2, 2006 at 5:21 pm
If you want to use sp_executesql, you can do something like this, or check BOL for accurate syntax:
EXEC sp_executesql @V_UPDATE_SYS_DB, N'@V_TABLE_NAME NVARCHAR(128)', @V_TABLE_NAME = @V_TABLE_NAME
If you...
December 2, 2006 at 5:16 pm
try something like this:
create table table1 (column1 varchar(10) not null)
go
drop PROCEDURE spInsTable1
go
CREATE PROCEDURE spInsTable1
@out varchar(100) OUTPUT
AS
begin try
select @out = 'insert value yes'
insert table1 values...
November 28, 2006 at 4:22 am
I think you've to begin your transaction in loop of temp table
or
if you are using SQL 2005
Check for
--start loop for temp table
BEGIN TRY
BEGIN TRANSACTION
--your...
November 26, 2006 at 5:34 pm
DECLARE @iRecipientID int
INSERT INTO NmsRecipient([iAddrQuality],[iEmailFormat],[iPartitionId],[iRecipientId]) VALUES (1,1,0,1)
SET @iRecipientID = SCOPE_IDENTITY()
OR
SET @iRecipientID = @@IDENTITY
OR
SET @iRecipientID = IDENT_CURRENT('NmsRecipient')
INSERT INTO [NmsSubscription] ([iConfirmationId],[iRecipientId]) VALUES (1,@iRecipientID)
Check BOL for more details about these functions.
November 22, 2006 at 5:24 pm
SELECT *
FROM CUSTOMER
WHERE customer = ISNULL(@customer,customer)
AND city = ISNULL(@city, city)
AND...
November 22, 2006 at 5:20 pm
I just don't want to use dynamic SQL. I thought there may be some other way out.
Thanks anyway!
November 21, 2006 at 1:18 am
Viewing 15 posts - 31 through 45 (of 55 total)