Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


Archived Months
March 2003
April 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
all groups > sqlserver server > january 2007

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

Update statements not calculating
Posted by Mohd Al Junaibi at 1/31/2007 8:42:52 PM
Hello.. I have a statement where I am looping through a result set of data and based on the sum I recieve on each item, there's an update statement made to the main table (in this case: invSUM) But for some reason I am not having any updates done. The final result "CSS_x" is of type: mo...more >>


How do I determine the Backup Date of a restored Database from a backup File
Posted by Query Builder at 1/31/2007 7:57:15 PM
Hi All, I am in a delima here. I have to a few backups restored from a set of backup file. The backup files have been removed from the drive because of some storage constrains... For some data comparison reasons, I need to figure out the actual date of these backup files that is used to res...more >>

SQLH2
Posted by EmeraldDBA at 1/31/2007 5:13:02 PM
I installed SQLH2 - followed directions closely :). All seem to work as described, except for the performance data. I am consistently receiving. 1/31/2007 10:32:55 AM INFO: C:\SQLH2\PerfCollector\Data\pfc013107072759.txt: fid = 16, state = 0, retry = 0 1/31/2007 10:32:55 AM Status: ...more >>

sql server 2005 replication
Posted by 00MichaelJordan at 1/31/2007 2:51:12 PM
Hi, Is replication still available in SQL server 2005? I tried to search MS support website but can't find much information on it. Can anyone please give me links? Or is replication replaced by some other feature? Thanks. ...more >>

Enterprise Mgr SQL 2000 doesn't list databases
Posted by doug at 1/31/2007 2:41:01 PM
I have something strange with my Enterprise Manager (SQL 2000). When in my local server i cannot see my databases. The list is empty. If I go to Query Analyzer on the same box, I can see all of them. Also in EM, under the Management folder there is nothing to view. Any ideas what has happ...more >>

Constant WAITFOR(RECEIVE) in Profile Trace?
Posted by vidguide NO[at]SPAM gmail.com at 1/31/2007 2:33:26 PM
After seeing abnormally high load on the sql server this morning, i've been investigating. After ruling out the usual sources, i ran a trace on the DB, limited to showing only queries taking longer than 2000 miliseconds, only to find a constant stream of: WAITFOR (RECEIVE message_body FROM WMIEv...more >>

urgent
Posted by 00MichaelJordan at 1/31/2007 2:13:27 PM
Hi there, I have added -t1400 flag in startup parameter in properties tab in sql server configuration manager. Then I restart the service. It has hung up for 30 minutes. Is this normal? Shall I wait? Or how can I terminate it properly? Thanks. ...more >>

hyperlinks
Posted by Chuck216 at 1/31/2007 1:36:01 PM
Hi I just upsized a database from Access to SQL everything seems to be working fine except I had a Hyperlink field in Access which is not working with the SQL tables and I see no data type in SQL for hyperlinks. Is there a way around this? Any help with the will be greatly appreciated...more >>



Please help debug.
Posted by Michael at 1/31/2007 1:33:24 PM
Hi, What's wrong with the following code? Please help. I am using MS SQL 2000. create table one ( a float NOT NULL, b varchar (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ) alter table one alter column a {drop} NOT NULL alter column b {drop} NOT NULL ; Thanks, Mike ...more >>

How to alter a column
Posted by Michael at 1/31/2007 1:24:08 PM
Hi, What's wrong with the following code? Please help. I am using MS SQL 2000. create table one ( a float NOT NULL, b varchar (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ) alter table one alter column a {drop} NOT NULL alter column b {drop} NOT NULL ; Thanks, Mike ...more >>

