DCSIMG
SQL Server - Rotem Bloom's Blog

Rotem Bloom's Blog

Share knowledge on .NET and web development

News

About Me

Glad to help and share knowledge on .NET and also huge fan of Dream Theater.

Contact me via messenger

View Rotem Bloom's profile on LinkedIn

Dream Theater Pics

Blogs I Read

Browse by Tags

All Tags » SQL Server (RSS)
שאלה לתותחי SQL ו-DATABASE
שלום לכולם, יש לי שאלה לכול מומחי ה-SQL ו-DATABASE והשאלה היא: רציתי לדעת מה הגישה המקובלת והמומלצת יותר היום לעבודה עם DATABASE שאמור להיות עמוס מבחינת גישות SQL ונתונים (נגיד DB כמו של פייסבוק או אמזון). 1. האם לעבוד ב-DB שונים לכול שירות? כלומר: DB למשתמשים, DB למוצרים, DB להזמנות וכו'... ככה אין כמעט JOIN אבל יש לחבר את התוצאות מהשירותים השונים במקרה שיש צורך ב-JOIN. 2. האם בכול זאת עדיף לעבוד עם DB אחד לבצע JOIN שיכולים להיות מורכבים ורק להפריד את הנתונים ל-DB שונים לפי לוגיקה מסויימת 3...
Insert and Update pattern for multiple threads application with SQL Server
Hi, Have you ever try to insert a row in to a SQL table if the key does not exist and update a row if a key exists. Well this is very common scenario. Usually you would achieve this goal by writing SQL like: if exists ( select * from TestTable where ID = @id ) begin update TestTable set myCount = myCount + 1 where ID = @id end else begin insert into TestTable values ( @id , 1 ) end This code will work fine for single threaded applications but will not work for multiple threads application. To solve...