Showing posts with label access. Show all posts
Showing posts with label access. Show all posts

Friday, March 23, 2012

How many users for a database application?

Hi,
lately i've been faced with a dilemma of whether i should choose to have one
database user to access the database from my app and have inbuilt user
management in the app itself or if i should choose to make a database user
for every user of the application, implementing minimal user management on
the app.
Which is best to choose? what is the best practice?
reagrds,Hi,
I recommend you to have seperate users in SQL server for each application
(provide prev. based on requirement), this will allow you to
have more security.
If you have the option of using Windows Authentication to connect to sql
server then you can set
the user and password policies for each user, this enables the highest
security level.
Note:
I will not recommend you to have application level users because of security
reasons.
Thanks
Hari
MCDBA
"Kazar Kunos" <kazar@.inbox.lv> wrote in message
news:e$92kfHiEHA.704@.TK2MSFTNGP09.phx.gbl...
> Hi,
> lately i've been faced with a dilemma of whether i should choose to have
one
> database user to access the database from my app and have inbuilt user
> management in the app itself or if i should choose to make a database user
> for every user of the application, implementing minimal user management on
> the app.
> Which is best to choose? what is the best practice?
> reagrds,
>
>

Monday, March 19, 2012

how many concurrent users for client/server app?

How many concurrent users will MSDE support in a client/server application?
I found 25 users for a website but I have an Access application that I wish
to connect to MSDE and wish to know how many users before having to upgrade
to the full blown version of SQL Server.
hi Ron,
Ron wrote:
> How many concurrent users will MSDE support in a client/server
> application? I found 25 users for a website but I have an Access
> application that I wish to connect to MSDE and wish to know how many
> users before having to upgrade to the full blown version of SQL
> Server.
25 concurrent users is just am estimate number, as it depend on the actual
project , the dataload, the data access type, the data access method and so
on...
you really have to test yourself for your actual solution..
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.10.0 - DbaMgr ver 0.56.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply

How many concurrent user of msde

i want to know how many user can access to msde in same
time?
Depends what you mean at the "same time". MSDE can handle numerous
connections. Your connection limit is limited by your particular licensing
and how much RAM you have on the workstation. Remember each connection to
MSDE take 40KB of RAM even though you are doing work with the connection or
not.
Up to 8 concurrent worker threads can access SQL Server at one time.
Please reply only to the newsgroup so that others can benefit. When posting,
please state the version of SQL Server being used and the error number/exact
error message text received, if any.
This posting is provided "AS IS" with no warranties, and confers no rights.
|||It's really more involved than simply "8 concurrent worker threads". MSDE is
not limited based on the number of connections--it's governed on how much
work it's asked to do at one time. Each operation (query/batch) consumes at
least one worker thread. These operations typically take a few milliseconds
to several minutes to run (depending on how you write the query). You can
execute 8 of these simultaneously without penalty--MSDE processes them as
quickly as the (single) processor allows. Once you ask for more than 8, the
governor kicks in and slows down all 8 by a fixed factor. When you ask for
more work from MSDE, it slows everything down even more--by a factor of the
number of worker threads over 8.
If you're clever, you can easily support many dozens of users and never see
the governor kick in.
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
"Thomas Carey, r." <tcarey@.Online.microsoft.com> wrote in message
news:76QIHt$kEHA.2792@.cpmsftngxa10.phx.gbl...
> Depends what you mean at the "same time". MSDE can handle numerous
> connections. Your connection limit is limited by your particular
> licensing
> and how much RAM you have on the workstation. Remember each connection to
> MSDE take 40KB of RAM even though you are doing work with the connection
> or
> not.
> Up to 8 concurrent worker threads can access SQL Server at one time.
> Please reply only to the newsgroup so that others can benefit. When
> posting,
> please state the version of SQL Server being used and the error
> number/exact
> error message text received, if any.
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>

How many concurrent user connect to msde

Which one can tell me how many user can access to msde
server in same time?
You can have as many connections as you want. There is a limit of 8
concurrent work processes available but 3 of these are taken up by the system
"michael" wrote:

