Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

I NEED HELP WITH SQL EXPRESS 2008 R2 Expand / Collapse
Author
Message
Posted Sunday, January 6, 2013 2:27 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, July 12, 2013 7:25 AM
Points: 39, Visits: 144
I am a newbie just been doing this for about 3 mo's.

I installed sql and all went well. During setup I set myself as sa using Windows AuAuthenticationI pupurchase vb.net book that came with a database on cd. I install the cd and it created a database. As I studied the book and followed all the examples I had no problems I could ADD/UPDATE records just fine using the examples. I have a client that has an access database. I created a new sql database using Access database tools/ sqlserver. Access created the database and all tables and data. So I wrote the database app. in vb.net. In my app. I can ADD/RETREIVE DATA OK, BUT IT WILL NOT UPDATE THE DATABASE. I have been over my code and even posted it on vb forum. Someone told me I did not have write permission in the database. I have not setup any user for the DCTS database. I tried to add a new user "myself" SQL would not allow me to add user. It said I did not have permission. I dont understand why I can ADD/UPDATE/RETREIVE DATA with the database that came with the book, and not be able to update my own database.
as always thanks.
Post #1403357
Posted Monday, January 7, 2013 10:26 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, October 11, 2014 8:03 AM
Points: 6, Visits: 310
Hi

You could try using SSMS(SQL Server Management Studio) and run the below queries to get your permissions levels-

select * from fn_my_permissions(NULL,'server') --gives Server Level Perms

use DBName ; GO ; select * from fn_my_permissions(NULL,'Database') --Gives Database Level Perms

if you are not sure about SSMS, try running the below from you cmd-

sqlcmd -SInstanceName -E -q"select * from fn_my_permissions(NULL,'server')"

sqlcmd -SInstanceName -E -q"use DBName ;select * from fn_my_permissions(NULL,'Database')"

Note: Replace InstanceName with name of you Instance and DBName with your Database Name.

Once you get results, either try posting here or google out for required level of access.

Hope that helps!


-J

On windows 7 , if nothing works try "Run as Administrator".. :)
Post #1403740
Posted Monday, January 7, 2013 10:35 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 11:31 AM
Points: 40,177, Visits: 36,578
It would kinda help if you show us the code that doesn't work...

What error does it give? If it's a permissions problem, the error is very specific.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1403748
Posted Monday, January 7, 2013 9:20 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, July 12, 2013 7:25 AM
Points: 39, Visits: 144
I got it going it was the prmissions.

Thanks so much to all
Post #1403956
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse