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 > october 2006 > threads for monday october 2

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 2005 Vs SQL Server 2000 Performance Comparison
Posted by Murali at 10/2/2006 11:17:01 PM
Hi, I am looking for a document/white paper that gives me a perforamance comparison between SQL Server 2005 Vs SQL Server 2000. We are looking to migrate existing code(without any changes) from SQL 2K to SQL 2K5 and client is looking for performance improvement figures. I am sure many of yo...more >>


backup of mssql server databases using snapshot technique
Posted by tsgd84 NO[at]SPAM gmail.com at 10/2/2006 9:53:22 PM
hi everybody, I was writing an app to get snapshot backup of mssql server databases using VDI interface, VDC_Snapshot command was successfully issued by the interface(database was in frozen state), then I was trying to read the .mdf and .ldf files in the data folder of the mssql server insta...more >>

Rounding off
Posted by obelix via SQLMonster.com at 10/2/2006 7:04:19 PM
When I run this: SELECT ROUND(CONVERT(decimal(10,7), 000002025/100.00),3,2) I get this: 20.2500000 Is there a way I can trim the trailing zeros at the end to get 20.25 without having to resort to string functions? -- obelix "Whether you think you can or you think you cant you are rig...more >>

install sp via tds / odbc
Posted by robert at 10/2/2006 7:02:51 PM
Hi all, I'm a linux user that is doing some programming against a sql server 2005 db . I am using a shell on linux created via odbc and tds that gives me access - I'm used to the shell from other db's . I'm trying to install a sp I found that creates a dump from the db to 'insert into' statem...more >>

ALTER TABLE error message 4929...
Posted by Giacomo at 10/2/2006 4:46:59 PM
Hi, I’ve the following error message: ---------------- ALTER TABLE [dbo].[AnagraficoAutomezzi] ALTER COLUMN [CodiceXTrascodifica] varchar(10) Go Server: messaggio 4929, livello 16, stato 1, riga 1 Cannot alter table ‘AnagraficoAutomezzi’ because it is being published for repli...more >>

Concatenating column values
Posted by Pere Susial at 10/2/2006 4:36:07 PM
How can I concatenate column values (not row values) in Transact-SQL? Thanks. Pere. ...more >>

Copy Stored Procedures from one server to another
Posted by Michael D. Ober at 10/2/2006 4:29:54 PM
I am moving a database from SQL Server 2005 to SQL Server 2005 Express running on a laptop for a demo. I have the database tables and data copied, but am unable to copy the stored procedures. How do I do this? Thanks, Mike Ober. ...more >>