> Which one can tell me how many user can access to msde
> server in same time?
>
|||hi,
"Andrew" <Andrew@.discussions.microsoft.com> ha scritto nel messaggio
news:325C3340-D75F-49A7-960B-0564CB85B781@.microsoft.com...
> You can have as many connections as you want. There is a limit of 8
> concurrent work processes available but 3 of these are taken up by the
system[vbcol=seagreen]
> "michael" wrote:
you can have more than 8 concurrent workloads... this is not limited...
there's only the tradeoff that, up to the 9th concurrent workload, a delay
will be applied to all executing workloads in order to penalize all of them
more info at
http://msdn.microsoft.com/library/de...r_sa2_0ciq.asp ,
http://msdn.microsoft.com/library/de...r_sa2_6dip.asp
and
http://msdn.microsoft.com/library/de...r_sa2_0neh.asp
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.8.0 - DbaMgr ver 0.54.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply

Monday, March 12, 2012

How long register the Databases without access?

Hi Friends...
I want to know if exist a possibility to check who was the last user in
acceding some databases, and how time passed after it.
I need to know this, because i have more than 100 databases on a clustered
server and i supposed that more than 20 are unused.
Thanks all!
Hi
Not possible unless you switch on extensive auditing like C2 in SQL Server.
Regards
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Tinchos" <Tinchos@.discussions.microsoft.com> wrote in message
news:15369103-F255-402F-A148-FEA183AEA2D3@.microsoft.com...
> Hi Friends...
>
> I want to know if exist a possibility to check who was the last user in
> acceding some databases, and how time passed after it.
> I need to know this, because i have more than 100 databases on a clustered
> server and i supposed that more than 20 are unused.
> Thanks all!
>

How long register the Databases without access?

Hi Friends...
I want to know if exist a possibility to check who was the last user in
acceding some databases, and how time passed after it.
I need to know this, because i have more than 100 databases on a clustered
server and i supposed that more than 20 are unused.
Thanks all!Hi
Not possible unless you switch on extensive auditing like C2 in SQL Server.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Tinchos" <Tinchos@.discussions.microsoft.com> wrote in message
news:15369103-F255-402F-A148-FEA183AEA2D3@.microsoft.com...
> Hi Friends...
>
> I want to know if exist a possibility to check who was the last user in
> acceding some databases, and how time passed after it.
> I need to know this, because i have more than 100 databases on a clustered
> server and i supposed that more than 20 are unused.
> Thanks all!
>

How long register the Databases without access?

Hi Friends...
I want to know if exist a possibility to check who was the last user in
acceding some databases, and how time passed after it.
I need to know this, because i have more than 100 databases on a clustered
server and i supposed that more than 20 are unused.
Thanks all!Hi
Not possible unless you switch on extensive auditing like C2 in SQL Server.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Tinchos" <Tinchos@.discussions.microsoft.com> wrote in message
news:15369103-F255-402F-A148-FEA183AEA2D3@.microsoft.com...
> Hi Friends...
>
> I want to know if exist a possibility to check who was the last user in
> acceding some databases, and how time passed after it.
> I need to know this, because i have more than 100 databases on a clustered
> server and i supposed that more than 20 are unused.
> Thanks all!
>

Wednesday, March 7, 2012

How is security to FoxPro managed through Linked Server from SQL

I’ve been working on getting a linked server through SQL 2005 to work with VFP 9.

I get access denied for any and all security set ups on the linked server. I’ve checked the folder-level security settings and see that the user I’m logged in as, and have tried through security settings, and they seem to have access.

What other security settings should I be checking?

Hi Doug,

As you probably already know, there isn't any real security on Fox tables other than Windows permissions to the directory. That means that the account SQL Server uses must have permissions to the directory where the tables are. What account does your SQL Server service run under? Does that account have permissions to the directory?

|||

sp_addlinkedsrvlogin

Creates or updates a mapping between logins on the local instance of SQL Server and remote logins on the linked server.

take note of this option

sp_addlinkedsrvlogin [ @.rmtsrvname = ] 'rmtsrvname'
[ , [ @.useself = ] 'useself' ]
[ , [ @.locallogin = ] 'locallogin' ]
[ , [ @.rmtuser = ] 'rmtuser' ]
[ , [ @.rmtpassword = ] 'rmtpassword' ]

[ @.rmtsrvname = ] 'rmtsrvname'

Is the name of a linked server that the login mapping applies to. rmtsrvname is sysname, with no default.

[ @.useself = ] 'useself'

Determines the name of the login used to connect to the remote server. useself is varchar(8), with a default of TRUE.

