cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

How to Create a Stored Procedure from thingworx service

vxba
7-Bedrock

How to Create a Stored Procedure from thingworx service

I want to create a stored procedure from thingworx service, when I'm run test it throw an error 

"Unable to Invoke Service ListServices on  TestDatabase: Incorrect syntax near 'GO'. "

for example:

USE [SERVICE1]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
 
CREATE PROCEDURE [dbo].[ListServices]
@product_id nvarchar(32)
AS
BEGIN
.........
END
1 ACCEPTED SOLUTION

Accepted Solutions
supandey
19-Tanzanite
(To:vxba)

Hi @vxba could you try something like this :

 

Create procedure dbo.demoProc1
@Sno int
AS
SET NOCOUNT ON;
Select * from table1
where sNO = @Sno;

Let me know if there's any issue.

View solution in original post

2 REPLIES 2
supandey
19-Tanzanite
(To:vxba)

Hi @vxba could you try something like this :

 

Create procedure dbo.demoProc1
@Sno int
AS
SET NOCOUNT ON;
Select * from table1
where sNO = @Sno;

Let me know if there's any issue.

vxba
7-Bedrock
(To:supandey)

Thank you! It worked for me

Top Tags