Parallel Processing
I have more than 100 files posted every night. I need to import all of those files in SQL Server. I have a script task which gets a list of files names in a temporary table. Then I create number of...
View ArticleGrant View Server State to Role / Login / User using SMO
Hello AllI know that GRANT VIEW SERVER STATE TO User1 Or by writing GRANT VIEW SERVER STATE TO Login1I can set this permision. But I want to set same kind of permission using SMO.If possible then can...
View Articleencrypt on CLR decrypt in SQL?
Hi folks,I'm trying to encrypt a small token of data on my client c# application and have it decrypted by SQL on the server side, the problem is i cannot find articles on the subject. I don;t really...
View ArticleIDENTITY_INSERT ON
Why doesn't this work?SET IDENTITY_INSERT TemoCatalogProducts ON INSERT INTO TempCatalogProducts SELECT * FROM CatalogProducts WHERE VariantID IN ('125244', '104907', '144083', '144098', '144099',...
View Articlesql stored procedure using IN Statement
hi below is my stored procedure, but im not able to get the resultsalter PROCEDURE homepageitems @categoryid int, @websiteid int ,@websiteitems VARCHAR(15) AS BEGIN --...
View ArticleSQL Query help please - ordering based off a different table
Hello,I'm not an experienced SQL coder so please excuse me if this is not possible or simple. I have 2 tables. The first with a bunch of product names, prices, codes, descriptions, etc. The second...
View Articleproblem in query execution
Hi, I am facing strange problem when i am executing a proc to fetch records. when i am retrieving 1 million records from table which has 5 million records it doesnt work properly However iIf the same...
View Articleshow manager approve documents tHRough store procedure
i have a scenario that when any user first upload document then this go for approval first to supervisor then when supervisor approve/reject documents then only approve documents go to manager then...
View ArticleSQL CONCATINATION
I have a stored procedure that gives me results like this.SELECT TYPE, COUNT(TYPE) FROM INVENTORY JOIN INVOICEDETAILS ON INVENTORY.ITEM = INVOICEDETAILS.ITEMWHERE INVOICE = 123AND IT RETURNSBOOTS...
View ArticleRemoving Non-numeric characters from Alpha-numeric string
Hi, I have one column in which i have Alpha-numeric data like COLUMN X-----------------------+91 (876) 098 67891-567-987-7655....so on. I want to remove Non-numeric characters from above...
View ArticleInsert into a table excluding duplicates of a selected column
I have mytable: IDNOItemDateLevel1X2412/23/13 10:41229962X2412/23/13 10:41229963X2412/23/13 9:21232564X2412/23/13 9:21232565X2412/23/13 9:22232566X2412/23/13 9:22232567X2412/23/13 9:2222916that is a...
View Articlelocking
I am inserting 5000 rows from working table to main table?will the sql server lock my main table row by row and or page level or table level?how do i know what factor determine what level locking does...
View ArticleSQL SPLIT STRING
I wanted to know if it would be possible to do something like this in t-sql.I want to create a stored procedure which takes a list of invoice numbers and uses it as a parameter for my stored...
View ArticlePerformance Issue with slow running query
Hi all, I have a performance issue that I need help with. The query is taking 40 seconds to run. I tried creating indexes but it hasnt really helped. Please suggest indexes/other methods that might...
View ArticleNeed SQL script to get the 6 months data month wise
Dear Team,My self Venkat. I am new to SQL. My table contains data with datewiseI need six months data month wise.DEPIDEMPCOUNTDate of transaction10023/1/201310044/1/201310043/2/2013Out put :Jan...
View Articlehow to get previous value using t-sql
Hi team,I want to get previous value for each ID without using CTE. below is my requiementDeclare @table table ( ID int, Value int ) Insert into @table Select 1,3 union all Select 1,4 Union all Select...
View ArticleQuery that provides combination of data that meet a certain criteria
I am trying to find a combination of rows that combine to meet a criteria.I have a table with columns Length , Width and No of pieces. Each row represents one rectangular piece and its quantity.The...
View Article"select * from table" and "select top 14260 from table" get nothing but...
select * from tablename ------always running,but get nothingselect top 1 * from tablename -------get result quicklyselect top 2 * from tablename -------get result...
View ArticleWhich is a large set of disk managed by a high-performance controller that...
Which is a large set of disk managed by a high-performance controller that presents a mount point to various servers across a private network?
View ArticleDebugging tools to check the behavior of an APP on Production Site
Hello Guys,I am facing a strange issue. I have a table that has around 2 million records in it and i have created a combo procedure(combination of multiple stored procedures) that retrieves data from...
View Article