|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Friday, February 22, 2013 11:14 AM
Points: 39,
Visits: 141
|
|
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.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Yesterday @ 4:33 AM
Points: 6,
Visits: 148
|
|
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".. :)
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 4:11 PM
Points: 37,741,
Visits: 30,020
|
|
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
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Friday, February 22, 2013 11:14 AM
Points: 39,
Visits: 141
|
|
I got it going it was the prmissions.
Thanks so much to all
|
|
|
|