Viewing 15 posts - 286 through 300 (of 388 total)
also, check if the click handler doesn't swallow exceptions. it's unbelievably common to have empty catch block.
Piotr
March 14, 2008 at 7:01 pm
Is that what you have in code?
CREATE Procedure usp_Run_all_4_Procedures
@FolderDate datetime
@Servicea string
@acYearStart datetime
@Serviceb string
AS
EXEC usp_Run_all_4_Procedures
It should be
CREATE Procedure usp_Run_all_4_Procedures
(
@FolderDate datetime,
@Servicea string,
@acYearStart datetime,
@Serviceb string
)
AS
EXEC...
March 14, 2008 at 5:06 am
Please send sample table schemas, sample data and desired result. You must agree that there is no precise answer to your question.
Piotr
March 14, 2008 at 4:17 am
Hi,
Read about linked servers or openrowset function. There are examples how to connect to excel.
Piotr
March 12, 2008 at 10:09 am
It would help if you sent the DDL for your tables. I thought you want to update email in [name] table from [name_address] as this third party app is using...
March 11, 2008 at 9:35 am
By default OPENROWSET is disabled. You have to go to Surface Area Configuration tool and enable it.
Piotr
March 11, 2008 at 8:56 am
You can't create local temporary tables using sp_executesql
the reason is that local temp tables (with single # sign) are destroyed when current session is disconnected. sp_executesql creates a new session...
March 11, 2008 at 7:46 am
is this what you are looking for?
select * from sys.syslogins
or
select * from sys.server_principals
Piotr
March 10, 2008 at 8:20 am
Duh, of course, exec. My mind is focused on weekend now 🙂
Thanks!
On the other hand, Stef is also using exec:
N'exec @ValueOUT=@CustomFunctionName @InPtHt, @InHtUnits'
wouldn't it be better to use set/select?
N'set...
March 7, 2008 at 11:23 am
Adam, could you explain why there is no plan reuse in the latter case?
Piotr
March 7, 2008 at 11:06 am
usually you put 'select' before function name.
SET @strExec = 'select ' + @FunctionName + ' @InPtHt, @HtUnits'
if this is a scalar function, declare output parameter and pass it to sp_executesql
Piotr
March 7, 2008 at 3:01 am
You have to use linked server. Read in BOL about them.
Piotr
March 6, 2008 at 1:10 pm
Viewing 15 posts - 286 through 300 (of 388 total)