Click here to Skip to main content
15,895,836 members
Home / Discussions / Database
   

Database

 
AnswerRe: image databasee Pin
Mycroft Holmes18-May-11 19:35
professionalMycroft Holmes18-May-11 19:35 
Questionstring concadination in sql query Pin
yesu prakash17-May-11 20:39
yesu prakash17-May-11 20:39 
AnswerRe: string concadination in sql query [modified] Pin
Blue_Boy17-May-11 21:02
Blue_Boy17-May-11 21:02 
AnswerRe: string concadination in sql query Pin
Pete O'Hanlon17-May-11 21:03
mvePete O'Hanlon17-May-11 21:03 
AnswerRe: string concadination in sql query Pin
Ra-one17-May-11 21:04
Ra-one17-May-11 21:04 
AnswerRe: string concadination in sql query Pin
Shameel18-May-11 0:43
professionalShameel18-May-11 0:43 
QuestionSQL Server. Insert into table whiles querying Pin
Eli Nurman16-May-11 19:05
Eli Nurman16-May-11 19:05 
AnswerRe: SQL Server. Insert into table whiles querying Pin
Gerben Jongerius16-May-11 20:05
Gerben Jongerius16-May-11 20:05 
Depends on what you are trying to achieve. From what I hear your select statement is locking most of the rows in the table, which could cause a full table lock (read level). That would mean your insert would fail as it cannot get an exclusive lock on the table. The other way around is also possible as you have experienced. If the insert starts first the select will fail.

You could potentially fix this by hinting to the SQL Server to use no locking on the select (add with nolock after the from part from the select), but this will cause you to get dirty data and uncommited data.
GeneralRe: SQL Server. Insert into table whiles querying Pin
Eli Nurman17-May-11 0:21
Eli Nurman17-May-11 0:21 
GeneralRe: SQL Server. Insert into table whiles querying Pin
Gerben Jongerius17-May-11 3:22
Gerben Jongerius17-May-11 3:22 
AnswerRe: SQL Server. Insert into table whiles querying Pin
Luc Pattyn16-May-11 22:59
sitebuilderLuc Pattyn16-May-11 22:59 
GeneralRe: SQL Server. Insert into table whiles querying Pin
Eli Nurman17-May-11 0:23
Eli Nurman17-May-11 0:23 
AnswerRe: SQL Server. Insert into table whiles querying Pin
Luc Pattyn17-May-11 0:30
sitebuilderLuc Pattyn17-May-11 0:30 
AnswerRe: SQL Server. Insert into table whiles querying Pin
PIEBALDconsult17-May-11 2:57
mvePIEBALDconsult17-May-11 2:57 
GeneralRe: SQL Server. Insert into table whiles querying Pin
David Mujica17-May-11 9:04
David Mujica17-May-11 9:04 
AnswerRe: SQL Server. Insert into table whiles querying Pin
SilimSayo17-May-11 3:07
SilimSayo17-May-11 3:07 
AnswerRe: SQL Server. Insert into table whiles querying Pin
Shameel17-May-11 5:04
professionalShameel17-May-11 5:04 
AnswerRe: SQL Server. Insert into table whiles querying Pin
S Douglas8-Jun-11 5:52
professionalS Douglas8-Jun-11 5:52 
QuestionAdding Columns to derived table vs temp table Pin
MAW3016-May-11 13:53
MAW3016-May-11 13:53 
AnswerRe: Adding Columns to derived table vs temp table Pin
loveangel88816-May-11 18:03
loveangel88816-May-11 18:03 
AnswerRe: Adding Columns to derived table vs temp table Pin
SilimSayo17-May-11 5:00
SilimSayo17-May-11 5:00 
QuestionRelation Theory Pin
bfis10813716-May-11 4:16
bfis10813716-May-11 4:16 
AnswerRe: Relation Theory Pin
SilimSayo16-May-11 6:18
SilimSayo16-May-11 6:18 
AnswerRe: Relation Theory Pin
Shameel17-May-11 4:32
professionalShameel17-May-11 4:32 
Questionmembers db or table? Pin
Jassim Rahma15-May-11 2:13
Jassim Rahma15-May-11 2:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.