Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


I NEED HELP WITH SQL EXPRESS 2008 R2


I NEED HELP WITH SQL EXPRESS 2008 R2

Author
Message
lonhanner
lonhanner
SSC Rookie
SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)

Group: General Forum Members
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.
jayaraj.vemula
jayaraj.vemula
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
Points: 6 Visits: 361
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".. Smile
GilaMonster
GilaMonster
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47189 Visits: 44356
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, MVP, M.Sc (Comp Sci)
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


lonhanner
lonhanner
SSC Rookie
SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)

Group: General Forum Members
Points: 39 Visits: 144
:-PI got it going it was the prmissions.

Thanks so much to all
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search