Showing posts with label directly. Show all posts
Showing posts with label directly. Show all posts

Sunday, March 25, 2012

deadlock/blocking in sql server

Hi,
My application using foxpro sometimes seems like hang and when connect to
sql server. I directly go to the sql server and use sp_lock to check whether
there is any thread is waiting and find out there is indeed one thread is
waiting and i use sp_who and can see one process got blocking. But these
things not happen in foxpro database. How i need to troubleshoot this
problem, what i can do so that i can prevent from blocking/deadlock. I have
a profiler and the profiler save the procedure. So, how i can check and
provent by using this profiler?
Thanks a lot.
regards,
florenceMaybe this article will help you:
http://www.sql-server-performance.com/sf_block_prevention.asp
--
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
--
"Florencelee" <florencelee@.visualsolutions.com.my> wrote in message
news:O6oIkQavEHA.536@.TK2MSFTNGP11.phx.gbl...
> Hi,
> My application using foxpro sometimes seems like hang and when connect
to
> sql server. I directly go to the sql server and use sp_lock to check
whether
> there is any thread is waiting and find out there is indeed one thread is
> waiting and i use sp_who and can see one process got blocking. But these
> things not happen in foxpro database. How i need to troubleshoot this
> problem, what i can do so that i can prevent from blocking/deadlock. I
have
> a profiler and the profiler save the procedure. So, how i can check and
> provent by using this profiler?
> Thanks a lot.
> regards,
> florence
>

deadlock/blocking in sql server

Hi,
My application using foxpro sometimes seems like hang and when connect to
sql server. I directly go to the sql server and use sp_lock to check whether
there is any thread is waiting and find out there is indeed one thread is
waiting and i use sp_who and can see one process got blocking. But these
things not happen in foxpro database. How i need to troubleshoot this
problem, what i can do so that i can prevent from blocking/deadlock. I have
a profiler and the profiler save the procedure. So, how i can check and
provent by using this profiler?
Thanks a lot.
regards,
florence
Maybe this article will help you:
http://www.sql-server-performance.co...prevention.asp
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
"Florencelee" <florencelee@.visualsolutions.com.my> wrote in message
news:O6oIkQavEHA.536@.TK2MSFTNGP11.phx.gbl...
> Hi,
> My application using foxpro sometimes seems like hang and when connect
to
> sql server. I directly go to the sql server and use sp_lock to check
whether
> there is any thread is waiting and find out there is indeed one thread is
> waiting and i use sp_who and can see one process got blocking. But these
> things not happen in foxpro database. How i need to troubleshoot this
> problem, what i can do so that i can prevent from blocking/deadlock. I
have
> a profiler and the profiler save the procedure. So, how i can check and
> provent by using this profiler?
> Thanks a lot.
> regards,
> florence
>
sql

deadlock/blocking in sql server

Hi,
My application using foxpro sometimes seems like hang and when connect to
sql server. I directly go to the sql server and use sp_lock to check whether
there is any thread is waiting and find out there is indeed one thread is
waiting and i use sp_who and can see one process got blocking. But these
things not happen in foxpro database. How i need to troubleshoot this
problem, what i can do so that i can prevent from blocking/deadlock. I have
a profiler and the profiler save the procedure. So, how i can check and
provent by using this profiler?
Thanks a lot.
regards,
florenceMaybe this article will help you:
http://www.sql-server-performance.c..._prevention.asp
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
--
"Florencelee" <florencelee@.visualsolutions.com.my> wrote in message
news:O6oIkQavEHA.536@.TK2MSFTNGP11.phx.gbl...
> Hi,
> My application using foxpro sometimes seems like hang and when connect
to
> sql server. I directly go to the sql server and use sp_lock to check
whether
> there is any thread is waiting and find out there is indeed one thread is
> waiting and i use sp_who and can see one process got blocking. But these
> things not happen in foxpro database. How i need to troubleshoot this
> problem, what i can do so that i can prevent from blocking/deadlock. I
have
> a profiler and the profiler save the procedure. So, how i can check and
> provent by using this profiler?
> Thanks a lot.
> regards,
> florence
>

Wednesday, March 7, 2012

DDF Files to SQL

Is there a way to import data form Peachtree DDF files into SQL server
directly or does the information need to be parsed or filtered thru something
like Crystal Reports to have the information exported to a Database?If you can find an ODBC driver or OLE DB provider for your PeachTree DDFs,
then you can use DTS to load those files into SQL Server.
--
HTH,
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @. http://vyaskn.tripod.com/
"Chris Chandler" <see@.top.com> wrote in message
news:Xns9596727A4D0C1nospmnet@.207.46.248.16...
Is there a way to import data form Peachtree DDF files into SQL server
directly or does the information need to be parsed or filtered thru
something
like Crystal Reports to have the information exported to a Database?|||"Narayana Vyas Kondreddi" <answer_me@.hotmail.com> wrote in news:
#ooS7VcwEHA.3832@.TK2MSFTNGP10.phx.gbl:
> If you can find an ODBC driver or OLE DB provider for your PeachTree DDFs,
> then you can use DTS to load those files into SQL Server.
Been Googling for one for a while

Sunday, February 19, 2012

'dbo' problem

We've one windows user account, which is directly associated with 'dbo' user.

What I mean by the above is:
When you look at the logins you would see this user as 'Domain\siva' when you look for this user in the database user list, you won't find this windows account there.
When you double click 'dbo' from the user list, you would see it's associated with the 'Domain\siva' login.

When you go to login properties for this account and grant access to that particular database (under User Mapping), ther 'user' column shows 'dbo' rather than 'Domain\siva'. Even if you type 'Domain\siva' in the 'user' column, it gives an error saying,

"Rename failed for user 'dbo'.................
Cannot alter the user 'dbo' (error 15150)


I want to reduce the permissions for this user 'Domain\siva'. But not able to take him out of 'dbo' and put in data_reader role.

Anybody has any ideas to correct this?


I don't know how this account got created/associated with 'dbo'....
While it's in development, the user 'domain\siva' may have created and nobody noticed how it got associated but now the problems comes..

Any ideas?

Thanks,
Siva.

Hi,

if the user is member of the dbo database role, you will first have to remove him from this role. If he is the database owner, you will first have to change the database owner to another user. Then afterwards you can grant thim indivually the permissions needed, or create a database role which includes the permissions and put him in that role. This will be much more easier, if you have additional users holding the same rights as the mentioned user.

HTH, Jens K. Suessmeyer.


http://www.sqlserver2005.de

|||Thank you. It worked......:)|||

Hi there

What are the steps I need to follow in order remove user from dbo role. Basically I am also having the same problem, but I don't know how to remove a user from dbo role and change the database owner to another user.

Please reply me with steps I need to follow.

Thanks

JCS

jigsh@.hotmail.com

|||

First

Use sp_changedbowner to a new user and you should be able to delete that particular user.

'dbo' problem

We've one windows user account, which is directly associated with 'dbo' user.

What I mean by the above is:
When you look at the logins you would see this user as 'Domain\siva' when you look for this user in the database user list, you won't find this windows account there.
When you double click 'dbo' from the user list, you would see it's associated with the 'Domain\siva' login.

When you go to login properties for this account and grant access to that particular database (under User Mapping), ther 'user' column shows 'dbo' rather than 'Domain\siva'. Even if you type 'Domain\siva' in the 'user' column, it gives an error saying,

"Rename failed for user 'dbo'.................
Cannot alter the user 'dbo' (error 15150)


I want to reduce the permissions for this user 'Domain\siva'. But not able to take him out of 'dbo' and put in data_reader role.

Anybody has any ideas to correct this?


I don't know how this account got created/associated with 'dbo'....
While it's in development, the user 'domain\siva' may have created and nobody noticed how it got associated but now the problems comes..

Any ideas?

Thanks,
Siva.

Hi,

if the user is member of the dbo database role, you will first have to remove him from this role. If he is the database owner, you will first have to change the database owner to another user. Then afterwards you can grant thim indivually the permissions needed, or create a database role which includes the permissions and put him in that role. This will be much more easier, if you have additional users holding the same rights as the mentioned user.

HTH, Jens K. Suessmeyer.


http://www.sqlserver2005.de

|||Thank you. It worked......:)|||

Hi there

What are the steps I need to follow in order remove user from dbo role. Basically I am also having the same problem, but I don't know how to remove a user from dbo role and change the database owner to another user.

Please reply me with steps I need to follow.

Thanks

JCS

jigsh@.hotmail.com

|||

First

Use sp_changedbowner to a new user and you should be able to delete that particular user.

''dbo'' problem

We've one windows user account, which is directly associated with 'dbo' user.

What I mean by the above is:
When you look at the logins you would see this user as 'Domain\siva' when you look for this user in the database user list, you won't find this windows account there.
When you double click 'dbo' from the user list, you would see it's associated with the 'Domain\siva' login.

When you go to login properties for this account and grant access to that particular database (under User Mapping), ther 'user' column shows 'dbo' rather than 'Domain\siva'. Even if you type 'Domain\siva' in the 'user' column, it gives an error saying,

"Rename failed for user 'dbo'.................
Cannot alter the user 'dbo' (error 15150)


I want to reduce the permissions for this user 'Domain\siva'. But not able to take him out of 'dbo' and put in data_reader role.

Anybody has any ideas to correct this?


I don't know how this account got created/associated with 'dbo'....
While it's in development, the user 'domain\siva' may have created and nobody noticed how it got associated but now the problems comes..

Any ideas?

Thanks,
Siva.

Hi,

if the user is member of the dbo database role, you will first have to remove him from this role. If he is the database owner, you will first have to change the database owner to another user. Then afterwards you can grant thim indivually the permissions needed, or create a database role which includes the permissions and put him in that role. This will be much more easier, if you have additional users holding the same rights as the mentioned user.

HTH, Jens K. Suessmeyer.


http://www.sqlserver2005.de

|||Thank you. It worked......:)|||

Hi there

What are the steps I need to follow in order remove user from dbo role. Basically I am also having the same problem, but I don't know how to remove a user from dbo role and change the database owner to another user.

Please reply me with steps I need to follow.

Thanks

JCS

jigsh@.hotmail.com

|||

First

Use sp_changedbowner to a new user and you should be able to delete that particular user.