A value of true specifies that logins use their own credentials to connect to rmtsrvname, with the rmtuser and rmtpassword arguments being ignored. false specifies that the rmtuser and rmtpassword arguments are used to connect to rmtsrvname for the specified locallogin. If rmtuser and rmtpassword are also set to NULL, no login or password is used to connect to the linked server.

[ @.locallogin = ] 'locallogin'

Is a login on the local server. locallogin is sysname, with a default of NULL. NULL specifies that this entry applies to all local logins that connect to rmtsrvname. If not NULL, locallogin can be a SQL Server login or a Windows login. The Windows login must have been granted access to SQL Server either directly, or through its membership in a Windows group granted access.

[ @.rmtuser = ] 'rmtuser'

Is the user name used to connect to rmtsrvname when useself is false. rmtuser is sysname, with a default of NULL.

[ @.rmtpassword = ] 'rmtpassword'

Is the password associated with rmtuser. rmtpassword is sysname, with a default of NULL.

|||

Yeah, I thought there was no other security other than file level. I'm baffled then. The user of the SQL service does have read rights to the directories and files. I have tried local administrator accounts on the server by designating security through the linked server also. :( Grasping at straws at this point.

|||Thanks for the help screen. I've been trying different combinations. Also trying all possible ways to open up security for various users. What I have gotten is that the SQL Server service user ID can now load through the Linked Server but I can't get any other IDs to load through the Linked Server. Good progress though.

How is security to FoxPro managed through Linked Server from SQL

I’ve been working on getting a linked server through SQL 2005 to work with VFP 9.

I get access denied for any and all security set ups on the linked server. I’ve checked the folder-level security settings and see that the user I’m logged in as, and have tried through security settings, and they seem to have access.

What other security settings should I be checking?

Hi Doug,

As you probably already know, there isn't any real security on Fox tables other than Windows permissions to the directory. That means that the account SQL Server uses must have permissions to the directory where the tables are. What account does your SQL Server service run under? Does that account have permissions to the directory?

|||

sp_addlinkedsrvlogin

Creates or updates a mapping between logins on the local instance of SQL Server and remote logins on the linked server.

take note of this option

sp_addlinkedsrvlogin [ @.rmtsrvname = ] 'rmtsrvname'
[ , [ @.useself = ] 'useself' ]
[ , [ @.locallogin = ] 'locallogin' ]
[ , [ @.rmtuser = ] 'rmtuser' ]
[ , [ @.rmtpassword = ] 'rmtpassword' ]

[ @.rmtsrvname = ] 'rmtsrvname'

Is the name of a linked server that the login mapping applies to. rmtsrvname is sysname, with no default.

[ @.useself = ] 'useself'

Determines the name of the login used to connect to the remote server. useself is varchar(8), with a default of TRUE.

A value of true specifies that logins use their own credentials to connect to rmtsrvname, with the rmtuser and rmtpassword arguments being ignored. false specifies that the rmtuser and rmtpassword arguments are used to connect to rmtsrvname for the specified locallogin. If rmtuser and rmtpassword are also set to NULL, no login or password is used to connect to the linked server.

[ @.locallogin = ] 'locallogin'

Is a login on the local server. locallogin is sysname, with a default of NULL. NULL specifies that this entry applies to all local logins that connect to rmtsrvname. If not NULL, locallogin can be a SQL Server login or a Windows login. The Windows login must have been granted access to SQL Server either directly, or through its membership in a Windows group granted access.

[ @.rmtuser = ] 'rmtuser'

Is the user name used to connect to rmtsrvname when useself is false. rmtuser is sysname, with a default of NULL.

[ @.rmtpassword = ] 'rmtpassword'

Is the password associated with rmtuser. rmtpassword is sysname, with a default of NULL.

|||

Yeah, I thought there was no other security other than file level. I'm baffled then. The user of the SQL service does have read rights to the directories and files. I have tried local administrator accounts on the server by designating security through the linked server also. :( Grasping at straws at this point.

|||Thanks for the help screen. I've been trying different combinations. Also trying all possible ways to open up security for various users. What I have gotten is that the SQL Server service user ID can now load through the Linked Server but I can't get any other IDs to load through the Linked Server. Good progress though.

How is it possible that inserted and deleted are both empty in trigger?

I created manage update trigger to react on one column changes. There is an application which is working with DB, so I don't have access to SQL query which changes this column. In most cases trigger works fine, but in one case when this column changes, trigger is fired and IsUpdatedColumn is true for this column, but both inserted and deleted table are empty, so I can't get new value for this column. Any idea why is it happened? Is any way around?

