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 > january 2007 > threads for tuesday january 16

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

printing problem with MS database diagrams
Posted by Henrik Staun Poulsen at 1/16/2007 11:28:28 PM
Hi, I've searched high and low for a solution to a annoying problem we have when printing database diagrams. This is SQL 2005 SP1, and the problem is that printouts have a large gray box in the left hand corner of every table in the diagram. When this gray box is in the lower left hand corner...more >>

T-SQL problem
Posted by Slug at 1/16/2007 11:15:21 PM
Hello all, My T-SQL is pretty average so can anybody help me with this please: I have 3 tables, TableA: BatchID int, PK TotalRequests int XMLCreated datetime (or bit, I forget) TableB: BatchID int (FK) RequestID int (FK) TableC: RequestID int, PK CompletedDate datetime I nee...more >>

Inventory application schema
Posted by dean.vanes NO[at]SPAM gmail.com at 1/16/2007 11:09:53 PM
A client had retained us to build an inventory into a custom application we've built for them. We've had a good look at what's involved and what they are asking for is a fairly standard inventory. Rather than reinvent the wheel we'd like to use an existing schema and adapt it to our specific ...more >>

Clients for Analysis Service
Posted by Max2006 at 1/16/2007 10:44:33 PM
Hi, I am looking for a rich client for my Analysis Service Cube. What kind of options do I have within Microsoft Products? A link to an online article would be a great help. Thank you, Max ...more >>

SQL transaction in multi-threading environment
Posted by Hank at 1/16/2007 9:28:35 PM
Expert, I have a same piece of code which will be executed by multiple thread, e.g. begin transaction insert .... delete..... update.... ..... commit or rollback currently I have a lock in the application level, so every thread will hold a lock before execute the above code and release l...more >>

Correlated sub query on joined table
Posted by Ant at 1/16/2007 8:10:01 PM
Hi, I'm running a correlated query on a joined table to return only the highest value of each group of projects. One project can have many revisions & I'm trying to return only the highest revision for each project. Both the project & task tables include ProjectCode & RevisionNum. I can d...more >>

'set ansi_nulls on' when modifying a stored procedure
Posted by Matthew at 1/16/2007 6:43:01 PM
I have a stored procedure that needs to be executed with ansi_null set to off. Problem is that whenever I go to modify the stored procedure using SQL Server management studio, the following batch is automatically added set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go alter procedure etc, et...more >>

VERY strange issue with SQL 2000 + ADO Command object
Posted by George Shawn at 1/16/2007 6:17:36 PM
Hi, I am running into an extremely frustrating problem and after hours of troubleshooting have not made any progress. When I try to use the ADO Command object to update a table, I receive the following error message: Microsoft OLE DB Provider for ODBC Drivers error '80040e10' No value giv...more >>



vb and sql express
Posted by JFB at 1/16/2007 5:59:42 PM
Hi all, I have an website vb.net 2005 app using sql express in my laptop. How can I deploy this app so it can work anywhere? Any link or help please. Thanks in advance Rgds JFB ...more >>

storing a .pdf file in a database table...
Posted by Brad Pears at 1/16/2007 5:23:15 PM
I want to store a .pdf document directly in the database as part of a record. What column 'type' should be used for this? varbinary ?? I am doing this using vb.net 2005 - which I am very new to. Can anyone point me to some documentation that outlines how to go about storing this type of a ...more >>

refreshing views and functions
Posted by Johan Karlsson at 1/16/2007 4:10:45 PM
Hi! Is there a system SP to refresh all views and functions after their source tables has been modified? To include new columns etc. /Johan ...more >>

Update Limit
Posted by LGC at 1/16/2007 4:04:19 PM
I'm using Access 2003 SP2 with MSDE 2000. I copied a function from an internet site that changes text to proper case. Using an update query with the function works for only the first 10,000 records (out of 42,000+). The last 32,000+ records remain unchanged. Is this a limitation of the MSDE ...more >>

Send/Fetch text file to FTP site.
Posted by DaveS at 1/16/2007 3:32:35 PM
Hi! I have two similar questions regarding sending/fetching a textfile to/from an FTP site using SQL Server 2000. I need to read a csv file that exists on an FTP site. Can I read the data there, or do I need to first save a local copy of the file? I will also be creating a csv file in a st...more >>

update only updated columns
Posted by Jason at 1/16/2007 3:31:03 PM
Hi, I was wondering how to achieve to update only updated columns. For example: If i need to change someone's personal information like address and location, everything else remains the samee, then would not write a update statement which includes all column names in the SET-part. Is th...more >>

SQL Personal Edition Equivalent in SQL 2005
Posted by SF at 1/16/2007 2:33:49 PM
Hi, SQL 2000 comes with a Personal Edition, in SQL 2005 is there any desktop SQL equivalent to SQL 2000 Personal edition? SF ...more >>

Translate This Syntax?
Posted by Phil Sandler at 1/16/2007 1:29:41 PM
All, I have never seen this syntax before, and can't fathom what it is doing. Can someone translate to english or "standard" SQL syntax? SELECT * FROM d LEFT OUTER JOIN l INNER JOIN p ON l.Product_ID = p.Product_ID ON d.field1 = l.field1 Thanks for any insight. Phil ...more >>

Very beautiful
Posted by ahmad6132 at 1/16/2007 1:09:38 PM
1) If you are looking for the truth to soothe and please your self, just click on this link. 2) If you are looking for the secrt of the family happiness, just click on this link. 3) If you are looking for solving any social problem you face, just click on this link. http://www.sultan...more >>

