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
all groups > sql server programming > december 2005 > threads for saturday december 10

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

SQL Server 2000: How to inject a COLUMN VALUE into an EMAIL???
Posted by Alan Mailer at 12/10/2005 10:17:53 PM
Using SQL Server 2000, I want to trigger an email anytime a particular table is appended. I already know the SQL language which will trigger an email, but I need to know something more: Is there a way to add a value from one of the appended row's columns to the email? If so, how would you go...more >>


Show the records that contain "special word" first in SQL query re
Posted by Trent at 12/10/2005 7:47:02 PM
I have a SQL query like: "Select CityName From Student" The current result is like below: AACityA BBCityA BBCityB BBCityC BBCityD CCCityA CCCityB DDCityA .... Now I'd like to order the result to show the records that contain "BB" first, that is, my desired result should be like ...more >>

Please help...can not connect to sql server 2005
Posted by sqlster at 12/10/2005 6:28:02 PM
I used to work on sql server 2005 on hosted on virtual pc 2004 with windows 2000 server as guest operating system on windows xp professional as host operating system. No matter how much ram I threw at it, it was very slow. I decided to wipe out the notebook and install windows 2000 with s...more >>

Sorting Text Dates
Posted by Scott at 12/10/2005 4:18:58 PM
I'm trying to figure out how to sort the below results in Northwind by the month and year. Because my Date is text type, SQL is ordering it incorrect. Anyone know a workaround? I need a solution that will sort the m-yyyy format, but I may even need to sort a Dec - 2005 format. MY CODE: ...more >>

Need help optimizing a stored procedure - SQL2k
Posted by M. Simioni at 12/10/2005 1:44:31 PM
Hi, i was thinking about a way to rewrite the procedure i'm going to explain, to improve performance and take down the whole duration. I have a table with about 5.000.000 rows: TABLE1: ID bigint, ID_PM bigint, DATE datetime, ...other fields... and another table with abount 5.0...more >>

Aggregate Transpose Problem
Posted by Scott at 12/10/2005 1:12:06 PM
My example code (CODE 1) returns quarter counts for several fields in Northwind (I'm using Northwind to simulate my actual data). It returns code that looks like FIGURE 1. Can my sql be modified so the Field names are the GROUPED BY and run down the 1st column while forcing the Quarters to...more >>

Sales Average Query
Posted by kevin_james1970 NO[at]SPAM yahoo.co.uk at 12/10/2005 8:53:15 AM
Hi Reader, I'm fairly new to SQL and am struggling with this query. Can someone help me out? I have three tables, Employee, Sale and EmployeeSale. >From these tables I want to be able to monitor employee performance by calculating the value of sales each of my staff has made in a qtr and ...more >>

bulk insert question? Another way?
Posted by kevin at 12/10/2005 8:41:34 AM
hi guys, I have a text file contains about 1 million rows, I tried to import to a table but I received data conversion errors for some rows, however, the row number is like 504500 for example, I want to troubleshoot this row but the only way I know is to open the text file (300MB) which ...more >>



smo disbale job
Posted by B. Mark McKinney at 12/10/2005 8:25:03 AM
In the following function a JobId is passed in that the user wants to disable. The function then retrieves the job collection, finds the correct job, sets the IsEnabled to false and then tries to update the job. This results in this error: Alter failed for Job <job.name> Does anyone have...more >>

Dynamic Criteria for a Stored Procedure
Posted by Ryan.Chowdhury NO[at]SPAM gmail.com at 12/10/2005 7:05:34 AM
Our database utilizes some custom functions and .dll's to perform IRR calcuations. The IRR calculation takes two steps. 1. The first step is to create a view which preps the cash flows and pulls out what you want to analyze. ("Ad Hoc Query") 2. The second step is to create a stored procedure ...more >>

SQL Bug??
Posted by marcmc at 12/10/2005 3:33:02 AM
select 717306 * 3000 Server: Msg 8115, Level 16, State 2, Line 1 Arithmetic overflow error converting expression to data type int. What's the story with this? ...more >>

Update Query question.
Posted by Trinidad at 12/10/2005 12:45:45 AM
Hi I do have a question about a query on update. I appreciate if anyone could help me. Here is the table I have: Emp ID Lname Fname OfficeID 1 A Bobo 1 2 B Coco 2 3 C Jojo 1 Office ...more >>

finding missing dates in a sequence
Posted by jay at 12/10/2005 12:13:02 AM
I have 200 tables that have data entered into the daily. I need to identify all dates that are missing from the tables. for example: date column1 column2 1/1/2005 5 20 2/1/2005 67 35 4/1/2005 3 17 5/1/2005 9 ...more >>

Left Outer Join and Where Clause
Posted by Kiran at 12/10/2005 12:00:00 AM
Hi, I have two tables Table1 and Table2. I need to join Table2 on Table1_SID to get name for SID Column of Table1. But I need all rows of Table1. I can use a Left Outer Join to achieve this. Now I have a problem. There are rows in table2 and table1 where Table1_SID and SID have -1 v...more >>


DevelopmentNow Blog