Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SP with multiple tables and databases (insert & delete)
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00758108
Message ID:
00760040
Vues:
28
This message has been marked as a message which has helped to the initial question of the thread.
>>Nadya,
>>
>>There's nor CredID in your code.
>>
>I meant CreditID:
>
>INSERT INTO CartDetail (CartContentID, CreditID)
> SELECT @CartContentID , value
> FROM fn_Split(@tcListOfCodes,',')
>
>It works, but I assume, value is char and CreditID is int. Anyway, no errors and values are inserted correctly.

Sql Server can do imlicit conversion between different data types. The CAST and CONVERT in BOL has a matrix of allowed conversions between data types.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform