I am doing a transfer operation from one database to another.

During that time, I want to lock some tables so no new data can be written.

How can I do this ?

--
incognito...updated almost daily
http://kentpsychedelic.blogspot.com

Texeme Textcasting Technology
http://texeme.com

Re: Lock tables during SELECT by Glenn

Glenn
Wed Jan 26 01:24:51 CST 2005

This will depend on the database technology that you are using, ie SQL
Server 2000, or Access

"Pickles The Cat" <pickles@his.firehouse> wrote in message
news:yKxJd.5226$YD5.5086@newsread3.news.pas.earthlink.net...
>
> I am doing a transfer operation from one database to another.
>
> During that time, I want to lock some tables so no new data can be
> written.
>
> How can I do this ?
>
> --
> incognito...updated almost daily
> http://kentpsychedelic.blogspot.com
>
> Texeme Textcasting Technology
> http://texeme.com
>



Re: Lock tables during SELECT by Sahil

Sahil
Wed Jan 26 05:54:12 CST 2005

Use a transaction on the command with the appropriate isolation level.

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik


"Pickles The Cat" <pickles@his.firehouse> wrote in message
news:yKxJd.5226$YD5.5086@newsread3.news.pas.earthlink.net...
>
> I am doing a transfer operation from one database to another.
>
> During that time, I want to lock some tables so no new data can be
> written.
>
> How can I do this ?
>
> --
> incognito...updated almost daily
> http://kentpsychedelic.blogspot.com
>
> Texeme Textcasting Technology
> http://texeme.com
>