This column type is uniqueidentifier. Inserted and deleted tables are empty when application is changing value from NULL to not null value, but if I change it myself from Management Studio inserted table contains right values. Most like problem is in query which is changing that value.

I'm doing that on Sql Server 2005.

Triggers are also firing when no rows is affected, it is fired on a per statement basis not per row.

HTH, Jens K. Suessmeyer.

http://www.sqlserver2005.de

how import DB(arabic) file to sql server?

hi

I have a BD (paradox) file, and have to import to sql server .

i imported that to access successful, but my data not correct (my data is in Arabic and Persian) like this: ?óì? ì?????

Please help me.

this because of codepage or collation

import to sql in a field with datatype nchar (unicode) if u want to maintain arabic and farsi in same field

|||

Try to use this DTS http://www.microsoft.com/middleeast/msdn/CPDTS.aspx

how import DB(arabic) file to sql server?

hi

I have a BD (paradox) file, and have to import to sql server .

i imported that to access successful, but my data not correct (my data is in Arabic and Persian) like this: ?óì? ì?????

Please help me.

this because of codepage or collation

import to sql in a field with datatype nchar (unicode) if u want to maintain arabic and farsi in same field

|||

Try to use this DTS http://www.microsoft.com/middleeast/msdn/CPDTS.aspx

Friday, February 24, 2012

How I can undo drop Table ?

Hello:
Please, I need Help. I have an Access database linked to SQL Setver 2000
tables.
I delete the tables from Access. I inmediately stop Sql Server. I need to
restore the tables. How can I proceed ?
I really will appreciate any help .
Roberto
Roberto Carabajal wrote:
> Hello:
> Please, I need Help. I have an Access database linked to SQL Setver
> 2000 tables.
> I delete the tables from Access. I inmediately stop Sql Server. I
> need to restore the tables. How can I proceed ?
> I really will appreciate any help .
> Roberto
You'll need to restore the database from a backup file and then restore
any log files. If you are using a recovery model other than Simple, you
may be able to recover the table using a tool like Log Explorer from
Lumigent (but you'll need to purchase it).
There is no undo operation for things like this.
David G.
|||Restore from a backup. There is no built-in feature to undo deletions of
objects.
David Portas
SQL Server MVP
|||Hello Roberto
The table/data may be unrecoverable if the following are true :
- Command was not run within a transaction
- Command completed before SQL Server service was stopped
Thank you for using Microsoft newsgroups.
Sincerely
Pankaj Agarwal
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.
|||Do you mean you deleted the link in Access? If so, relink the table.
Deleting the link in Access will not drop the SQL Server table.
If Access is the linked server in SQL and you deleted the Access table, you
may be able to restore the table if the Access DB has not been compacted
since the deletion.
Kevin
"Roberto Carabajal" <RobertoCarabajal@.discussions.microsoft.com> wrote in
message news:DDFEECBE-2FE5-43C6-B30A-FA887A99E92A@.microsoft.com...
> Hello:
> Please, I need Help. I have an Access database linked to SQL Setver 2000
> tables.
> I delete the tables from Access. I inmediately stop Sql Server. I need to
> restore the tables. How can I proceed ?
> I really will appreciate any help .
> Roberto
|||I delete the table in Access tables's view, but the table was linked to Sql
Server, so the "real" table resided in Sql Server.
Thanks very much anyway.
"Kevin Doyle" wrote:

> Do you mean you deleted the link in Access? If so, relink the table.
> Deleting the link in Access will not drop the SQL Server table.
> If Access is the linked server in SQL and you deleted the Access table, you
> may be able to restore the table if the Access DB has not been compacted
> since the deletion.
> Kevin
> "Roberto Carabajal" <RobertoCarabajal@.discussions.microsoft.com> wrote in
> message news:DDFEECBE-2FE5-43C6-B30A-FA887A99E92A@.microsoft.com...
>
>
|||I'sorry. I should clarify it is an .ADP proyect used as a tool to managing
the server.
The problem was that droping table from the project <=> drop table in the
server.
Perhaps, it could be a "undo" in the proyect, but I must admit Access never
had similar one.
"Roberto Carabajal" wrote:
[vbcol=seagreen]
> I delete the table in Access tables's view, but the table was linked to Sql
> Server, so the "real" table resided in Sql Server.
> Thanks very much anyway.
>
> "Kevin Doyle" wrote: