Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.
Dim commandText As String = "DECLARE @investor varchar(10), @sql varchar(1000) " commandText += "SELECT @investor = '69836', " commandText += "@sql = 'SELECT * FROM OPENQUERY(db, ''SELECT * FROM table1 " commandText += "WHERE investor = ' + @investor + ' '')' EXEC(@sql)" Dim query As SqlCommand = New SqlCommand(commandText, conn)
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
22 Experts available now in Live!