Hi all, I have the following that works perfectly fine:
Dim da As New SqlDataAdapter
Dim conn As SqlConnection = New SqlConnection("Data Source=SQLRPT;Initial Catalog=CorpReports;Persis
t Security Info=True;async=true;User ID=apps;Password=...")
Dim cmd As New SqlCommand("hsp_rpt_GrossM
argin_Web"
, conn)
BUT, I want to remove the passwords and use this as a trusted connection, like this:
Dim da As New SqlDataAdapter
Dim conn As SqlConnection = New SqlConnection("Data Source=SQLRPT;Initial Catalog=CorpReports;Persis
t Security Info=True;async=true;Trust
ed_Connect
ion=Yes")
Dim cmd As New SqlCommand("hsp_rpt_GrossM
argin_Web"
, conn)
Everything works fine for this when filling a grid or a dropdown or calling for data. The problem I have is when calling a procedure, it doesn't seem to want to let me do that. It runs fine from my local machine, but not from the website. I have given the server login all the permissions to login to the server and get to all of the Databases. Like I said, it runs fine to allow me to edit, add or pull data from the databases, but will not allow me to run a procedure...
Thanks,
Randy
Start Free Trial