Archived Months
March 2003
April 2003
May 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
all groups > sql server (microsoft) > december 2005

Need to compare one column of data from two dates
Posted by Danielle at 12/30/2005 11:05:33 AM
I have a table which could be created with this DDL CREATE TABLE [tran_detail] ( [ticket_number] [int], [open_number] [int], [tran_date] [datetime] , [product_name] [nvarchar] (255) ) I need to compare product_name values between consective dates (the tran_date value) but I'm stuck...more >>


Database size vs total table and index size
Posted by damezumari at 12/29/2005 5:41:29 AM
I use SQL Server 2000. My database is 1912.69 MB with no available free space. My logfile is 1 MB. The size of all tables and indexes add up to 200 MB. I have no diagrams, two views, fifty stored procedures, six users, ten roles, no rules, no defaults, no user defined data types, no user def...more >>

SQL Server 2005 - Can't edit results from stored procedure
Posted by google NO[at]SPAM thecoles.org at 12/28/2005 8:46:47 PM
In enterprise manager under 2000, I could open a table, view the SQL, then run a stored procedure that returned data from a 2 table select statement and edit the data. It kept me from having to build and interface for specific updates. I try the same trick from 2005 and the cells are read onl...more >>

Performance 32 vs. 64 bit
Posted by Tobias NO[at]SPAM Olbort.de at 12/28/2005 4:57:03 AM
Hello, can anybody tell me how much faster a 64 bit SQLServer is in comparison to a 32 bit System at similar periphery and costs. Are there any documented tests available? Thanks Tobias ...more >>

How to Create Stored Procedure In MS SQL 2005?
Posted by joey.powell NO[at]SPAM topscene.com at 12/27/2005 11:28:05 AM
Hello, When I type my transact SQL code (or copy it from another database) into a "New Stored Procedure..." window, I can only save it as a .SQL file. Why doesn't it let me save it as a stored procedure within the database? After all, that is what I chose to open... the "New Stored Procedure....more >>

SQL Server, setting Char,VarChar lengths... (very basic question :)
Posted by W.Sh at 12/27/2005 10:46:48 AM
Hi Everyone! I'm relatively new to MS SQL Server, and I have a pretty basic question, which I want to make sure I understand correctly. When I'm designing a table in Enterprise Manager, I use Char and VarChar data types. As I understand you should set their length to the smallest size possi...more >>

Select Field from SP output
Posted by shumaker NO[at]SPAM cs.fsu.edu at 12/26/2005 8:14:45 PM
I have a Stored procedure that outputs 3 columns. Sometimes I only want a specific column though. Is there a way I can limit output to a specific column using a SQL query that executes the below procedure? It is a query running from Microsoft Excel's import date feature, so I only want a singl...more >>

CRT Bug in 2005 Database Tuning Advisor??
Posted by Mark Olbert at 12/23/2005 3:18:43 PM
When I launch the Database Engine Tuning Advisor from SqlServer 2005 I get a C++ runtime error to the effect that attempting to initialize the CRT twice is a no-no. I presume "CRT" refers to the C Runtime Library. And I presume this error shows that this supposedly release-quality applicatio...more >>



Ridiculously Slow Sorting?
Posted by Mark Olbert at 12/23/2005 12:21:01 PM
Can someone explain why SqlServer2005 returns the following query very quickly (i.e., under 1 second): SELECT link_text, idnum, ts FROM bd_content WHERE parent_id = 0 AND idnum <> 1 but takes almost 20 seconds to return the following query: SELECT link_text, idnum, ts FROM bd_content WHERE ...more >>

Installing SQL Server 2005 - Where is the Enterprise Manager?
Posted by Paolo at 12/19/2005 6:50:11 PM
I have just installed (hopefully) SQL 2005 Professional, as part of the Visual Studio Professional setup. I already had SQL Server 2000, and SQL Server espress, installed as part of Visual Web Developer. I chose a full installation ( so that I would get the sample databases, etc...). I chos...more >>

