G
Google Jenny
Hi.
My colleague and I have followed the procedure to populate a form with
data from a database, using this code:
private void bindGrid()
{
sqlConnection1.Open();
sqlDataAdapter1.Fill(dataSet1);
DataGrid1.DataBind();
sqlConnection1.Close();
}
When we run this, we get the following error message:
Server Error in '/ESSWebForm' Application.
------------------------------------------------------------------------
--------
SELECT permission denied on object 'sf1', database 'UCLA', owner 'dbo'.
Source Error:
Line 45: sqlDataAdapter1.Fill(dataSet1);
We followed instructions that included running sp_grantlogin and
sp_grantdbaccess for the user.
And now we're stuck. We can't figure out how to get access to tables and
other database objects.
In general, we're confused about where in VS .NET we program in
authentication/permissions.
Any help greatly appreciated
Thanks,
Google Jenny
My colleague and I have followed the procedure to populate a form with
data from a database, using this code:
private void bindGrid()
{
sqlConnection1.Open();
sqlDataAdapter1.Fill(dataSet1);
DataGrid1.DataBind();
sqlConnection1.Close();
}
When we run this, we get the following error message:
Server Error in '/ESSWebForm' Application.
------------------------------------------------------------------------
--------
SELECT permission denied on object 'sf1', database 'UCLA', owner 'dbo'.
Source Error:
Line 45: sqlDataAdapter1.Fill(dataSet1);
We followed instructions that included running sp_grantlogin and
sp_grantdbaccess for the user.
And now we're stuck. We can't figure out how to get access to tables and
other database objects.
In general, we're confused about where in VS .NET we program in
authentication/permissions.
Any help greatly appreciated
Thanks,
Google Jenny