Archived Months
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


all groups > sql server new users > june 2006

add unique constraint to varchar field
Posted by Daves at 6/30/2006 7:53:47 PM
that's it - I have a varchar(10) field (not null) which I need to add an UNIQUE constraint to but I don't know how to? ...more >>

cann't restore or attach database
Posted by Sam at 6/29/2006 10:37:57 PM
i try to copy a database to a laptop when i use RESTORE i get the error: "Too many backup devices specified for backup or restore; only 64 are allowed" when i use ATTACH i get the error: "Could not find row in sysindexes for database ID ..... Run DBCC CHECKTABLE on sysindexes. " so how can ...more >>

How to Restore a complete Backup to a newer version of SQL Server
Posted by mschultz at 6/28/2006 6:05:03 PM
I would like to restore the master database from "Microsoft SQL Server 2000 - 8.00.760 (Intel X86) Dec 17 2002 14:22:05 Copyright (c) 1988-2003 Microsoft Corporation Standard Edition on Windows NT 5.0 (Build 2195: Service Pack 4)" which is running on W2K to "Microsoft SQL Server 2000 - 8.0...more >>

Frustrating: Can't get to Provider Options in SQL 2005 Express??
Posted by Mike at 6/28/2006 9:01:35 AM
Hi, I'm trying to get to the provider options screen in SQL2K5 Management Studio, however I am unable to find it anywhere. This is really frustrating... Here is what I am trying to do: 1.. In SQL Mgmt Studio, connect to the SQL Server Database Engine and go to Server Objects->Linked Serve...more >>

Issues with backup restoration and verification
Posted by petertgaffney NO[at]SPAM gmail.com at 6/28/2006 8:34:55 AM
Hi. I've been having issues with my MSSQL2000 installation's backup system. Here's what My script looks like. These three steps execute nightly at 11pm. backup database RXSQL to RXSQL_Backup with init backup Log RXSQL WITH TRUNCATE_ONLY DBCC SHRINKDATABASE (RXSQL, TRUNCATEONLY) And t...more >>

SQL server 2000 question
Posted by petertgaffney NO[at]SPAM gmail.com at 6/28/2006 8:14:19 AM
Hi. Can I restore to database MyTempDB from database MyProductionDB's backup and log files while MyProductionDB has active users? Thanks. ...more >>

