Click here to Skip to main content
15,888,579 members
Home / Discussions / Database
   

Database

 
QuestionDatabase backed up type virtual device- not mainteance ? Pin
SreeDBA5-Jun-16 5:28
SreeDBA5-Jun-16 5:28 
AnswerRe: Database backed up type virtual device- not mainteance ? Pin
Richard Deeming6-Jun-16 5:13
mveRichard Deeming6-Jun-16 5:13 
Questionsyntax error for simple IF - THEN Pin
Jassim Rahma1-Jun-16 7:50
Jassim Rahma1-Jun-16 7:50 
AnswerRe: syntax error for simple IF - THEN Pin
thatraja1-Jun-16 9:04
professionalthatraja1-Jun-16 9:04 
GeneralRe: syntax error for simple IF - THEN Pin
Jassim Rahma1-Jun-16 21:01
Jassim Rahma1-Jun-16 21:01 
GeneralRe: syntax error for simple IF - THEN Pin
Peter_in_27801-Jun-16 21:13
professionalPeter_in_27801-Jun-16 21:13 
GeneralRe: syntax error for simple IF - THEN Pin
thatraja3-Jun-16 5:50
professionalthatraja3-Jun-16 5:50 
QuestionCall dll from SQL trigger Pin
srikrishnathanthri31-May-16 19:49
srikrishnathanthri31-May-16 19:49 
Hello,
I am using SQL server 2008 r2. I am new to SQL triggers and trying to call dll from SQL triggers. I have created dll using vb.net,
Public Class Class1
    Public Function abc(ByVal a As String) As String
        Return a.ToUpper
    End Function
End Class

I have successfully added assembly to the SQL using,
SQL
CREATE ASSEMBLY   triggertest
FROM 'D:\dll\triggerdll.dll'	
WITH PERMISSION_SET = SAFE	

and then added a trigger using,
SQL
CREATE TRIGGER tri_add_clr	
ON dbo.foriegn
FOR INSERT	
AS	
EXTERNAL NAME triggertest.Class1.abc

Here I am getting error,
Msg 6505, Level 16, State 2, Procedure tri_add_clr, Line 1
Could not find Type 'Class1' in assembly 'triggerdll'.

where triggerdll is the name of dll.
How to solve this error ?
Am I calling dll from SQL trigger properly ?
Please help.

modified 1-Jun-16 9:55am.

AnswerRe: Call dll from SQL trigger Pin
Richard Deeming1-Jun-16 2:39
mveRichard Deeming1-Jun-16 2:39 
GeneralRe: Call dll from SQL trigger Pin
srikrishnathanthri1-Jun-16 4:04
srikrishnathanthri1-Jun-16 4:04 
GeneralRe: Call dll from SQL trigger Pin
Richard Deeming1-Jun-16 4:14
mveRichard Deeming1-Jun-16 4:14 
QuestionJoining three tables Pin
Raabi Anony27-May-16 2:27
Raabi Anony27-May-16 2:27 
AnswerRe: Joining three tables Pin
Eddy Vluggen27-May-16 2:53
professionalEddy Vluggen27-May-16 2:53 
AnswerRe: Joining three tables Pin
Richard Deeming27-May-16 3:21
mveRichard Deeming27-May-16 3:21 
GeneralRe: Joining three tables Pin
Raabi Anony27-May-16 16:13
Raabi Anony27-May-16 16:13 
QuestionUpdate existing and next incoming entries in SQL server 2008 Pin
srikrishnathanthri26-May-16 21:14
srikrishnathanthri26-May-16 21:14 
AnswerRe: Update existing and next incoming entries in SQL server 2008 Pin
Richard MacCutchan26-May-16 21:24
mveRichard MacCutchan26-May-16 21:24 
AnswerRe: Update existing and next incoming entries in SQL server 2008 Pin
Eddy Vluggen26-May-16 23:44
professionalEddy Vluggen26-May-16 23:44 
QuestionError in SQL backup with checksum Pin
IT - Researcher23-May-16 1:30
IT - Researcher23-May-16 1:30 
AnswerRe: Error in SQL backup with checksum Pin
Richard Deeming23-May-16 2:06
mveRichard Deeming23-May-16 2:06 
GeneralRe: Error in SQL backup with checksum Pin
srikrishnathanthri26-May-16 21:16
srikrishnathanthri26-May-16 21:16 
GeneralRe: Error in SQL backup with checksum Pin
Richard Deeming27-May-16 0:09
mveRichard Deeming27-May-16 0:09 
GeneralRe: Error in SQL backup with checksum Pin
Richard Deeming27-May-16 3:15
mveRichard Deeming27-May-16 3:15 
QuestionIncorrect syntax near the keyword 'CROSS'. Pin
Vimalsoft(Pty) Ltd22-May-16 1:26
professionalVimalsoft(Pty) Ltd22-May-16 1:26 
AnswerRe: Incorrect syntax near the keyword 'CROSS'. Pin
Vimalsoft(Pty) Ltd22-May-16 2:06
professionalVimalsoft(Pty) Ltd22-May-16 2:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.