How to alter column in Micorsoft SQL
Posted by Michael at 1/31/2007 1:09:43 PM
Hi, I have the following sample code to alter two table columns. But it did not work. Please help me out. Thanks! drop table one ; create table one ( a float NOT NULL, b varchar (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ) alter table one alter column a (NULL) , alter colum...more >>

Login Failed for NT AUTHORITY\NETWORK SERVICE
Posted by GaryDean at 1/31/2007 11:43:38 AM
I developed an asp.net 2.0 app using ss2005 on my server2003 system. my connectionstring is: "Data Source=(local); Initial catalog=mydb; Integrated Security=True" this logs me on under a user I created called aspnet that uses NT AUTHORITY\NETWORK SERVICE as it's login and everything works f...more >>

DBCC CHECKDB how to invoke to return any errors
Posted by Michal Valent at 1/31/2007 11:39:53 AM
Hello, I would like to make intented error in the consistency of a database and watch what will be the outcome from the DBCC CHECKDB. Then train repair the database. I would like to corrupt some data or index pages in mdf file. How to do that ? Tanks. miso ...more >>

Arithmetic overflow error converting expression to data type int.
Posted by marcmc at 1/31/2007 10:51:00 AM
select convert(bigint,21568194 * 100) Server: Msg 8115, Level 16, State 2, Line 1 Arithmetic overflow error converting expression to data type int. Why does this happen, How do I fix?...more >>

Reading and importing text files
Posted by d.s. at 1/31/2007 10:06:36 AM
I've got some data files from a utility company. The file is not just one record type, but can contain at least 3 record structures interspersed within the file. Right now, in MS Access, I open a text file, read it in line by line, and decide what to do with each line. How can I do this with...more >>

Restoring .dat file in SQL express 2005
Posted by Ankem at 1/31/2007 9:54:57 AM
Hi all, I am trying to restore a DB which i have from on of my e-book. The DB format is .dat format. I am trying to restore this in the SQL server Express edition 2005 when i do that i am getting below error. TITLE: Microsoft SQL Server Management Studio Express ----------------------------...more >>

Error in login connections during an automatic failover in a database mirroring session
Posted by dev648237923 at 1/31/2007 9:49:49 AM
We are experiencing error in login connections during an automatic failover in a database mirroring session. Anyone who has had similar problem that can send suggestions/ideas greatly appretiated! Thank you ...more >>

Tiggers and Managemnet Studio
Posted by Hal at 1/31/2007 9:11:00 AM
Hello all In SQL Express 2005 needed to create 2 tiggers.. I noticed that the option to create was not working on the Database Tiggers folder in MStudio. I hand coded them and they are working.. I can see them in sysobjects.. .but they do not display in MStudio.. Is the is bug ? Which s...more >>

Enterprise Manager Behaviour for SQL 2000
Posted by xxxdbaxxx NO[at]SPAM gmail.com at 1/31/2007 8:54:31 AM
Thanks in Advance, I am seeing a strange behavior in the query interface on EM that is new for me, and it has only occurred in a new environment. So I believe that this is a configuration setting that one of you can point out to me. We I have multiple query windows open, if I turn my atten...more >>

MS SQL 2005 generate separate table scripts
Posted by CompSci at 1/31/2007 8:13:38 AM
How do you generate separate scripts for all the objects such as Tables or Store Procedures? This was an option in SQL 2000 ...more >>

Linked Server OLE DB provider does not contain the table: Provide
Posted by thejamie at 1/31/2007 7:58:03 AM
Getting a linked server error. The way SQLServer 7.0 linked to 2000 allowed us to have both the ability to login under a given security context as well as specify individual logins. The linked server also contains the provision for impersonation in 2005. If possible, I would like to allow ...more >>

Hot Fix Prerequisites and Need with Service Packs
Posted by Terry at 1/31/2007 6:16:50 AM
We are looking at the possible deployment of the SQL 2005 hot fix described in http://support.microsoft.com/kb/916002#appliesto to resolve connection issues with .net to SQL. However, we are unable to determine if this hot fix has any prerequisites (such as sp1), or if it fixed in sp1 or even in...more >>

RID
Posted by Ben UK at 1/31/2007 2:46:01 AM
How many bytes is a Row Identifier in a heap?...more >>

BACKUP SERVICE MASTER KEY TO FILE
Posted by yaniv.harpaz NO[at]SPAM gmail.com at 1/31/2007 2:12:16 AM
Hello, I would to create a backup file dynamically (the filename will contain the hostname of the DB). any idea how can I use a variable for that? (a variable is easy to use for a regular database backup, but not for a master key). I wrote on the comment the error I get. thanks, Yaniv us...more >>

performance issues with c# app
Posted by papa.coen NO[at]SPAM gmail.com at 1/31/2007 1:20:13 AM
I've got a huge performance issue with using Sql Server 2005 64bit. I have 130.000 files (+/- 15kB) that are offered to a webservice which logs the contents & additional info to a sql server 2005 (SP1) database. The throughput is disastrous. I'm not a sql guru and I expected sql server to be c...more >>

Add fields to a table
Posted by Mark Shields at 1/31/2007 1:16:01 AM
is there a way to add fields to a SQL Server 2005 table using an SQL statement? Thank You...more >>

DateDiff Display All Fields Begin / End Greater 2 Min
Posted by Joe K. at 1/30/2007 8:15:01 PM
I have a SQL Server 2000 database with the table listed below. I would like to write sql statement from the table listed below to display of the fields in the table using datediff function where begin_time - end_time is greater than 2 minutes. Please help me complete this task. Table ...more >>

Disaster Recovery Plan
Posted by Carly at 1/30/2007 8:14:36 PM
Hello, I have a question regarding SQL Server disaster recovery plan. Lets say I backup quite regularily master, msdb, model and my databases. Is it enough to recover everything in case of dissaster? (I am concerned about the SQL logins and users). Lets say I have SQL login that maps to a Wi...more >>

How to add two integer columns in a select query?
Posted by Dan E at 1/30/2007 6:34:13 PM
I must be missing something, but how do you do this? select myintcol1+myintcol2 as sumcol from... Thanks! ...more >>

anyone good with SQL querries?
Posted by Paul at 1/30/2007 4:35:00 PM
I have a query that contains a sub query. The problem is that the sub query returns more than 1 value so it fails with the error (Subquery returned more than 1 value). Here is a simplified version of how it is setup. Select * from table1 where column2 = (select col2 from table2 where column...more >>

Ok, really Dumb question but still new
Posted by newsqlman at 1/30/2007 4:20:41 PM
I've got a user that needs to be able to get into the attach to the SQL database server (SQL 2000) from desktop engines I guess it would be to manage some databases. He was a user that used to have domain admin priveledges but I took those away so he wouldn't screw other things up. How can...more >>

Whats the Difference Between an Index Enforcing Uniquiness and a Unique Constraint
Posted by Simon Harvey at 1/30/2007 3:18:09 PM
Hi all, Can anyone tell me what the difference is between adding a unique constraint to a column, and adding a new index that is marked as unique? As I understand it, adding a unique constraint has the effect of adding a unique index anyway to enforce the constraint. If this is the case, ...more >>

Row updating error.
Posted by J at 1/30/2007 3:07:16 PM
Hello. I'm trying to update some 'text' data directly through SQL Server Management Studio (2005) on a table and have been encountering the following error popup: Microsoft SQL Server Management Studio No row was updated. The data in row _ was not committed. Error Source: .Net SqlClie...more >>

Database Options and their settings
Posted by Chris Wood at 1/30/2007 3:07:09 PM
Hi, We usually just take the default settings for the model DB when we setup a server (SQL2000 and SQL2005). This means that an option like QUOTED_IDENTIFIER would be set to OFF. We would then create a database by either using a create SQL script or by restoring a database backup onto a s...more >>

Fatal error 625 - Connection broken problem (Help needed)
Posted by ROBinBrampton at 1/30/2007 2:41:00 PM
Hello everyone, When I execute the following statement in the query analyzer on a msSQL2000 database... delete from DVD_I_Have where id in(select top 1 id from DVD_I_Have where Userid=78 and DVDID=8 and onhold=0); I get the following error... Server: Msg 21, Level 20, State 1, Line 1...more >>

Restore failed for Server
Posted by Hemanth Akkanti at 1/30/2007 2:11:01 PM
I am trying to restore a database from a device, added a file and then when i press ok I receive the following error message: TITLE: Microsoft SQL Server Management Studio ------------------------------ Restore failed for Server 'server name'. (Microsoft.SqlServer.Smo) For help, click:...more >>

transactions counts
Posted by Nick at 1/30/2007 1:50:01 PM
Is there a way to tell how many transactions my SQL Server will does a minute or sec or day. Any help would be great. Thanks, Nick...more >>

Restore transactions based on date range?
Posted by Mike Ripplinger at 1/30/2007 1:02:34 PM
Hi there -- I'm a developer who mostly uses SQL Server from that perspective, not a DBA, and I had a client ask me a question recently that I couldn't answer. My client has a database that is updated constantly. A few weeks ago, he accidentially deleted about two weeks worth of data from t...more >>

record all the update for a table
Posted by Jen at 1/30/2007 12:01:01 PM
Hi, I need to record all the updates on a table, like who, when and what. what's the best way to accomplish this? Thanks...more >>

can't drop trigger
Posted by Jen at 1/30/2007 10:39:01 AM
Hi, I just created a tirgger. when I tried to drop it, it say "Cannot drop the trigger 'trigger_name', because it does not exist in the system catalog." But it shows when I query as: SELECT * FROM sysobjects o INNER JOIN syscomments c ON o.id = c.id WHERE o.type = 'TR' and o.name =...more >>

Insert date into filename during backup
Posted by jevansts NO[at]SPAM yahoo.com at 1/30/2007 10:06:33 AM
I'm currently doing differential backups via the following scheduled job command: BACKUP DATABASE [DATABASE] TO DISK = N'c:\backup\DATABASE- Differential' WITH INIT , NOUNLOAD , NAME = N'DATABASE differential backup', NOSKIP , DIFFERENTIAL, STATS = 10, NOFORMAT However, I'd like to do...more >>

creating and removing a view from stored procedures
Posted by Paul at 1/30/2007 10:01:00 AM
Hi I have a web application that I need to create a view for each user and then destroy or remove the view after a report is generated. Just wondering if this can be done with stored procedures? Using SQL 2005. Thanks. -- Paul G Software engineer....more >>

Problem copying DTS jobs with Database Copy Wizard
Posted by zellmer NO[at]SPAM avaya.com at 1/30/2007 10:00:29 AM
I am using the Database Copy Wizard to copy a database from one server to the other. Here is the server information: Source Server: Windows 2000 Server SP4, SQL Server 2000 SP4 Destination Server: Windows 2003 Enterprise Edition SP1, SQL Server 2000 SP4 I initiate the DCW from the So...more >>

SPACE(1) returning nothing
Posted by Mick at 1/30/2007 9:56:16 AM
Hi all, Am trying to concatenate to fields with a spae in the middle using a couple of different methods: SELECT column1 + ' ' + column1 FROM... or SELECT column1 + SPACE(1) + column2 FROM... and both return: column1column2 Strangely this happens on the dev server, but works as inten...more >>

Login failed for user 'sa'
Posted by JJ at 1/30/2007 9:46:08 AM
I recently started to log failed login for sql server 2000. When I check the log, I get "Login failed for user 'sa'" about 25 times a day. The timings of failed login attempts are consistent (always occur at the same time of the day). This server is behind the firewall. What may be the prob...more >>

SQL Server 2005 Memory Max 2147483647
Posted by Joe K. at 1/30/2007 9:42:01 AM
I have a Windows 2003 server with SQL Server 2005 database server. I noticed that SQL Server minimum seeting is 0 and maximum is 2147483647. The database server has two very small databases. The server has 4GB of RAM. Periodically the average Pages/sec reaches a value of 20 for minutes. ...more >>

Users still show up in master.syslogins after sp_revokedbaccess
Posted by joe at 1/30/2007 9:01:10 AM
I'm trying to run a query to display all DB users who have not been granted access to any databases, but I'm running into an issue using the master.syslogins view in SQL Server 2000. I recently revoked access to certain databases for a few users using sp_revokedbaccess. As expected, these u...more >>

obfuscating SPs?
Posted by GaryDean at 1/30/2007 8:37:56 AM
is there anyway to deploy a ss2005 db to a server and not enable local admins to see the source code for my stored procedures? -- Regards, Gary Blakely ...more >>

Text Data Load
Posted by DXC at 1/30/2007 8:22:00 AM
I have ~100 text files need to be loaded into ~100 different tables. These files need to be loaded only once. What is the best and quickest way to load this data ? SQL Server 2000 SP3a Thanks. ...more >>

How to utilize 4GB of memory in SQL Server
Posted by omarfk NO[at]SPAM gmail.com at 1/30/2007 5:45:38 AM
Hello, I have SQL 2000 developer edition installed on a windows 2003 server with 4GB. I cant seem to make the server use more than 2.7GB of memory. I have the /3GB in the boot.ini file. But what other settings I need to do windows server and SQL in order to make it start using more RAM...more >>


DevelopmentNow Blog