Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL forum
Unanswered

Call a StoredProc with a TVP

Posted on by 310

Hi, 

I tried to call a StoredProc with a TVP (Table Valued Parameter) but it is not working. Here is a short version of my query that work perfectly in SQL Server:

DECLARE @list TABLE (id VARCHAR(200));
INSERT INTO @list 
EXEC ('
SELECT ''00001''
SELECT ''00002''
');
EXEC dbo.StoredProc @parm = @list;

And is SL I'm calling it that way:

sql c1, strSql

I don't have any error, I looked with SqlErr and I have a 0. When I execute it with SSMS Profiler, I see nothing on the server, look like SL was parsing it and nothing happened. 

I work on SL 2011 sp3.

Anyone have an idea of what if wrong in what I'm doiing?

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,420 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,672 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans