Archived Months
January 2003
March 2003
April 2003
May 2003
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
April 2008
August 2008
all groups > sql server programming > january 2007 > threads for monday january 8

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Simple Query that isn't simple
Posted by Derek at 1/8/2007 10:33:00 PM
SQL Server 2000 I have a table that records various actions for people. I want to search for actions where none of several other required actions has been done (exception report). So the basic code I am working with (ignoring the people issue). drop table tblMissingActions drop table Ac...more >>


using BCP: NOLOCK does not prevent from hanging
Posted by angusdei142857 NO[at]SPAM yahoo.com.au at 1/8/2007 8:16:42 PM
Hi, could anyone help a newbie? I'm trying to get the following stored procedure working: SET NOCOUNT ON; -- BEGIN TRAN CREATE TABLE ##table ( F1 INT, F2 NVARCHAR (100) ) INSERT INTO ##table (F1, F2) VALUES (7, 'abc') EXEC xp_cmdshell 'bcp "SELECT * FROM ##table (NOLOCK)...more >>

database install
Posted by Roy at 1/8/2007 8:08:01 PM
I have a database and need to have a installation program to deploy it. I have two choices for it, (1) msi file (2) smo Which one is better? And for each of the ways above, the database can be created by using T-SQL scripts, db backup files or db attach. Which way is better?...more >>

Multiple Insert
Posted by zwieback89 via SQLMonster.com at 1/8/2007 4:47:07 PM
Hi, I would like to do a multiple insert without hardcoding the values in the Owner_Payee column like in the query below. When I do a distinct count of Owner_payee from the table - amp_allmysubordinates_postings, I can see 110 owner_payees. So, for each and every owner_payee, how can I do...more >>

Negative SPID
Posted by Michael MacGregor at 1/8/2007 3:21:11 PM
We had problems accessing one particular table. When I checked sp_lock the table had a table, key and page lock placed on it, but more interestingly the spid value was -2. I don't believe I've ever seen a negative number as the spid before and was wondering what it means. I couldn't use KILL a...more >>

Trigger
Posted by devita at 1/8/2007 1:51:20 PM
Can any one help on how to create a trigger that rollback data when updating a table. explain: update tableA set columnA='NA' in the event where no commit and rollback is in place as part of the update. I would like the trigger that rolls back the data as it was. can this be possible. ...more >>

cleaner way to do this select?
Posted by Derek at 1/8/2007 1:34:38 PM
i have to perform a select against a nullable column from my stored procedure. my stored procedure has a variable that can also be passed in as null. is there a good way to do this checking without using ISNULL? create PROCEDURE getSkillName @skillid int AS /* either or both of skilli...more >>

Sql Query help
Posted by Hardy Wang at 1/8/2007 10:10:05 AM
Hi all, I have a system, in this case I need 3 tables to work with a shopping cart. PurchaseOrder table defines who makes the order, PurchaseOrderDetails table defines what kind of products and quantities are in each purchase order. Please see below for detailed schema. I have a requ...more >>



Tuning A Query
Posted by Goofy at 1/8/2007 9:43:46 AM
I People, I was wondering if someone could take a look at this Stored Procedure and offer a suggestion as to how it could be improved for performance, It takes about five seconds to run which is a little too long. I think the nested loop has a lot of overhead. I have three tables personnel...more >>

Where is query analyzer help system in 2005?
Posted by TS at 1/8/2007 8:53:07 AM
since QA is now built into sql server mgmt studio, how do i get to the help system related to tsql syntax, etc?\ thanks ...more >>

inserting files into sql server blob
Posted by fielden.mike NO[at]SPAM gmail.com at 1/8/2007 7:47:11 AM
Hello, i would like to take a file uploaded via web form from the user's pc into an sql server database, but i have no clue where to get started. could someone possibly point me to the right direction? The files will mainly be ppt files if that helps any. Since i wont be ftping the files anywhe...more >>

importing info from two table
Posted by 7736 NO[at]SPAM webmail.co.za at 1/8/2007 7:08:32 AM
Hi everyone. I am new to sql so i figured the best way is to ask around and learn from there.. I have a problem that i would like to know. what sql code would i write if: I wanted to take information from one table and information from another and put ...more >>

SQL Jobs and DTS packages are not executing
Posted by sriram at 1/8/2007 7:01:30 AM
Hi, I am not able to execute SQL Jobs and SQL DTS packages.(I am using SQL2000)....I have checked sql server agent and also i restarted the sql servies ....but for no respite. Could anybody please let me know if there could be any other issue. Thanks, Sriram ...more >>

XPath query as resultset
Posted by Nick Parker at 1/8/2007 6:15:22 AM
Hi, I am attempting to execute an XPath query against a single xml document stored within SQL Server 2005 and return the results as a typical SQL Server recordset/resultset. I understand how to perform the xpath query, however I am having troubles getting the results back the way I want. An ...more >>

Could it be worthwhile to encode character keys in integer?
Posted by rja.carnegie NO[at]SPAM excite.com at 1/8/2007 5:20:10 AM
I've been thinking about how my organisation sets and uses table keys in its MS SQL Server 2000 databases, and about the relative efficiency of queries where table keys are 4-byte integers. I can encode a string of 6 characters into an integer, obviously using a smaller character set, while pr...more >>

SqlCacheDependency - Cache Invalidation wihout result set modification
Posted by mrashidsaleem NO[at]SPAM hotmail.com at 1/8/2007 4:02:40 AM
Using the SQL 2005 "query notification" caching mechanism, I am caching three columns (UserId, UserName, Password) of a table called UserInfo in my web application cache. However, the cache gets invalidated (and needs to be re-loaded) when another column LastUpdateDateTime of the same table gets...more >>

displaying specific value depending on values in column
Posted by Prashant at 1/8/2007 3:51:14 AM
Hi , What is the query for, if we want to display specific value depending on values in column; Eg. we are having table 'StudentMarks' with fields as bellow Table : StudentMarks Fields: StudentID,StudentPercentage if student having percentage > 44 and percentage <= 50 , we have to d...more >>

Using data from multiple connections
Posted by robin9876 NO[at]SPAM hotmail.com at 1/8/2007 2:54:41 AM
I have two data connections which one set of results need to be used in the other connection. The first connection will return a list of customer reference codes that are text (1,000's of records) which will need to be used as a parameter in the other connection. Both connections are in differe...more >>

How to search for certain words (bad words) posted in a blog content
Posted by Meetu at 1/8/2007 1:36:08 AM
Hi All I have the following requirement on the blogging site which we are developing ---> If a user posts a blog and they use words which are not allowed, then these words should be replaced by empty space. For this we have to maintain the list of such words ( bad words hopefully :-)) in t...more >>


DevelopmentNow Blog