trigger help
Posted by Matt at 12/18/2005 9:01:26 AM
Greetings, I am having some trouble with a trigger. This is my first attempt at creating a trigger so any help would be great. The function of the trigger is, on the insert of a row to check the value inserted into to column VEH_REPAIR_CODE. If that value is not 19, send an email to the value...more >>

Help With SELECT Statement
Posted by Dan Johnson at 12/16/2005 6:35:57 AM
Working with three tables: Contacts, Invoices, Payments. Want a query to return two columns: Contact Name and Net Amount Due (netting both the invoice amounts and the payment amounts into one number). The following Union query gets close, but it still returns two rows for each contact, one th...more >>

SQL2005 & SQL2000 in the same dev box ????
Posted by genc_ymeri at 12/15/2005 7:44:28 PM
Can SQL 2005 ent & SQL 2000 ent co-exist in the same testing server box ??? Thanks ...more >>

Full Text Search: require ALL words (or inflections thereof)
Posted by Justin at 12/14/2005 2:50:48 PM
Hi guys, When searching a full text catalog, I would like to allow inflections, but I would also like to require that *all* words (or inflections thereof) be included in a match. FREETEXT() is inherently inflectional, but I do not know how to require all tokens to be matched (because it dis...more >>

Is SQL Server a good candidate for this scenario?
Posted by tbone at 12/13/2005 8:25:24 PM
A customer has asked me to improve the performance of a system I did for them many years ago. I would greatly appreciate informed opinions on whether SQL Server would be a good candidate for this. The system was originally based on Microsoft Access 2 (later upgraded to 97) and was used only in...more >>

Packaging a sql server solution without revealing implementation details?
Posted by patricktamu NO[at]SPAM gmail.com at 12/12/2005 10:16:54 PM
What are people using to deliver a sql server app without revealing the contents of the stored procedures? In general, do they just remain free text? I know there is an encryption option, but it seems that a client could intercept the commands used to create the stored procedures during the in...more >>

Syntax for Grouping in WHERE Clause
Posted by npverni NO[at]SPAM gmail.com at 12/12/2005 4:35:33 PM
Can somone refresh me on the t-sql syntax for grouping where clauses sql statements. I have a table in this format: fname (varchar) | lname(varchar) And I have a list of names, ie: Joe Bloggs Jane Doe Jon Doe I want to select all records except these three people from the table. I...more >>

SQL Server 2000 doesn't like the Administrator password being change
Posted by Admin Matt at 12/12/2005 1:05:10 PM
When we change the Domain Administrator password our SQL 2000 server fails to login using WIndows authentication. It works fine after we change it back to the old password. This happens even if the password has been changed for a week. Does anyone know why this would be the case? Thanks. ...more >>

max_test_repl_size problem
Posted by kramer.newsreader NO[at]SPAM gmail.com at 12/8/2005 3:17:56 PM
I have a C#.NET application (although I'm not sure that the language matters) that inserts files into an SQL server database. The files have started to get large, so we get the error message: Length of text, ntext, or image data (292800) to be replicated exceeds configured maximum 65536. f...more >>

Using DISTINCT SELECT
Posted by npverni NO[at]SPAM gmail.com at 12/7/2005 7:13:30 AM
Example: I have a table in the following format: ID | LoginTime | IPaddress 2 | 12/05/05 | 255.255.255.255 3 | 12/05/05 | 132.123.123.123 2 | 12/06/05 | 255.255.255.255 3 | 12/06/05 | 132.123.123.123 2 | 12/07/05 | 255.255.255.255 3 | 12/07/05 | 132.123.123.123 I'd lik...more >>

First Update Delay
Posted by josef NO[at]SPAM wainz.net at 12/7/2005 6:26:07 AM
Recently the test instance of a database takes well over a minute for the first update. After the first update, all updates occur in a reasonable time frame. I've searched newsgroups without success for an answer to this problem. Does anyone have any ideas why the first update of the day takes...more >>

DBCC SHRINKFILE is not working
Posted by Zorba at 12/6/2005 4:14:06 AM
Hi, I have SQL 7 server with 4 Gb of log file. I tried to run backup log with TRUNCATEONLY and DBCC SHRINKFILE and nothing seems to happen. I had also tried to backup log and shrink from Enterprise Manager and it didn't help. I see that the real usage in this file is 1.5% but seems that i...more >>

sp_who2 - How To Get Details of cmd field
Posted by John A. Bailo at 12/5/2005 4:47:47 PM
When I run an sp_who2 to examine blocking spids, in the cmd (command) field I will see something like "SELECT". Is there a way to get further details, such as the full SQL statement or procedure that is running on the spid? ...more >>

How to copy a table
Posted by Andrea Cabassi at 12/5/2005 12:42:01 AM
Hi All I have another problem. Does anyone know a simple method (SQL or Stored Procedure) to create a table by copying another one? For example, in DB2 I can do this: CREATE TABLE SCH.FOO AS (SELECT * FROM SCH.BAR) DEFINITION ONLY Thanks Andre ...more >>

Run a DTS Package "in the background" or with low priority?
Posted by John Bailo at 12/3/2005 12:19:39 PM
Configuration: Windows 2000 Sql Server 2000 Quad CPU Problem: I have a DTS update operation that takes many hours to run. The process is monthly, and for that process speed is not an issue; however, the database server hosts multiple databases, some with applications that do in...more >>

Linking MS-SQL 2005 to Oracle 9i
Posted by KtM at 12/2/2005 5:12:23 AM
Evening. Has anyone performed a updating view to Oracle 9i with MS-SQL server, which comprises of several different tables. Basically the idea is to join some information from several tables to one view in MS side. If this can not be done, it could be also done by creating the view in Oracle si...more >>

How can I get the name of a table filegroup?
Posted by Andrea Cabassi at 12/2/2005 1:18:00 AM
Hi All! I have to change with a scheduled process some tables' schema. I was thinking of dropping the table and recreating it into the new schema. But I have a big problem: I don't know which is my table's original filegroup, and some of my tables aren't into PRIMARY filegroup. I absolutely ...more >>

Weird Unique ID
Posted by Saso Zagoranski at 12/1/2005 10:28:44 PM
Hi, I'm making a simple application which will store different items (in a SQL server 2000 - MSDE database). Each item has a unique ID in this form: [max 2 characters][max 5 characters] / [max 4 characters] / [max 1 character] / [max 1 character] an example: AZ12345/1234/1/A or A ...more >>

how to exclude identical records across multiple rows
Posted by Dica at 12/1/2005 4:51:43 PM
i've got a view with records like this: [patientID] [patientName] [diseaseID] 1 john smith 1 1 john smith 2 2 jane smith 1 it's based on a one to many relationship (1 patien...more >>

XP_CMDSHELL
Posted by roninkaiser NO[at]SPAM lycos.it at 12/1/2005 3:46:51 AM
I have a DTS that import from Excel in SQL server table some records. If i run the DTS from EM all OK! I want to run the DTS in a Stored Procedure with this command: EXEC MASTER.DBO.XP_CMDSHELL "DTSRUN /S SERVER1 /U sa /P password /N UPKG_IMPORT_EXCEL I have an error -2147467259 Failur...more >>

Question on compound indexes - advice needed
Posted by yitzak at 12/1/2005 3:40:32 AM
Hi I have a question on indexes - using SQL 2000 developer. My aim is top make Selects as fast as possible. Select Sum(fld), Max(fld2), etc etc >From Table WHERE TranDate> jan 2005 -- Always have date filter and TranDate < sep 2005 and ShopID in (1,3,5,7) -- Not always filtering on ...more >>


DevelopmentNow Blog