Urgent help required
Posted by Glenn Clark at 6/26/2006 7:05:38 PM
Hi all. I have had to rebuilt our w2k3 server with sql2000 sp3. The o/s is fine and I have installed sql. Now when I try to restore the data from tape through enterprise manager the restore from tape option is grey out. I have tested the drive and restore other files from tape all fine (HP ...more >>

Change data type in a table
Posted by Dimitris Nikolakakis at 6/26/2006 6:48:15 PM
I have a table named Addressbook with fields: ID int Name nvarchar I want to change the type of ID to: int IDENTITY 1,1 Is there any way to do it from SQL Query Analyzer? Thanks Dimitris ...more >>



Deleted "old" transaction logs = (no items) in EM. How to recover?
Posted by Firebrandck at 6/23/2006 12:32:55 PM
A mistake was made and "old" transaction logs (and old backups) were deleted. It appears that a long living transaction was living in one of those logs. Now the EP shows (no items). The DBs themselves are still functioning OK, just the EP shell that's not working. What's the proper resolution?...more >>

dot net app cant connect to server
Posted by Steve at 6/22/2006 7:28:05 PM
I am writing a dotnet app that needs to connect to SQL 2000. I have used the imports system.data.SqlClient. I have tried everything I can think of but I constantly get an error when it tries to connect to the server. "An error has occurred while establishing a connection to the server. (pro...more >>

Cannot select all columns from sysprocesses
Posted by Doug Stephens at 6/22/2006 12:24:46 PM
When I run 'select * from master.dbo.sysprocesses' in Query Analyzer I get all the expected columns. If I run this from a program then I cannot see certain columns, like hostname. I'm connecting using the sa user id. I'm guessing some columns are restricted somehow for security reasons. Does ...more >>

Images in SQL
Posted by at 6/22/2006 10:15:03 AM
I notice that SQL 2000 has a datatype of image. My question is after I setup the table and fields how do I populate the table with image data? ...more >>

Do I need an update?
Posted by Richard at 6/22/2006 9:30:30 AM
Hi I downloaded Sql Server 2005 Express last year (or year before). I thnk it was the beta version. Anyway, do I need to update or how do I update or should I download the latest version? Many thanks in advance Richard ...more >>

How to get a db backup to another server?
Posted by JDP NO[at]SPAM Work at 6/21/2006 11:17:24 PM
Best practices to get a db backup to another server. I've got as far as working with an ActiveX task Workflow to use an FSO, but I'm stalled at doing a date comparison to get the latest backup copied. I had tried to simply copy the one and only backup file in a folder to the other server and...more >>

Log size and Maintenance Plan
Posted by Bill Bradley at 6/21/2006 2:03:01 AM
My impression was that logs grow until a backup or maintenance is done, then they shrink way down. I am using Shavlik NetChk (a patch scanner/deployer program) on Server 2003 w/SP1 using SQL 2005 w/SP1. The performance is suffering, and, I checked the file sizes and while the mdf filesiz...more >>

SQL Server 2005: Changing default database folder during install
Posted by Andrew Hodgson at 6/19/2006 7:25:32 PM
Hi, I wish to change the location of the database files during installation to another array/partition. How do I do this? I can't seem to change the data directory like I could in 2000. This would also be useful for a SQL Server Express install I am doing. Thanks. Andrew. -- Andrew...more >>

Need to retrieve a common field
Posted by _adrian at 6/19/2006 2:05:46 PM
HI all.. I have *some* familiarity with SQL server 2000... but am stuck. I have TableA and TableB .. both with a common field called Company_Name. I need to select all Company_Name values from both tables, and built it into a list to be used for a View. I'm told that Temp tables might help m...more >>

Make field case sensitive
Posted by Alejandro at 6/19/2006 12:52:20 PM
I have an nvarchar field that stores a username, is there a way to make the field case sensitive ? A ...more >>

Query question
Posted by Garth at 6/18/2006 10:41:44 AM
Is there a way within SQL to create a query with carriage returns within the output, so that the whole query is not all on one line? For example Instead of having "Make, Mode, Time , Date, etc." Return something like this: Make, Mode Time, Date Etc.. ...more >>

(241) SQL Server Agent Error, won't start
Posted by Alejandro at 6/17/2006 6:21:22 PM
When I try to start the SQL Server Agent I am getting this error. [241] Startup error: Unable to initialize error reporting system (reason: The EventLog service has not been started) Thsi is very frustrating and i cant put up the DB until im sure that I can have my backups working. Anyone kn...more >>

how to show all fields, whilst using GROUP?
Posted by Nathon Jones at 6/17/2006 4:21:43 PM
I have a list of addresses in MSSQL table, some of which appear twice, which is intentional/required. We want to display a list of addresses, but be able to group them into one table so that there are no repeats. It seems that we can only select one field at present when using the GROUP comm...more >>

Reference an alias field name in an SQL Statement
Posted by Kent Prokopy at 6/16/2006 12:13:18 PM
Is there a way to Reference an alias field name in an SQL Statement? Example: Select 1 + 1 AS F1, F1 + 1 AS F2 ...more >>

calculate percentile using t-sql
Posted by Loane Sharp at 6/15/2006 6:49:10 PM
Hi there I am using the following statement to calculate percentile ranks of a set of scores in quite a large table (400k rows). The tempdb file grows dramatically (to 40GB+) and the query never reaches a conclusion. Surely I'm doing something wrong?! (This is actually part of a broader calcu...more >>

Basic TransAct SQL question
Posted by Mike at 6/15/2006 1:57:57 PM
Hi, I've used MySQL for years so I'm actually pretty good with SQL (or at least the MySQL flavor of it). I've recently been put in charge of a MS- 2005 Server project. I've been looking for examples for a really basic query but I can't find any. Anyway, here's what I need to do. SELEC...more >>

how i can make script Database with Data?
Posted by Tark Siala at 6/14/2006 3:57:40 PM
hi i am working on Windows 2000 Advanced Server + SP4 and SQL2000 Enterprise + SP4. i have database contains Tables, and i want make script to build Tables on other Database, but i need this script include Data in Tables too, i can make that ? and how? thanks -- Tarek M. Siala ...more >>

SQL transaction logs question
Posted by tednov at 6/14/2006 8:51:32 AM
Greetings I have a SQL server that is used as a backup type of device. The server is only accessed by other servers(exchange, docsopen, anti spam etc.), not by the end users. The typical full transaction log/low disk space errors are now becoming more of a burden. I have a very basic w...more >>

Transaction Confusion.
Posted by Mark S. at 6/14/2006 12:00:00 AM
-- which is best?... -- (I'm using SQL Server 2005) -- setting transaction per table CREATE TRIGGER trMyTrigger ON tbTable INSTEAD OF INSERT AS BEGIN -- PRODUCTS BEGIN TRANSACTION UPDATE tbProducts SET prodName = 'abc' INSERT tbProducts SELECT prodName FROM INSERTED COMMIT TRA...more >>

problem with like
Posted by aneeshattingal at 6/12/2006 11:19:09 PM
SET NOCOUNT ON declare @tab table(vc varchar(2000)) insert into @tab select '10.1' insert into @tab select '10.1.1' insert into @tab select '10.1.2' insert into @tab select '10.1.1.1' insert into @tab select '10.1.1.1.1' The problem is that i need to select only 10.1.1 and 10.1.2 when i ...more >>

Combinig statements in one line
Posted by Samuel Ray at 6/12/2006 5:58:44 PM
Is it possible to put more than one Transact-SQL statement in a single line? I mean lines of statements in scripts such as for Query Analyzer. I think I saw that being done when I looked at sample scripts to get help with other things, but since I seldom put more than one statement in a line,...more >>

SQL Server agent won't start
Posted by Alejandro at 6/10/2006 9:47:28 AM
It doesnt start because it says the Event Log has not been started. Windows Event Log is started and working fine, is there another one ? I don't have a clue what to do and need to start the Agent or my backups won't work. I noticed someone has had the same issue but found no solutions. A...more >>

Service Pack 1 Install Failure
Posted by Pete Zerger at 6/9/2006 5:26:23 AM
Regards, I'm installing SP1 for SQL 2005 for the first time in the lab and receive the following error whether I use Windows or SQL authentication. this is a healthy AD environment (according to MOM 2005 and my logs). Any thoughts on what I may be doing wrong? My error: ----------...more >>

SQL Server 2005 Express Edition :: Connection Limit
Posted by Muhittin Kara at 6/8/2006 2:58:04 PM
MSDE has a connection limit (as far as i remember, you can't open more than 20 connections at the same time) but other editions of SQL 2000 has no limit for opening connections. Is there a limit for how many connections can be opened to SQL 2005 Express edition at the same time. ...more >>

Creating a maintenance plan on express 2005
Posted by José Luis at 6/7/2006 4:08:01 PM
Hi. I need to know how to create a maintenance plan in express 2005 with an automatic full backup type. I have been told that with express 2005 the wizzard to do that it´s not available. What can I do? Thanks José ...more >>

Restore a backup of 2005 Express
Posted by Robert Zahm at 6/5/2006 1:17:49 PM
I am trying to backup/restore a database from SQL Server Express 2005 to SQL Server 2000, and receive the following error when attempting the restore: Error 3169: The backed up database uses version 611, the server supports version 539 and cannot restore or upgrade this database. I read in a...more >>

How to remove time from date?
Posted by Edmund at 6/5/2006 12:00:00 AM
Hello, I have a table (T1) that has a field that holds a date with a time. In another table (T2) I have records related to T1 on an ID field (one T1 to many T2). T2 has a date field also, but this field does not have time (ie the time part is midnight). I want to join the two tables o...more >>

Developing with SQL Server 2000 and SQL Server 2005 on same machine.
Posted by Dan Sikorsky at 6/3/2006 12:00:00 AM
I have SQL Server 2000 installed which has a server name of NOTEBOOKDELL. I installed SQL Server 2005 Community Technology Review last October, 2005, and somehow gave it a server name of NOTEBOOKDELL\SQL2005 so that I can keep my SQL Server 2005 databases separate. All was well until I...more >>

how good is sql server actually?
Posted by Daves at 6/3/2006 12:00:00 AM
hi, I'm using Yukon as backend for my web. I'm a little concerned of all the amount of records I'm making it keep... It records every session and user login which means for each day there will be about 500 new records created. Which are 15000 records over a month and 180.000 records over a ye...more >>

Veritas 10d An error was encountered while attempting to browse the contents of
Posted by Will at 6/2/2006 6:55:56 AM
An error was encountered while attempting to browse the contents of <servername>. A network connection to the server could not be established Hi Above error received with backp exec 10d on w2k3 server with sql2005. Error received when trying to select Microsoft SQL server within backup s...more >>

connect by in sqlserver
Posted by thirumaran at 6/1/2006 11:06:01 PM
Hi i am new to sqlserver family. In Oracle we have CONNECT BY & PRIOR clause is there any simillar function in SQLSERVER (2000 & 2005) , if not who can i achive this . Any examples will be quite helpfull thanks in adv thirumaran...more >>


DevelopmentNow Blog