shared lock in read committed isolation level
as per lock in sql server if a shared (S) lock has been applied to a resource, other transactions can also acquire a shared lock or an update (U) lock on that item even if the first transaction has not...
View ArticleIs it best pactice to use Month Name as name of the column?
Hi,We need to store many data elements (like Balance, Cost, Budget etc) for each account for varying time periods (month end, month to date, quarter end , quarter to date etc) for at least 5 years...
View ArticleSomeone please help me Design the database of bill of materials with 1 item...
I got this sample from Uri Dimant (MCC, MVP) , The problem is i want 1 item to have multiple parent but this example don t let 1 item to have multiple parents. this is not suit for my objective....
View Articlesql server agent job with SSIS
Hello Expertsi have a sql server agent job that has four steps in tsql,ssis,tsql and tsql orders. the job run automatically every night and i copy paste the error message right here, any ideas...
View ArticleUPDATE STATISTICS for a single table?
can we UPDATE STATISTICS for a specific table in a database?
View ArticleDatabase design - Better approach than XML/ XSD
Hi, I am designing web based application. The scenario I am working on is - I have around 50+ odd objects. They have few common things but other fields will change (Say e.g. Employee / Customers/...
View ArticleTable Inheritance
I'm trying to design a database that has a base table that other tables can 'inherit' from.My situation I have is I have a base table called METAData and then other tables that link to this one,...
View Articlesql server agent job
i have a job the used to run within 13 minutes. since last week, we noticed that one of the step(it has four steps) keeps hanging around and did not get excuted so we have to cancel it. then we get an...
View ArticleDatabase Design and data
Hi,I've a database designed by a previous DBA contains data for all the SQL Servers on the network and we can view all the information with the SSRS. Now we have a new server built,there is a table...
View Articlesql Find Rows where starting value is zero and next is non zero
Hi My Table looks like this create table t ( ref int, vendor int, id int primary key identity, [when] datetime, data int ) go ---------- ---------- insert into t(1,2,[when], data) values...
View ArticleLarge Images Database Management
I want to know that can I store my images (of size nearly 1 GB each with JPEG 2000 extension) directly in database (SQL server)? or will I store them in server directory, like in folder structure by...
View ArticleIBM DB2, SQL administrator and developer
Aftaernoon,Just want to know more about SQl , creating of tables and how they mergered to each other
View Articleprovider: TCP Provider, error: 0 - No connection could be made because the...
hi all,i want to connect to server side from client , i am using sql server 2008 sp1 and os winn 7 64 bit, but it give me an error as above.also i tried this...
View Articlehow can I select id of data from data of another row in the same table
I wan to select Bomid of the row which empid = mgrid of another row . Thanks
View ArticleHow can i select the step count of a recursive CTE ?
I want to select the step count of this query (which one is do fiirst and continue + 1) from query below;WITH EmpCTE( BomID , empid, mgrid,BomMgrId, lvl, Qty , FLG) AS ( SELECT BomID , empid ,...
View ArticleSetting the basic of a POS database
I have made an application using MS Access and am looking to convert (or make entirely from scratch again) to an actual Windows Application. I have looked all over the web on how to get started on this...
View ArticleHow can i group the data of table by condition ?
--CREATE statementUSE [Boomlist]GO/****** Object: Table [dbo].[Employees] Script Date: 1/30/2014 6:28:55 PM ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE TABLE...
View ArticleHow to Create a Before Insert Trigger?
Hello, I need to create a before insert trigger.Here's what I need to do:If inserted.serialNumber exists in the current table AND inserted.opDateTime exists in the current tableThen quit the insert...
View Articledatabase developent
Hi. I need urgent assistance. Im using visual studio 2013 to develop a datamagement tool. My problem is with codes. I have textbox 1 which is llimitted to the following inputs. 150,155,176,186....
View ArticleConvert files from log data to FileTable ?
Hi,I have a table with image/VarBinary(MAX) data type column and storing huge data with in it.So I would like to convert image/VarBinary(MAX) data in to FileTable .. Is it possible ?Please help me on...
View Article