Windows 2003 IIS6 Connection Issues
Posted by Jerad Rose at 10/2/2006 4:22:53 PM
I just migrated my website from a Windows 2000 Server SP4 to new server running Windows 2003 Server Web Edition SP1. Now, I am getting many "SQL Server does not exist or access denied" or "Timeout expired" errors when trying to establish a SQL connection from the site to the SQL server (Win...more >>



Select all items that don't have hours assigned
Posted by Colin at 10/2/2006 4:00:47 PM
I've got two tables. One with rows of all the projects and another with forecasted hours against those projects. How can I return results for all projects that don't have any hours forecast against them? CREATE TABLE [dbo].[EPKP_PROJECTS]( [PROJECT_ID] [int] NOT NULL, [PROJECT_NAME] [...more >>

Managing status via procs
Posted by obelix via SQLMonster.com at 10/2/2006 3:40:39 PM
I want to update current status based on the difference btwn current record count and the most recent record count of the same sourceid and group. the status will be based on wethere the difference btwn the two records is greater or less than a given value e.g < 5 then status is passed else fail...more >>

Select Into Text File???
Posted by Skip at 10/2/2006 3:19:07 PM
Hello All, I am having trouble outputing a sql query directly to a text file. This executes but does not no file shows up? What am I missing? select * into [Text;Database='C:mike.txt'] from Current_NCP order by line_number Thanks ...more >>

Log Size
Posted by CLM at 10/2/2006 2:55:01 PM
I am looking for ways to make sure that my log files, i.e. the overall size of the ldf, can be limited to the least amount possible. Isn't it true that the only way to do this in a "legitimate" way is to do more frequent log backups? ...more >>

Parameterized Insert Statement Question
Posted by Mike C# at 10/2/2006 2:54:25 PM
I have a parameterized INSERT in ODBC (VC++ 7.1 program). I have a column that is set as NOT NULL with a default value of 'A'. When I set the column to NULL on insert, it fails with a 'Cannot insert NULL into column XXX' error. Is there a way to force the parameterized INSERT to use the def...more >>

tempdb tuning
Posted by FARRUKH at 10/2/2006 12:35:01 PM
I want to tune tempdb database . I increased the size of the tempdb transaction file, and also rewrite my reports queries, reindexing but some of the reports taking 3 - 4 hours Is there anyway i can improve my tempdb database and queries?...more >>

Master Detail: Transactions & Stored Procedures : Can you Help?
Posted by Russell Mangel at 10/2/2006 12:33:12 PM
I am using SQL 2005 and Visual Studio 2005. I have two T-SQL Stored Procedures: InsertInvoiceMasterRow InsertInvoiceDetailRow Question: Is it possible to create a transaction that will rollback without using ADO.NET *transaction* from client? Here is an example of what I am trying to do...more >>

Running multiple sql files at once
Posted by Theresa at 10/2/2006 12:17:01 PM
Hi there! Still pretty new to sql server. Just wanting to know if there is a way to run many .sql files at once. Ive looked at some other threads and people have mentioned things like sqlcmd and osql and stuff like that. Never worked with command lines for running files. Is there an easier ...more >>

Help with Subquery and "Group By"
Posted by D at 10/2/2006 12:08:24 PM
Hello everyone- I'm putting together a report that I really only want to pull data from one main table and join on lookup (lu) tables. I have my query in running condition but I just found out that I do not need to subquery a different table...instead I need to subquery the same table. ...more >>

Query help
Posted by Walter at 10/2/2006 11:59:49 AM
Hello All, Is there anyway to get records back of "6" or above on nvarchar field? Example: 1A,7B,9S,21F,12D,4W,3Q,33 I'm trying to select only with "6" and above: 7B,9S,21F,12D,33 Thanks, Walter ...more >>

A little TSQL help with dates
Posted by David Lozzi at 10/2/2006 11:45:18 AM
Howdy, I'm trying to do a simple select statement as seen below. SELECT * FROM CAUSERS WHERE dtCreated = 10/1/2006 this returns nothing. I have one record in this table where the dtCreated equals '10/1/2006 10:58:00'. How do I filter by the date? if I specify in the select statement dtC...more >>

trying to run an update over 2 different tables
Posted by Andre Gibson at 10/2/2006 11:39:01 AM
Hello all, i have 2 tables that hold dates. I need to pull the date from one table and over wite it in another table. the primary key in Table A exists in table B but in a one to many type setup. can anyone give me a query that will preform this task. Here is what I have so far. Upda...more >>

sending sms text message using SQL procedure
Posted by Randall Arnold at 10/2/2006 11:16:57 AM
I have a need to send event alerts to employee cell phones when certain records are added. My intent ins to use SMS messaging. We have an internal SMS gateway that I've just been granted access to, but I can't find any way to successfully send the message. I found some SMTP-based suggestion...more >>

SQL 2000 SP4
Posted by -bert at 10/2/2006 10:46:02 AM
Hello, We have a .NET application that ran in 2 to 4 minutes with SP3a but has slowed to 1 - 1.5 hours since installing SQL Server 2000 SP4. We have not been able to find anything to point out the possible cause(s) for this. Any pointers or suggestions would be appreciated. There hav...more >>

ODBC API Question
Posted by Mike C# at 10/2/2006 10:30:45 AM
Does anyone know if there's a way, using SQL Server ODBC Bulk Copy extensions (bcp_bind, bcp_sendrow, bcp_batch, etc.) to determine exactly which row/rows were not imported if an error occurs (like a Violation of Primary Key, etc.) With SQLBulkOperations it can be done with a status array, ...more >>

What lock or isolation level should I use in multi-user environment?
Posted by Dav Tan at 10/2/2006 10:02:00 AM
Hi, I have a situation where I want to insert or update or return error depending on how many records we can find in the table. If 0 then "insert"; If 1 then "update"; if >1 then "return error". Thinking about multi-user concurrently operating on this table, I don't want that the same record...more >>

Stored Proc exiting
Posted by Michel Racicot at 10/2/2006 9:49:32 AM
I've a stored procedure that exits without warning and without error when it's called from within a trigger that was called by another stored proc. Here is a quick explanation (for disembiguation purpose): Stored procedure A creates a record in table B Table B has a before insert trigger th...more >>

Error restoring from backup file
Posted by Craig HB at 10/2/2006 9:42:02 AM
I backed up a database from one server and now I'm trying to restore it to another. Both servers are SQL Server 2005. When I try to enter the path of the backup file as the device restore from, I get this error: Operating system error5(Access is denied.). I have tried giving the user unde...more >>

Query performance issue tracing
Posted by Ankith at 10/2/2006 8:53:01 AM
Hi: I need to troubleshoot a query/stored procedure performance issue on one of my client's production servers. The issue is my client prefers that we dont run any profiler (GUI) trace or server side trace on the production server. They want to know if it is possible to trace query perform...more >>

IF ELSE help!
Posted by Jon at 10/2/2006 8:40:01 AM
Hello all, I need to put an IF ELSE around the below code of containerid == 0 or isnull, but I just can't seem to get it, can anyone help please? and ContainerApprovals.ContainerID in ( select ContainerID from dbo.fn_RegionContainers(@RegionID) ) and Thanks, JY...more >>

Change Object Owner
Posted by Robert Taylor at 10/2/2006 8:22:32 AM
Hey, its been a long time since I've been working on MS SQL server. It's good to be back, but I have a backup/restore question. I have a customer whose production db and test db are on the same physical server. We want to copy the the production db over to teh test db for more relevant testin...more >>

'For Each' equivilent in SQL stored procedure?
Posted by Assimalyst at 10/2/2006 7:47:22 AM
Hi, I have a situation where i want to count the number of forms input into a database by each user, but am unsure how to do this in SQL without passing each users name one by one as a parameter. The database design is not ideal, and the users name is stored in the forms table i.e: Form1...more >>

Trigger to MSMQ or an external program
Posted by Daniel Regalia at 10/2/2006 7:13:02 AM
Hey All, I need to have some very involved things happen on a trigger, which inlcudes some external file maintenance when a table is updated, like exporting to a file (can be done with sp_makewebtask) and posting to a message queue. Because of the permissions needed to do the sp_makewebt...more >>

Warning: The join order has been enforced because a local join hint is used
Posted by Aaron at 10/2/2006 6:27:35 AM
If you are having problems with the warning "Warning: The join order has been enforced because a local join hint is used" being returned from your stored procedure causing your calling code to error, then here is a possible solution. Create Function that uses the INNER LOOP JOINT hint and ...more >>

Copy Database Wizard question
Posted by Johan Sjöström at 10/2/2006 3:08:44 AM
I'm studying for the SQL MCTS 70-431 exam, and found this question in a practice exam: "You are moving a SQL Server 2005 database named Timesheet to a new database server. The Timesheet database is used by the TimeEntry application. You need to minimize the amount of time that the TimeEntry ...more >>

SSIS - converting to smalldatetime
Posted by Lynn at 10/2/2006 2:48:33 AM
Hi, I am using SSIS to migrate from a flat file source to a database. In the source file there is timestamp but the source column expects a smalldatetime, is there a way to covert between these two types? Thanks ...more >>

turning caps lock off in VB.NET
Posted by Muhammad Ahsin Saleem at 10/2/2006 2:33:37 AM
Hi I want to Turn Caps Lock off when I start my Application If Caps Lock option is on. Can anybody help me. Kindly do tell me about it. ...more >>

ADO.Net thread safety question
Posted by jzlondon at 10/2/2006 12:00:00 AM
Hi, I have a question that I wonder if someone might be able to help me with... I have an application which handles real-time financial data from a third party source. The data comes in via events which are fired on an arbitrary thread, and I then take the data, generate update commands f...more >>

get max items in list
Posted by Smokey Grindle at 10/2/2006 12:00:00 AM
I have a list like this 1 999.00 2 999.00 3 999.00 4 123.45 4 123.45 5 29.23 5 34.21 already ordered by the second column, how do I say just give me the group of items which the max number of ColumnB? so only the items with 999.00 would come back no mater what th...more >>

Urgent:SQL Server locking
Posted by Roshan N.A. Jayalath at 10/2/2006 12:00:00 AM
Hi All, I want to know whether SQL server will put a page lock for an update on a single row. Also I need to know whether a record can exist in two pages (Eg: an update on a single record can effect two consequent pages). This is really urgent so a quick response in very much appreciated....more >>


DevelopmentNow Blog