Running Balance in view
Posted by David Chase at 1/16/2007 12:42:10 PM
I would like to modify my view below to create a running balance of IncomeAmt - ExpenseAmt and wasn't sure if this could be done in a view. I am only getting records for 1 account so I don't think performance will be an issue. Thanks. SELECT dbo.EmployerRepTrans.TransAmount, CASE...more >>

Query timeout
Posted by Bjarne at 1/16/2007 12:10:33 PM
Hi, I get a "Timeout expired." exception after 30 sec. from my C# application when I try to do a "BACKUP ..." or "DELETE ..." query on a big table with lots of rows. All are working fine if I make the table smaller or I execute the query from SQL Management studio. I can't figure out wh...more >>

Cursor - retrieving data
Posted by Vik at 1/16/2007 11:05:14 AM
Is it possible to retrieve data from a cursor by the column names (like MyCursor.MyColumn) without fetching into the variables? Thanks. ...more >>

Bulk Insert from Excel File???
Posted by naveen at 1/16/2007 11:01:01 AM
Is it possible to bulk insert values from an excel file into a table in SQL-SERVER 2005? i saw all the examples and the queries posted here using a .txt file. this is what i'm trying to do: USE PPump GO DELETE dbo.Drivhcompany GO BULK INSERT dbo.DrivhCompany FROM 'T:\DC_Unique_ID.x...more >>

Bulk Insert from Excel File???
Posted by naveen at 1/16/2007 10:51:18 AM
Is it possible to bulk insert values from an excel file into a table in SQL-SERVER 2005? i saw all the examples and the queries posted here using a .txt file. this is what i'm trying to do: USE PPump GO DELETE dbo.Drivhcompany GO BULK INSERT dbo.DrivhCompany FROM 'T:\DC_Unique_ID.x...more >>

Version of sql server
Posted by Roy Goldhammer at 1/16/2007 10:38:35 AM
Hello there I have sql server 2000 standard edition. I've installed SP4 on my server. and on the enterprise manager i see on the version SP4 but if i run on the same server the: SELECT @@version i see Service Pack 1 how it can be possible? ...more >>

Suggestion for relation of these tables?
Posted by brett at 1/16/2007 10:37:39 AM
I'd like suggestions on how I can setup the followng tables (for a web application). I have (to start) three applications. Each application has a feature set. Each feature has specific properties. The number of properties can vary from feature to feature. For Example: app_table ---------...more >>

Stored Procedure Parameter Type References Table Type?
Posted by tlchurch NO[at]SPAM gmail.com at 1/16/2007 9:41:01 AM
Is there a way to set the type of a stored procedure parameter to reference the type of a table column? e.g. Have table - CREATE TABLE ExTable ( TableId INT NOT NULL PRIMARY KEY, FieldName VARCHAR(500) NOT NULL ) Want procedure parameter to be @FName SAME AS ExTable.FieldName ...more >>

Exchange data
Posted by Microsoft at 1/16/2007 9:22:14 AM
Hi, Is there a wahy to get AD user info in a SP? I need a list of AD users with name, login name and email. Thanks. George. ...more >>

Querying two dates never worked for me? Why
Posted by althafexcel NO[at]SPAM gmail.com at 1/16/2007 4:13:32 AM
Where am i wrong? My simple query doesn't work. Please help. select * from tblNews_View where StartDate>='16/Jan/2007' and EndDate<='16/Jan/2007' order by ID desc My data in the Table is and it is for sure falls in the range of 16/JAN/2007 to 16/JAN/2007 ID StartDate E...more >>

FOREIGN KEY to NULL
Posted by Bob at 1/16/2007 4:12:00 AM
Why is this allowed when there isn't a NULL in the main table? USE tempdb GO -- Create main table DROP TABLE dbo.child GO DROP TABLE dbo.parent GO CREATE TABLE dbo.parent ( parent_id INT PRIMARY KEY ) -- Create table with foreign key CREATE TABLE dbo.child ( child_id INT PRIMARY KEY,...more >>

Help regarding QUERYING BETWEEN TWO DATE FIELDS WITH TWO PARAMETERS
Posted by althafexcel NO[at]SPAM gmail.com at 1/16/2007 4:04:46 AM
I have two fields namely STARTDATE and ENDDATE. How do i query these fields with two input parameters. Lets say The STARTDATE field must be from 16/JAN/2007 and ENDDATE field meets up to 16/JUL/2009. I'm trying the below statement and it doesn't work properly. select * from tblNews_View...more >>

SQL Server Process vanished
Posted by Wolfgang Baldauf at 1/16/2007 1:54:39 AM
I'm executing a stored procedure on sql srv 2000. The procedure contains a update command, which updates a table based on two other tables with millions of datas. During the execution of the update command the sql server process sometimes vanish without a hint, no log entry no dump. I have no id...more >>

show records not created yet for a date range
Posted by Marco Napoli at 1/16/2007 1:28:34 AM
I am trying to create an SELECT statement to show which records are not created in this month. Existing Records 1-1-2007, 100 1-2-2007, 200 1-5-2007, 500 1-7-2007, 700 The SELECT statements needs to show rows with Dates not created yet for this month Show Missing Records 1-3-2007 1-...more >>

ISQLW OSQL SCLCMD ?
Posted by pplat NO[at]SPAM exnds.com at 1/16/2007 12:31:27 AM
Hi I am building an, NSIS based, install CD ROM for my company's application. This includes the creation of a database. Until now that we had only sql server 2000 customers and I was using isqlw to run the sqls from command line Now our boss decided to support SQL Express 2005 as well. A col...more >>


DevelopmentNow Blog